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

x/polkadot/mod.ts>typesCodec.AbstractInt

Package publishing for deno.land/x/polkadot
Go to Latest
class typesCodec.AbstractInt
implements INumber
extends BN
Abstract
import { typesCodec } from "https://deno.land/x/polkadot@0.2.27/mod.ts";
const { AbstractInt } = typesCodec;

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