Skip to content

feat: basic rust cli commands and account mechanism#144

Merged
saiintbrisson merged 12 commits intodevfrom
feat/cli
Sep 23, 2025
Merged

feat: basic rust cli commands and account mechanism#144
saiintbrisson merged 12 commits intodevfrom
feat/cli

Conversation

@devwckd
Copy link
Contributor

@devwckd devwckd commented Sep 17, 2025

Adds the barebones functionality of a torus CLI application.

Closes CHAIN-94, CHAIN-128

@coderabbitai
Copy link

coderabbitai bot commented Sep 17, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/cli

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@devwckd devwckd force-pushed the feat/cli branch 4 times, most recently from 2e5e310 to 265eaed Compare September 18, 2025 14:49
Copy link
Collaborator

@saiintbrisson saiintbrisson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have a --dry-run option for commands that call extrinsics that return the expected fee to be payed by the execution, and also return other fees as is the case for the namespace register command.

Format all stakes/balances with 5 decimals

@github-actions
Copy link

Code Coverage

Package Line Rate Health
pallets.governance.src 93%
pallets.torus0.src 96%
pallets.permission0.src.permission 84%
pallets.torus0.api.src 79%
pallets.emission0.src.distribute 90%
pallets.emission0.src 92%
pallets.permission0.src 90%
pallets.permission0.src.ext 90%
pallets.permission0.api.src 100%
Summary 91% (3509 / 3841)

@github-actions
Copy link

Detailed coverage report

Copy link
Collaborator

@saiintbrisson saiintbrisson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look into exchaning nacl for ring

@linear
Copy link

linear bot commented Sep 23, 2025

@devwckd devwckd marked this pull request as ready for review September 23, 2025 00:31
@saiintbrisson saiintbrisson merged commit c09a91e into dev Sep 23, 2025
3 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.

2 participants