Skip to content

Added inline comments to educate new users#73

Closed
shaiss wants to merge 2 commits into
near-examples:mainfrom
shaiss:main
Closed

Added inline comments to educate new users#73
shaiss wants to merge 2 commits into
near-examples:mainfrom
shaiss:main

Conversation

@shaiss
Copy link
Copy Markdown

@shaiss shaiss commented Jun 23, 2025

comments added to tsx comments to enable users to self-walk through the code and learn

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds extensive inline documentation across multiple transaction components (Solana, Navbar, EVM, Bitcoin, and FunctionCall) to help educate new users about the underlying blockchain concepts and code flows. Key changes include:

  • Detailed inline comments and documentation added throughout the components.
  • Enhanced UI input sections with descriptive placeholders and comments explaining processing steps.
  • Updates to PropTypes and inline feedback messages for improved clarity.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/Solana.jsx Added inline documentation and comments on address derivation and balance checks.
src/components/Navbar.jsx Introduced detailed wallet integration documentation; note a potential attribute quoting issue.
src/components/EVM/EVM.jsx Added extensive comments on state management, gas price monitoring, and transaction flow.
src/components/EVM/Transfer.jsx Improved inline comments explaining ETH transfer data conversion and UI updates.
src/components/EVM/FunctionCall.jsx Added detailed documentation for contract calls, ABI encoding, and contract state querying.
src/components/Bitcoin.jsx Added comprehensive inline commentary on address derivation, UTXO management, and transaction signing.

Comment thread src/components/Navbar.jsx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gagdiez
Copy link
Copy Markdown
Collaborator

gagdiez commented Jun 26, 2025

I agree with @PiVortex (who commented on a telegram channel) that these comments might add more noise than clarifications, I would suggest to instead review https://docs.near.org/chain-abstraction/chain-signatures/implementation to see if it explains the concepts well enough

@shaiss shaiss closed this Jun 27, 2025
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevRel Jun 27, 2025
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.

4 participants