Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/types-codec/mod.ts>AbstractInt

Package publishing for deno.land/x/polkadot
Go to Latest
class AbstractInt
implements INumber
extends BN
Abstract
import { AbstractInt } from "https://deno.land/x/polkadot@0.2.17/types-codec/mod.ts";

Constructors

new
AbstractInt(
registry: Registry,
value?: AnyNumber,
bitLength?: UIntBitLength,
isSigned?,
)

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
readonly
isEmpty: boolean
readonly
isUnsigned: boolean
readonly
registry: Registry

Methods

bitLength(): number
eq(other?: unknown): boolean
inspect(): Inspect
isMax(): boolean
toBigInt(): bigint
toBn(): BN
toHex(isLe?): HexString
toHuman(isExpanded?: boolean): string
toJSON(onlyHex?): any
toPrimitive(): number | string
toRawType(): string
toString(base?: number): string
toU8a(isBare?: boolean): Uint8Array