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

x/polkadot/types-codec/abstract/Int.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.28/types-codec/abstract/Int.ts";

Constructors

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

Properties

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

Methods

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