The Typed class to wrap values providing explicit type information.

Properties

PropertyModifierTypeDescription
typereadonlystringThe type, as a Solidity-compatible type.
valuereadonlyanyThe actual value.

Accessors

arrayLength

get arrayLength(): null | number

Returns the length of a typed array.

Throws

If this is not an array.

Returns

null | number

The length of the array type or -1 if it is dynamic.

Source

abi/typed.ts:241


tupleName

get tupleName(): null | string

Returns the tuple name.

Throws

If this is not a tuple.

Returns

null | string

The tuple name if this is a tuple.

Source

abi/typed.ts:228

Methods

defaultValue()

defaultValue(): string | number | bigint | Result

The default value returned by this type.

Returns

string | number | bigint | Result

The default value for this type.

Source

abi/typed.ts:173


format()

format(): string

Format the type as a Human-Readable type.

Returns

string

The human-readable type for the provided type.

Throws

If the type is array or dynamic array.

Source

abi/typed.ts:156


isBigInt()

isBigInt(): this is TypedBigInt

Returns whether this is a TypedBigInt | TypedBigInt. If true, a type guard is provided.

Returns

this is TypedBigInt

true if this is a big integer.

Source

abi/typed.ts:200


isData()

isData(): this is TypedData

Returns whether this is a TypedData | TypedData. If true, a type guard is provided.

Returns

this is TypedData

true if this is a number.

Source

abi/typed.ts:209


isString()

isString(): this is TypedString

Return whether this is a TypedString | TypedString. If true, a type guard is provided.

Returns

this is TypedString

true if this is a string.

Source

abi/typed.ts:218


maxValue()

maxValue(): string | number | bigint

The maximum value for numeric types.

Returns

string | number | bigint

The maximum value for the provided numeric type.

Source

abi/typed.ts:191


minValue()

minValue(): string | number | bigint

The minimum value for numeric types.

Returns

string | number | bigint

The minimum value for the provided numeric type.

Source

abi/typed.ts:182


address()

static address(v): Typed

Return a new address type for v.

Parameters

ParameterTypeDescription
vstring | AddressableThe value to convert to an address.

Returns

Typed

A new address type for v.

Source

abi/typed.ts:1349


array()

static array(v, dynamic?): Typed

Return a new array type for v, allowing dynamic length.

Parameters

ParameterTypeDescription
vany[]The value to convert to an array.
dynamic?null | booleanWhether the array is dynamic.

Returns

Typed

A new array type for v.

Source

abi/typed.ts:1394


bool()

static bool(v): Typed

Return a new bool type for v.

Parameters

ParameterTypeDescription
vanyThe value to convert to a bool.

Returns

Typed

A new bool type for v.

Source

abi/typed.ts:1360


bytes()

static bytes(v): Typed

Return a new bytes type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes.

Returns

Typed

A new bytes type for v.

Source

abi/typed.ts:1371


bytes1()

static bytes1(v): Typed

Return a new bytes1 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes1.

Returns

Typed

A new bytes1 type for v.

Source

abi/typed.ts:997


bytes10()

static bytes10(v): Typed

Return a new bytes10 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes10.

Returns

Typed

A new bytes10 type for v.

Source

abi/typed.ts:1096


bytes11()

static bytes11(v): Typed

Return a new bytes11 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes11.

Returns

Typed

A new bytes11 type for v.

Source

abi/typed.ts:1107


bytes12()

static bytes12(v): Typed

Return a new bytes12 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes12.

Returns

Typed

A new bytes12 type for v.

Source

abi/typed.ts:1118


bytes13()

static bytes13(v): Typed

Return a new bytes13 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes13.

Returns

Typed

A new bytes13 type for v.

Source

abi/typed.ts:1129


bytes14()

static bytes14(v): Typed

Return a new bytes14 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes14.

Returns

Typed

A new bytes14 type for v.

Source

abi/typed.ts:1140


bytes15()

static bytes15(v): Typed

Return a new bytes15 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes15.

Returns

Typed

A new bytes15 type for v.

