npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hsuite/smart-network-types

v2.0.3

Published

A comprehensive TypeScript type definitions library for the Smart Network ecosystem, providing interfaces and models for network operations, membership management, operator controls, and smart node functionality.

Downloads

60

Readme

@hsuite/smart-network-types

A comprehensive TypeScript type definitions library for the Smart Network ecosystem, providing interfaces and models for network operations, membership management, operator controls, and smart node functionality.

Overview

The @hsuite/smart-network-types package serves as the foundational type system for the Smart Network module, offering a robust set of TypeScript interfaces and models. It provides type safety and consistent data structures across the Smart Network ecosystem.

Installation

npm install @hsuite/smart-network-types

Requirements

Peer Dependencies

  • @nestjs/common: ^10.4.2
  • @nestjs/core: ^10.4.2

Dependencies

  • @hsuite/nestjs-swagger: 1.0.3
  • @hsuite/did-sdk-js: ^1.0.3
  • @hsuite/vc-sl-sdk-js: ^1.0.3

Core Components

The library is organized into four main domains:

1. Network

Provides types and interfaces for network configuration and management:

  • Network configuration
  • Protocol settings
  • Chain management
  • Network state tracking

2. Membership

Defines structures for managing network participants:

  • Membership lifecycle
  • Stake management
  • Rewards tracking
  • Status updates

3. Operator

Contains types for operator management:

  • Operator roles
  • Permissions
  • Activity tracking
  • Performance metrics

4. Smart Node

Encompasses definitions for node operations:

  • Node operations
  • Performance monitoring
  • Resource management
  • System diagnostics

Usage

import { ISmartNetwork, SmartNetwork } from '@hsuite/smart-network-types';

// Using Network Interface
const network: ISmartNetwork.INetwork = {
  id: "net_123",
  name: "MainNet",
  status: "ACTIVE",
  config: {
    protocol: "v2",
    chainId: 1,
    consensus: "PoS"
  }
};

// Using Membership Interface
const membership: ISmartNetwork.IMembership = {
  id: "mem_456",
  type: "VALIDATOR",
  status: "ACTIVE",
  details: {
    stake: "100000",
    rewards: "5000"
  }
};

Documentation

The library uses Compodoc for documentation. To generate and view the documentation:

npm run compodoc

To check documentation coverage:

npm run compodoc:coverage

Project Structure

src/
├── interfaces/              # Type definitions and interfaces
│   ├── membership/         # Membership-related interfaces
│   ├── network/           # Network configuration interfaces
│   ├── operator/          # Operator management interfaces
│   └── smart-node/        # Smart node interfaces
├── models/                 # Concrete implementations
│   ├── membership/         # Membership models
│   ├── network/           # Network models
│   ├── operator/          # Operator models
│   └── smart-node/        # Smart node models
└── index.ts               # Main entry point and exports

Version

Current version: 2.0.0

License

This package is part of the HSuite Enterprise ecosystem.