NOTE: this is still a draft, so it's subject to changes. This alert will be removed as soon as final version will be available

🌐@hsuite/smart-network-types - Smart Network Type Definitions

🌐 Comprehensive TypeScript type system for Smart Network ecosystem with Web3 integration and NFT standards compliance

Enterprise-grade type definitions and validation library providing robust interfaces, models, and runtime validation for network operations, membership management, operator controls, and smart node functionality with full Swagger/OpenAPI documentation support.


πŸ“š Table of Contents


✨ Quick Start

Installation

npm install @hsuite/smart-network-types

Basic Setup

NestJS Integration


πŸ—οΈ Architecture

Dual Namespace System

The library provides a comprehensive dual-namespace architecture:

πŸ”§ ISmartNetwork Namespace (Interfaces)

  • Type Definitions - Pure TypeScript interfaces for type safety

  • Network Operations - Network entity and configuration interfaces

  • Membership Management - Web3 membership and lifecycle interfaces

  • Operator Controls - Role and permission management interfaces

  • Smart Node Operations - Node management and monitoring interfaces

πŸ›οΈ SmartNetwork Namespace (Models)

  • Runtime Validation - Concrete classes with built-in validation

  • Swagger Integration - Complete API documentation decorators

  • Configuration Models - System configuration and setup classes

  • NFT Compliance - ERC721/HIP412 metadata standards support

Domain Components

🌐 Network Domain

  • Entity Management - Core network participant tracking

  • Cluster Operations - Network cluster organization and status

  • Configuration - Network-wide settings and parameters

  • Fee Structures - Network fee calculation and management

πŸ‘₯ Membership Domain

  • Web3 Integration - Blockchain-based membership with NFT support

  • Lifecycle Management - Complete status tracking from PENDING to EXITED

  • Transaction Tracking - Full audit trail of blockchain operations

  • Metadata Management - NFT-compatible metadata with IPFS integration

⚑ Operator Domain

  • Role Management - Operator role definitions and permissions

  • Cluster Operations - Operator-cluster relationship management

  • Performance Tracking - Activity and performance metrics

  • Access Control - Permission-based operation authorization

πŸ–₯️ Smart Node Domain

  • Node Management - Smart node configuration and lifecycle

  • Performance Monitoring - Health and performance tracking

  • Resource Management - System resource allocation

  • Diagnostics - Node troubleshooting and analysis

Module Structure


πŸ”§ API Reference

ISmartNetwork Namespace

Core Interface Structure

Network Interfaces

ISmartNetwork.INetwork.IEntity

  • Description: Core network entity interface

  • Properties: membership, type, clusters, dkgId

  • Usage: Network participant identification and management

ISmartNetwork.INetwork.ICluster

  • Description: Network cluster management interface

  • Properties: type, status, configuration

  • Usage: Cluster organization and status tracking

ISmartNetwork.INetwork.IConfig

  • Description: Network configuration interface

  • Properties: settings, options, utilities

  • Usage: Network-wide parameter management

Membership Interfaces

ISmartNetwork.IMembership.IStatus

ISmartNetwork.IMembership.IWeb3

  • Description: Web3 membership management interface

  • Properties: entity, metadata, details, configuration

  • Usage: Blockchain-based membership operations

Operator Interfaces

ISmartNetwork.IOperator.IEntity

  • Description: Operator entity management interface

  • Properties: id, role, permissions, clusters

  • Usage: Operator identification and role management

Smart Node Interfaces

ISmartNetwork.ISmartNode.IState

  • Description: Smart node state and health interface

  • Properties: status, health, performance, resources

  • Usage: Node monitoring and diagnostics

SmartNetwork Namespace

Core Model Structure

Network Models

SmartNetwork.Network.Entity

  • Constructor: (membership, type, clusters, dkgId)

  • Validation: Runtime validation of all parameters

  • Decorators: Complete Swagger API documentation

  • Usage: Network entity creation with validation

Membership Models

SmartNetwork.Membership.Web3.Entity

  • Constructor: (walletId, operator, status, details)

  • Validation: Wallet address format, operator structure validation

  • Features: Complete Web3 membership with NFT support

  • Decorators: Full Swagger documentation with examples

SmartNetwork.Membership.Web3.Metadata

  • Constructor: (name, description, creator, image, type, format, files, properties, attributes)

  • Standards: ERC721/HIP412 NFT metadata compliance

  • IPFS: Integrated IPFS content addressing

  • Validation: Metadata format and standard compliance

SmartNetwork.Membership.Web3.Details

  • Constructor: (transactionDetails)

  • Features: Complete transaction audit trail

  • Properties: stake, unstake, mint, burn, activate, freeze operations

  • Tracking: Full blockchain transaction tracking

Configuration Models

SmartNetwork.Membership.Config.Options

  • Constructor: (enabled, utilities, network, redis, entity)

  • Features: Comprehensive membership system configuration

  • Validation: Configuration parameter validation

  • Integration: Redis integration for caching and session management


πŸ“– Guides

Network Entity Setup Guide

Configure network entities and cluster management for Smart Network operations. Complete setup instructions for network membership entities, operator configuration, DKG cluster integration, and blockchain-based validation systems with comprehensive monitoring and management capabilities.

Web3 Membership Guide

Implement blockchain-based memberships with NFT standards compliance. Detailed guide covering Web3 membership lifecycle management, HIP412 NFT metadata creation, staking mechanisms, minting processes, and activation workflows with complete transaction tracking and validation.

Operator Management Guide

Set up operator roles, permissions, and cluster associations. Comprehensive guide for operator entity management including role-based access control, permission systems, cluster assignments, and network governance with complete audit trails and security controls.

Smart Node Configuration Guide

Configure and monitor smart nodes with performance tracking. Advanced configuration guide covering smart node deployment, performance monitoring, network integration, health checks, and optimization strategies for enterprise-grade blockchain operations.


🎯 Examples

Network Entity Management

Web3 Membership Lifecycle Management

Operator Management System

Smart Node Configuration and Monitoring

Configuration Management

Type-Safe Development Patterns


πŸ”— Integration

Required Dependencies

TypeScript Configuration

Module Integration

Documentation Generation

Integration with HSuite Ecosystem


🌐 Enterprise Type System: Comprehensive TypeScript definitions with runtime validation and Web3 integration for Smart Network operations.

πŸ‘₯ NFT-Compliant Memberships: Full ERC721/HIP412 standards support with IPFS metadata and complete transaction tracking.

⚑ Developer Experience: Type-safe development with comprehensive documentation, validation, and seamless NestJS integration.


Built with ❀️ by the HSuite Team Copyright © 2025 HSuite. All rights reserved.

Last updated