type

CESS Type definitions for CESS SDK.

Installation

npm install @cessnetwork/types

Overview

This package provides TypeScript type definitions for the CESS (Content Edge Storage Space) blockchain SDK. It includes interfaces, types, and HTTP response types for various pallets and modules used in the CESS network.

Exports

This package exports type definitions organized into three main categories:

1. Core Types

  • Common utility types and constants

  • Type aliases for blockchain primitives

  • Event interfaces

2. Pallet Types

  • Audit: Types for auditing and proof verification (ChallengeInfo, MinerSnapShot, SpaceProof, etc.)

  • Balances: Types for token and balance management

  • File Bank: Types for file storage and management (FileMetadata, BucketInfo, etc.)

  • OSS: Types for Object Storage Service integration

  • RPC: Types for Remote Procedure Call interfaces

  • Sminer: Types for mining operations (MinerInfo, MinerLedger, etc.)

  • Staking: Types for staking and validator operations

  • Storage Handler: Types for storage management operations

  • System: System-level types

  • TEE: Types for Trusted Execution Environment operations

3. HTTP Types

  • Common HTTP response types

  • Gateway API response types

  • Sminer-related HTTP response types

Usage

Common Constants and Utilities

The package also exports useful constants and utilities:

Last updated

Was this helpful?