Skip to content

feat: implement readtx grpc#657

Merged
scarmuega merged 22 commits intomainfrom
feat/implement-readtx-grpc
Aug 30, 2025
Merged

feat: implement readtx grpc#657
scarmuega merged 22 commits intomainfrom
feat/implement-readtx-grpc

Conversation

@paulobressan
Copy link
Copy Markdown
Member

@paulobressan paulobressan commented Aug 25, 2025

Closes #500

lancevincentsalera and others added 21 commits May 14, 2025 03:25
…or better readability

refactor(chain): rename get_tx_with_block to get_tx_with_block_data for better readability
@paulobressan paulobressan marked this pull request as ready for review August 28, 2025 17:19
Comment on lines +152 to +163
impl pallas::interop::utxorpc::LedgerContext for ToyDomain {
fn get_utxos(
&self,
_refs: &[pallas::interop::utxorpc::TxoRef],
) -> Option<pallas::interop::utxorpc::UtxoMap> {
todo!()
}

fn get_slot_timestamp(&self, _slot: u64) -> Option<u64> {
todo!()
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should be able to implement these methods for the toy domain. Or at least, return some dummy data instead of panicking.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The latest implementation had todo!(). I changed it to return None for now so it doesn't break the test. We can explore a mock ledger when needed.

@scarmuega scarmuega merged commit 58c0b5c into main Aug 30, 2025
10 of 11 checks passed
@scarmuega scarmuega deleted the feat/implement-readtx-grpc branch August 30, 2025 13:32
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