Skip to content

Commit db48315

Browse files
committed
Website/transactions: update introduction section
1 parent ac1d243 commit db48315

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

website/docs/developers/transactions.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ signed by users:
4141

4242
### Protocol Transactions
4343

44-
**Protocol transactions** are generated automatically by the system:
44+
**Protocol transactions** (also called **system transactions**) are generated
45+
automatically by the system:
4546

4647
- **[Fee transfers](./transactions/fee-transfers)** - Distribute collected
4748
transaction fees to block producers
@@ -135,11 +136,14 @@ ConstraintConstants {
135136
}
136137
```
137138

138-
The fee is deducted from the amount being transferred or received:
139+
The fee is deducted from the amount being transferred to the new account:
139140

140-
- **Payments**: Sender pays `amount + fee + account_creation_fee`
141-
- **Fee transfers**: Receiver gets `fee_amount - account_creation_fee`
142-
- **Coinbase**: Receiver gets `coinbase_amount - account_creation_fee`
141+
- **Payments**: Sender pays `amount + fee`, receiver gets
142+
`amount - account_creation_fee` (if creating account)
143+
- **Fee transfers**: Receiver gets `fee_amount - account_creation_fee` (if
144+
creating account)
145+
- **Coinbase**: Receiver gets `coinbase_amount - account_creation_fee` (if
146+
creating account)
143147

144148
## Transaction Status
145149

@@ -154,21 +158,6 @@ https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transact
154158
Failed transactions may still consume fees in some cases (zkApp commands with
155159
fee payer failures).
156160

157-
## Testing
158-
159-
Comprehensive tests for each transaction type verify correct ledger updates:
160-
161-
- [`ledger/tests/test_transaction_logic_first_pass.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass.rs) -
162-
Payment transactions
163-
- [`ledger/tests/test_transaction_logic_first_pass_delegation.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_delegation.rs) -
164-
Stake delegations
165-
- [`ledger/tests/test_transaction_logic_first_pass_fee_transfer.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_fee_transfer.rs) -
166-
Fee transfers
167-
- [`ledger/tests/test_transaction_logic_first_pass_coinbase.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_coinbase.rs) -
168-
Coinbase rewards
169-
- [`ledger/tests/test_transaction_logic_first_pass_zkapp.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_zkapp.rs) -
170-
zkApp commands
171-
172161
## Further Reading
173162

174163
- [Payment Transactions](./transactions/payments) - Transferring tokens between

0 commit comments

Comments
 (0)