Skip to content

Task1 - #1

Merged
rithythul merged 20 commits into
mainfrom
task1
Nov 25, 2025
Merged

Task1#1
rithythul merged 20 commits into
mainfrom
task1

Conversation

@rithythul

Copy link
Copy Markdown
Member

No description provided.

LayNath242 and others added 20 commits November 18, 2025 12:27
- Removed old/ directory (preserved in 'legacy' branch)
- Renamed sdk.ts/ to packages/core/
- Added root package.json for workspace configuration
- Updated README.md for new structure
- Updated Makefile for new directory layout

BREAKING CHANGE: Directory structure changed from sdk.ts/ to packages/core/
- Move CLI from packages/core/cli to packages/cli
- Add SDK dependency (workspace:*) for using core
- Create SDK client wrapper (utils/client.ts)
- Create shared utilities (output.ts, prompts.ts)
- Refactor existing commands to use new utilities
- Add new SDK-powered commands:
  - balance: Query account balances
  - transfer: Transfer SEL tokens
  - chain: Show chain information
  - stake: Staking operations (info, pools, join, etc.)
- Support for both EVM and Substrate accounts
- Add comprehensive network configuration
- Update root package.json with CLI scripts
- Update README with CLI documentation

New command structure:
- selendra init       - Create new project
- selendra compile    - Compile contracts
- selendra deploy     - Deploy contracts
- selendra status     - Network status
- selendra chain      - Chain information
- selendra block      - Block information
- selendra account    - Account management
- selendra balance    - Balance queries
- selendra transfer   - Token transfers
- selendra faucet     - Testnet tokens
- selendra stake      - Staking operations
- Update package name in packages/core/package.json
- Update all imports across examples, tests, and source files
- Update README documentation with new package name
- Update CLI dependency to use @selendrajs/sdk
- Update monorepo build scripts

The main SDK package is now published as @selendrajs/sdk for cleaner imports:
  import { SelendraSDK } from '@selendrajs/sdk';
  import { useSelendra } from '@selendrajs/sdk/react';
Documentation (P5-04):
- Add TypeDoc configuration (typedoc.json)
- Add typedoc and typedoc-plugin-markdown dependencies
- Add docs scripts to package.json (npm run docs)
- Add README badges (npm, license, TypeScript, Node.js)

Package Publishing (P5-05):
- Finalize package.json exports (unified, pallets/*)
- Add repository, homepage, bugs URLs
- Add files field for npm publish
- Create CHANGELOG.md with version history
- Create GitHub Actions CI workflow (.github/workflows/ci.yml)
- Create npm publish workflow (.github/workflows/publish.yml)
- Workflow supports manual dispatch and GitHub releases
- npm provenance enabled for security

Progress: 35/35 tasks complete (100%) 🎉
@rithythul
rithythul merged commit 594983f into main Nov 25, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants