注意: 此页面尚未翻译成中文。以下内容为英文原版。
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:1250

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:1291

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:1260

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:1270

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:930

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:1020

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:1030

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:1040

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:1050

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:1060

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:1070

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:1080

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:1090

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:1100

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:1110

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:940

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:1120

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:1130

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:1140

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:1150

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:1160

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:1170

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:1180

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:1190

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:1200

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:1210

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:950

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:1220

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:1230

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:1240

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:960

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:970

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:980

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:990

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:1000

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:1010

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:1337

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:920

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:720

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:730

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:740

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:750

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:760

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:770

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:780

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:610

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:790

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:800

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:810

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:820

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:830

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:840

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:850

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:860

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:870

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:880

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:620

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:890

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:900

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:910

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:630

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:640

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:650

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:660

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:670

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:680

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:600

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:690

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:700

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:710

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:1324

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:1314

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:1280

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:1303

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:590

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:390

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:400

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:410

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:420

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:430

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:440

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:450

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:280

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:460

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:470

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:480

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:490

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:500

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:510

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:520

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:530

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:540

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:550

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:290

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:560

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:570

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:580

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:300

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:310

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:320

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:330

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:340

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:350

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:270

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:360

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:370

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:380