Skip to main content
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.33/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