Source

abi/typed.ts:1151


bytes16()

static bytes16(v): Typed

Return a new bytes16 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes16.

Returns

Typed

A new bytes16 type for v.

Source

abi/typed.ts:1162


bytes17()

static bytes17(v): Typed

Return a new bytes17 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes17.

Returns

Typed

A new bytes17 type for v.

Source

abi/typed.ts:1173


bytes18()

static bytes18(v): Typed

Return a new bytes18 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes18.

Returns

Typed

A new bytes18 type for v.

Source

abi/typed.ts:1184


bytes19()

static bytes19(v): Typed

Return a new bytes19 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes19.

Returns

Typed

A new bytes19 type for v.

Source

abi/typed.ts:1195


bytes2()

static bytes2(v): Typed

Return a new bytes2 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes2.

Returns

Typed

A new bytes2 type for v.

Source

abi/typed.ts:1008


bytes20()

static bytes20(v): Typed

Return a new bytes20 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes20.

Returns

Typed

A new bytes20 type for v.

Source

abi/typed.ts:1206


bytes21()

static bytes21(v): Typed

Return a new bytes21 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes21.

Returns

Typed

A new bytes21 type for v.

Source

abi/typed.ts:1217


bytes22()

static bytes22(v): Typed

Return a new bytes22 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes22.

Returns

Typed

A new bytes22 type for v.

Source

abi/typed.ts:1228


bytes23()

static bytes23(v): Typed

Return a new bytes23 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes23.

Returns

Typed

A new bytes23 type for v.

Source

abi/typed.ts:1239


bytes24()

static bytes24(v): Typed

Return a new bytes24 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes24.

Returns

Typed

A new bytes24 type for v.

Source

abi/typed.ts:1250


bytes25()

static bytes25(v): Typed

Return a new bytes25 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes25.

Returns

Typed

A new bytes25 type for v.

Source

abi/typed.ts:1261


bytes26()

static bytes26(v): Typed

Return a new bytes26 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes26.

Returns

Typed

A new bytes26 type for v.

Source

abi/typed.ts:1272


bytes27()

static bytes27(v): Typed

Return a new bytes27 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes27.

Returns

Typed

A new bytes27 type for v.

Source

abi/typed.ts:1283


bytes28()

static bytes28(v): Typed

Return a new bytes28 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes28.

Returns

Typed

A new bytes28 type for v.

Source

abi/typed.ts:1294


bytes29()

static bytes29(v): Typed

Return a new bytes29 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes29.

Returns

Typed

A new bytes29 type for v.

Source

abi/typed.ts:1305


bytes3()

static bytes3(v): Typed

Return a new bytes3 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes3.

Returns

Typed

A new bytes3 type for v.

Source

abi/typed.ts:1019


bytes30()

static bytes30(v): Typed

Return a new bytes30 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes30.

Returns

Typed

A new bytes30 type for v.

Source

abi/typed.ts:1316


bytes31()

static bytes31(v): Typed

Return a new bytes31 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes31.

Returns

Typed

A new bytes31 type for v.

Source

abi/typed.ts:1327


bytes32()

static bytes32(v): Typed

Return a new bytes32 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes32.

Returns

Typed

A new bytes32 type for v.

Source

abi/typed.ts:1338


bytes4()

static bytes4(v): Typed

Return a new bytes4 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes4.

Returns

Typed

A new bytes4 type for v.

Source

abi/typed.ts:1030


bytes5()

static bytes5(v): Typed

Return a new bytes5 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes5.

Returns

Typed

A new bytes5 type for v.

Source

abi/typed.ts:1041


bytes6()

static bytes6(v): Typed

Return a new bytes6 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes6.

Returns

Typed

A new bytes6 type for v.

Source

abi/typed.ts:1052


bytes7()

static bytes7(v): Typed

Return a new bytes7 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes7.

Returns

Typed

A new bytes7 type for v.

Source

abi/typed.ts:1063


bytes8()

static bytes8(v): Typed

Return a new bytes8 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes8.

Returns

Typed

