UNPKG

casper-js-sdk

Version:
22 lines (21 loc) 938 B
import { BigNumberish } from '@ethersproject/bignumber'; import { IResultWithBytes } from '../CLValue'; import { CLValueNumeric } from './Abstract'; /** * Represents a 256-bit unsigned integer value in the Casper type system. */ export declare class CLValueUInt256 extends CLValueNumeric { constructor(value: BigNumberish, originalBytes?: Uint8Array); /** * Converts the UInt256 value to its byte representation. * @returns A Uint8Array representing the bytes of the UInt256 value. */ bytes(): Uint8Array; /** * Creates a CLValueUInt256 instance from a Uint8Array. * Parses the byte array to retrieve the UInt256 value. * @param source - The Uint8Array containing the byte representation of the UInt256 value. * @returns An object containing the new CLValueUInt256 instance and any remaining bytes. */ static fromBytes(source: Uint8Array): IResultWithBytes<CLValueUInt256>; }