Conversation
- 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%) 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.