A new bytes8 type for v.

Source

abi/typed.ts:1074


bytes9()

static bytes9(v): Typed

Return a new bytes9 type for v.

Parameters

ParameterTypeDescription
vBytesLikeThe value to convert to a bytes9.

Returns

Typed

A new bytes9 type for v.

Source

abi/typed.ts:1085


dereference()

static dereference<T>(value, type): T

If the value is a Typed instance, validates the underlying value and returns it, otherwise returns value directly.

This is useful for functions that with to accept either a Typed object or values.

Type parameters

Type parameter
T

Parameters

ParameterTypeDescription
valueTyped | TThe value to dereference.
typestringThe dereferenced value.

Returns

T

Source

abi/typed.ts:1443


from()

static from(type, value): Typed

Returns a new Typed of type with the value.

Parameters

ParameterTypeDescription
typestringThe type to use.
valueanyThe value to use.

Returns

Typed

Source

abi/typed.ts:260


int()

static int(v): Typed

Return a new int256 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int256.

Returns

Typed

A new int256 type for v.

Source

abi/typed.ts:986


int104()

static int104(v): Typed

Return a new int104 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int104.

Returns

Typed

A new int104 type for v.

Source

abi/typed.ts:766


int112()

static int112(v): Typed

Return a new int112 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int112.

Returns

Typed

A new int112 type for v.

Source

abi/typed.ts:777


int120()

static int120(v): Typed

Return a new int120 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int120.

Returns

Typed

A new int120 type for v.

Source

abi/typed.ts:788


int128()

static int128(v): Typed

Return a new int128 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int128.

Returns

Typed

A new int128 type for v.

Source

abi/typed.ts:799


int136()

static int136(v): Typed

Return a new int136 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int136.

Returns

Typed

A new int136 type for v.

Source

abi/typed.ts:810


int144()

static int144(v): Typed

Return a new int144 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int144.

Returns

Typed

A new int144 type for v.

Source

abi/typed.ts:821


int152()

static int152(v): Typed

Return a new int152 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int152.

Returns

Typed

A new int152 type for v.

Source

abi/typed.ts:832


int16()

static int16(v): Typed

Return a new int16 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int16.

Returns

Typed

A new int16 type for v.

Source

abi/typed.ts:645


int160()

static int160(v): Typed

Return a new int160 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int160.

Returns

Typed

A new int160 type for v.

Source

abi/typed.ts:843


int168()

static int168(v): Typed

Return a new int168 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int168.

Returns

Typed

A new int168 type for v.

Source

abi/typed.ts:854


int176()

static int176(v): Typed

Return a new int176 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int176.

Returns

Typed

A new int176 type for v.

Source

abi/typed.ts:865


int184()

static int184(v): Typed

Return a new int184 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int184.

Returns

Typed

A new int184 type for v.

Source

abi/typed.ts:876


int192()

static int192(v): Typed

Return a new int192 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int192.

Returns

Typed

A new int192 type for v.

Source

abi/typed.ts:887


int200()

static int200(v): Typed

Return a new int200 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int200.

Returns

Typed

A new int200 type for v.

Source

abi/typed.ts:898


int208()

static int208(v): Typed

Return a new int208 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int208.

Returns

Typed

A new int208 type for v.

Source

abi/typed.ts:909


int216()

static int216(v): Typed

Return a new int216 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int216.

Returns

Typed

A new int216 type for v.

Source

abi/typed.ts:920


int224()

static int224(v): Typed

Return a new int224 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int224.

Returns

Typed

A new int224 type for v.

Source

abi/typed.ts:931


int232()

static int232(v): Typed

Return a new int232 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int232.

Returns

Typed

A new int232 type for v.

Source

abi/typed.ts:942


int24()

static int24(v): Typed

Return a new int24 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int24.

Returns

Typed

A new int24 type for v.

Source

abi/typed.ts:656


int240()

static int240(v): Typed

Return a new int240 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int240.

Returns

Typed

A new int240 type for v.

Source

abi/typed.ts:953


int248()

