-
Notifications
You must be signed in to change notification settings - Fork 41
Add coinbase transaction documentation #1582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
OCaml Reference Validation ResultsRepository: https://github.com/MinaProtocol/mina.git Click to see full validation output |
✓ Code Reference Verification PassedAll code references in the documentation have been verified successfully! Total references checked: 9 The documentation is in sync with the codebase on the |
c40a345 to
e4ea1cc
Compare
e4ea1cc to
a1a2e26
Compare
richardpringle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm being honest here, I didn't find these docs to be super helpful. I don't think it hurts merging them, but they are not concise enough. They don't really help me navigate the code. And all link should point somewhere that lead to a better understanding (like the docs.rs style page). With that said, I think it's fine to merge this as it's probably better than no docs, but only by a little.
| <!-- CODE_REFERENCE: ledger/src/scan_state/transaction_logic/mod.rs#L1093-L1100 --> | ||
|
|
||
| ```rust reference title="ledger/src/scan_state/transaction_logic/mod.rs" | ||
| https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/mod.rs#L1093-L1100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a permalink. If/when this becomes outdated, it's easier to figure out the changes if it's a permalink.
I see that there are others links in this PR too, same does for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I don't think this renders the way you want it to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Returns `TransactionPartiallyApplied` containing transaction state | ||
|
|
||
| **Function:** | ||
| [`ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs#L190) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if this link pointed to the rendered inline docs which I do believe we publish, right?
| --- | ||
| sidebar_position: 4 | ||
| title: Coinbase rewards | ||
| description: Understanding coinbase reward transactions in the Mina protocol | ||
| slug: /developers/transactions/coinbase | ||
| --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
Add comprehensive documentation for coinbase transactions covering structure, application logic, reward distribution, fee transfers, account creation, and testing. CHANGELOG: add entry for patch 1553
a1a2e26 to
1b86047
Compare
1b86047 to
f9e49d2
Compare
Replace the initial transactions.md with the comprehensive version from PR 1553. Convert undefined transaction type links to section anchors to prevent broken links until those documentation pages are created.
f9e49d2 to
ecd058b
Compare

Summary
This PR adds comprehensive documentation for coinbase transactions to the website, covering:
The documentation includes code references, examples, and links to relevant implementation files.