synor/sdk/js/package.json
Gulshan Yadav 59a7123535 feat(sdk): implement Phase 1 SDKs for Wallet, RPC, and Storage
Implements comprehensive SDK support for three core services across
four programming languages (JavaScript/TypeScript, Python, Go, Rust).

## New SDKs

### Wallet SDK
- Key management (create, import, export)
- Transaction signing
- Message signing and verification
- Balance and UTXO queries
- Stealth address support

### RPC SDK
- Block and transaction queries
- Chain state information
- Fee estimation
- Mempool information
- WebSocket subscriptions for real-time updates

### Storage SDK
- Content upload and download
- Pinning operations
- CAR file support
- Directory management
- Gateway URL generation

## Shared Infrastructure

- JSON Schema definitions for all 11 services
- Common type definitions (Address, Amount, UTXO, etc.)
- Unified error handling patterns
- Builder patterns for configuration

## Package Updates

- JavaScript: Updated to @synor/sdk with module exports
- Python: Updated to synor-sdk with websockets dependency
- Go: Added gorilla/websocket dependency
- Rust: Added base64, urlencoding, multipart support

## Fixes

- Fixed Tensor Default trait implementation
- Fixed ProcessorType enum casing
2026-01-27 00:46:24 +05:30

72 lines
1.8 KiB
JSON

{
"name": "@synor/sdk",
"version": "0.1.0",
"description": "Synor SDK for browser and Node.js - Complete blockchain SDK including Compute, Wallet, RPC, and Storage",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./compute": {
"types": "./dist/compute/index.d.ts",
"import": "./dist/compute/index.mjs",
"require": "./dist/compute/index.js"
},
"./wallet": {
"types": "./dist/wallet/index.d.ts",
"import": "./dist/wallet/index.mjs",
"require": "./dist/wallet/index.js"
},
"./rpc": {
"types": "./dist/rpc/index.d.ts",
"import": "./dist/rpc/index.mjs",
"require": "./dist/rpc/index.js"
},
"./storage": {
"types": "./dist/storage/index.d.ts",
"import": "./dist/storage/index.mjs",
"require": "./dist/storage/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup src/index.ts src/compute/index.ts src/wallet/index.ts src/rpc/index.ts src/storage/index.ts --format cjs,esm --dts",
"dev": "tsup src/index.ts src/compute/index.ts src/wallet/index.ts src/rpc/index.ts src/storage/index.ts --format cjs,esm --dts --watch",
"test": "vitest",
"lint": "biome check src/",
"typecheck": "tsc --noEmit"
},
"keywords": [
"synor",
"blockchain",
"compute",
"wallet",
"rpc",
"storage",
"ipfs",
"gpu",
"tpu",
"npu",
"ai",
"ml",
"distributed-computing"
],
"author": "Synor Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/synor/synor"
},
"devDependencies": {
"@types/node": "^20.10.0",
"tsup": "^8.0.0",
"typescript": "^5.3.0",
"vitest": "^1.0.0"
}
}