Skip to content

feat: add get_trade() and get_evidence_list() read-only query functions#160

Open
Arome8240 wants to merge 2 commits intoKingFRANKHOOD:mainfrom
Arome8240:feat/get-trade-query
Open

feat: add get_trade() and get_evidence_list() read-only query functions#160
Arome8240 wants to merge 2 commits intoKingFRANKHOOD:mainfrom
Arome8240:feat/get-trade-query

Conversation

@Arome8240
Copy link
Copy Markdown

  • Add test_get_trade_returns_correct_data to verify get_trade returns correct trade data
  • Add test_get_trade_panics_on_unknown_id to verify panic on non-existent trade ID
  • Add test_get_evidence_list_returns_empty_vec_if_no_evidence to verify empty vec when no evidence exists

Resolves #138

- Add test_get_trade_returns_correct_data to verify get_trade returns correct trade data
- Add test_get_trade_panics_on_unknown_id to verify panic on non-existent trade ID
- Add test_get_evidence_list_returns_empty_vec_if_no_evidence to verify empty vec when no evidence exists

Resolves #138SC-FEAT-005
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Arome8240 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@KingFRANKHOOD
Copy link
Copy Markdown
Owner

@Arome8240 Please, resolve merge conflicts so that we can merge

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.

feat: add get_trade() and get_evidence_list() public read functions to contract

2 participants