Conversation
📝 WalkthroughWalkthroughThis change introduces script hash indexing functionality by enabling transaction output and witness scripts to be captured into the archive index. It adds script type definitions, a delta builder method for tagging script hashes, and batch processing logic to extract and index scripts from outputs. Changes
Sequence DiagramsequenceDiagram
participant BP as Block Processor
participant DB as DeltaBuilder
participant AR as Archive Index
participant QF as QueryFacade
BP->>BP: Process transaction output
alt Output has script_ref
BP->>BP: Determine script language & hash
BP->>DB: add_script_hash(hash)
DB->>AR: Push SCRIPT tag
end
Note over BP,AR: Later...
QF->>AR: Iterate blocks by SCRIPT tag
AR-->>QF: Block with native/plutus scripts
QF->>QF: Search all script sources
QF-->>QF: Match script_hash
QF->>QF: Build ScriptData
QF-->>QF: Return ScriptData with language
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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. Comment |
Summary by CodeRabbit
Release Notes