Skip to content

Conversation

agaffney
Copy link
Contributor

@agaffney agaffney commented Feb 8, 2025

This implements the remainder of the Shelley era "Utxo" validation rules, as well as tests for each. It also includes the following changes to support the validation rules:

  • expose address network ID, type, and Byron attributes
  • add helpers for ShelleyTransactionInputSet to make use in tests easier
  • change UtxoState interface to lookup a single UTxO at a time
  • add NetworkId() to LedgerState interface
  • add String() to TransactionInput interface

Fixes #875

@agaffney agaffney requested a review from a team as a code owner February 8, 2025 23:39
@agaffney agaffney force-pushed the feat/validation-rules-shelley branch from 216713a to 296cbd3 Compare February 8, 2025 23:40
This implements the remainder of the Shelley era "Utxo" validation
rules, as well as tests for each. It also includes the following
changes to support the validation rules:

* expose address network ID, type, and Byron attributes
* add helpers for ShelleyTransactionInputSet to make use in tests easier
* change UtxoState interface to lookup a single UTxO at a time
* add NetworkId() to LedgerState interface
* add String() to TransactionInput interface

Fixes #875

Signed-off-by: Aurora Gaffney <[email protected]>
@agaffney agaffney force-pushed the feat/validation-rules-shelley branch from 296cbd3 to 56fa133 Compare February 9, 2025 00:08
@agaffney agaffney merged commit 6a40143 into main Feb 9, 2025
11 checks passed
@agaffney agaffney deleted the feat/validation-rules-shelley branch February 9, 2025 00:44
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.

Add Shelley era "Utxo" validation rules
2 participants