static int248(v): Typed

Return a new int248 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int248.

Returns

Typed

A new int248 type for v.

Source

abi/typed.ts:964


int256()

static int256(v): Typed

Return a new int256 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int256.

Returns

Typed

A new int256 type for v.

Source

abi/typed.ts:975


int32()

static int32(v): Typed

Return a new int32 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int32.

Returns

Typed

A new int32 type for v.

Source

abi/typed.ts:667


int40()

static int40(v): Typed

Return a new int40 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int40.

Returns

Typed

A new int40 type for v.

Source

abi/typed.ts:678


int48()

static int48(v): Typed

Return a new int48 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int48.

Returns

Typed

A new int48 type for v.

Source

abi/typed.ts:689


int56()

static int56(v): Typed

Return a new int56 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int56.

Returns

Typed

A new int56 type for v.

Source

abi/typed.ts:700


int64()

static int64(v): Typed

Return a new int64 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int64.

Returns

Typed

A new int64 type for v.

Source

abi/typed.ts:711


int72()

static int72(v): Typed

Return a new int72 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int72.

Returns

Typed

A new int72 type for v.

Source

abi/typed.ts:722


int8()

static int8(v): Typed

Return a new int8 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int8.

Returns

Typed

A new int8 type for v.

Source

abi/typed.ts:634


int80()

static int80(v): Typed

Return a new int80 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int80.

Returns

Typed

A new int80 type for v.

Source

abi/typed.ts:733


int88()

static int88(v): Typed

Return a new int88 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int88.

Returns

Typed

A new int88 type for v.

Source

abi/typed.ts:744


int96()

static int96(v): Typed

Return a new int96 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to an int96.

Returns

Typed

A new int96 type for v.

Source

abi/typed.ts:755


isTyped()

static isTyped(value): value is Typed

Returns true only if value is a Typed instance.

Parameters

ParameterTypeDescription
valueanyThe value to check.

Returns

value is Typed

True if value is a Typed instance.

Source

abi/typed.ts:1430


overrides()

static overrides(v): Typed

Return a new overrides type with the provided properties.

Parameters

ParameterTypeDescription
vRecord<string, any>A record containing the properties to be included in the overrides type.

Returns

Typed

A new overrides type with the given properties.

Source

abi/typed.ts:1419


string()

static string(v): Typed

Return a new string type for v.

Parameters

ParameterTypeDescription
vstringThe value to convert to a string.

Returns

Typed

A new string type for v.

Source

abi/typed.ts:1382


tuple()

static tuple(v, name?): Typed

Return a new tuple type for v, with the optional name.

Parameters

ParameterTypeDescription
vany[] | Record<string, any>The value to convert to a tuple.
name?stringThe name of the tuple.

Returns

Typed

A new tuple type for v.

Source

abi/typed.ts:1407


uint()

static uint(v): Typed

Return a new uint256 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint256.

Returns

Typed

A new uint256 type for v.

Source

abi/typed.ts:623


uint104()

static uint104(v): Typed

Return a new uint104 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint104.

Returns

Typed

A new uint104 type for v.

Source

abi/typed.ts:403


uint112()

static uint112(v): Typed

Return a new uint112 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint112.

Returns

Typed

A new uint112 type for v.

Source

abi/typed.ts:414


uint120()

static uint120(v): Typed

Return a new uint120 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint120.

Returns

Typed

A new uint120 type for v.

Source

abi/typed.ts:425


uint128()

static uint128(v): Typed

Return a new uint128 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint128.

Returns

Typed

A new uint128 type for v.

Source

abi/typed.ts:436


uint136()

static uint136(v): Typed

Return a new uint136 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint136.

Returns

Typed

A new uint136 type for v.

Source

abi/typed.ts:447


uint144()

static uint144(v): Typed

Return a new uint144 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint144.

Returns

Typed

A new uint144 type for v.

Source

abi/typed.ts:458


uint152()

static uint152(v): Typed

Return a new uint152 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint152.

Returns

Typed

A new uint152 type for v.

Source

abi/typed.ts:469


uint16()

static uint16(v): Typed

Return a new uint16 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint16.

Returns

Typed

A new uint16 type for v.

Source

abi/typed.ts:282


uint160()

static uint160(v): Typed

Return a new uint160 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint160.

Returns

Typed

A new uint160 type for v.

Source

abi/typed.ts:480


uint168()

static uint168(v): Typed

Return a new uint168 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint168.

Returns

Typed

A new uint168 type for v.

Source

abi/typed.ts:491


uint176()

static uint176(v): Typed

Return a new uint176 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint176.

Returns

Typed

A new uint176 type for v.

Source

abi/typed.ts:502


uint184()

static uint184(v): Typed

Return a new uint184 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint184.

Returns

Typed

A new uint184 type for v.

Source

abi/typed.ts:513


uint192()

static uint192(v): Typed

Return a new uint192 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint192.

Returns

Typed

A new uint192 type for v.

Source

abi/typed.ts:524


uint200()

static uint200(v): Typed

Return a new uint200 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint200.

Returns

Typed

A new uint200 type for v.

Source

abi/typed.ts:535


uint208()

static uint208(v): Typed

Return a new uint208 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint208.

Returns

Typed

A new uint208 type for v.

Source

abi/typed.ts:546


uint216()

static uint216(v): Typed

Return a new uint216 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint216.

Returns

Typed

A new uint216 type for v.

Source

abi/typed.ts:557


uint224()

static uint224(v): Typed

Return a new uint224 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint224.

Returns

Typed

A new uint224 type for v.

Source

abi/typed.ts:568


uint232()

static uint232(v): Typed

Return a new uint232 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint232.

Returns

Typed

A new uint232 type for v.

Source

abi/typed.ts:579


uint24()

static uint24(v): Typed

Return a new uint24 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint24.

Returns

Typed

A new uint24 type for v.

Source

abi/typed.ts:293


uint240()

static uint240(v): Typed

Return a new uint240 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint240.

Returns

Typed

A new uint240 type for v.

Source

abi/typed.ts:590


uint248()

static uint248(v): Typed

Return a new uint248 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint248.

Returns

Typed

A new uint248 type for v.

Source

abi/typed.ts:601


uint256()

static uint256(v): Typed

Return a new uint256 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint256.

Returns

Typed

A new uint256 type for v.

Source

abi/typed.ts:612


uint32()

static uint32(v): Typed

Return a new uint32 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint32.

Returns

Typed

A new uint32 type for v.

Source

abi/typed.ts:304


uint40()

static uint40(v): Typed

Return a new uint40 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint40.

Returns

Typed

A new uint40 type for v.

Source

abi/typed.ts:315


uint48()

static uint48(v): Typed

Return a new uint48 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint48.

Returns

Typed

A new uint48 type for v.

Source

abi/typed.ts:326


uint56()

static uint56(v): Typed

Return a new uint56 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint56.

Returns

Typed

A new uint56 type for v.

Source

abi/typed.ts:337


uint64()

static uint64(v): Typed

Return a new uint64 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint64.

Returns

Typed

A new uint64 type for v.

Source

abi/typed.ts:348


uint72()

static uint72(v): Typed

Return a new uint72 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint72.

Returns

Typed

A new uint72 type for v.

Source

abi/typed.ts:359


uint8()

static uint8(v): Typed

Return a new uint8 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint8.

Returns

Typed

A new uint8 type for v.

Source

abi/typed.ts:271


uint80()

static uint80(v): Typed

Return a new uint80 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint80.

Returns

Typed

A new uint80 type for v.

Source

abi/typed.ts:370


uint88()

static uint88(v): Typed

Return a new uint88 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint88.

Returns

Typed

A new uint88 type for v.

Source

abi/typed.ts:381


uint96()

static uint96(v): Typed

Return a new uint96 type for v.

Parameters

ParameterTypeDescription
vBigNumberishThe value to convert to a uint96.

Returns

Typed

A new uint96 type for v.

Source

abi/typed.ts:392