Skip to content

Conversation

@vaporif
Copy link
Collaborator

@vaporif vaporif commented Dec 19, 2025

Description

closes: #849


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@vaporif vaporif requested a review from srdtrk as a code owner December 19, 2025 18:24
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 91.89189% with 51 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.73%. Comparing base (c326e08) to head (9f1fd5d).

Files with missing lines Patch % Lines
...ograms/ics27-gmp/src/instructions/on_ack_packet.rs 92.24% 20 Missing ⚠️
...ms/ics27-gmp/src/instructions/on_timeout_packet.rs 92.15% 20 Missing ⚠️
programs/solana/programs/ics27-gmp/src/lib.rs 0.00% 4 Missing ⚠️
...rams/solana/packages/solana-ibc-types/src/utils.rs 50.00% 3 Missing ⚠️
programs/solana/programs/ics27-gmp/src/events.rs 0.00% 2 Missing ⚠️
...rams/solana/packages/solana-ibc-types/src/ics27.rs 90.00% 1 Missing ⚠️
programs/solana/programs/ics27-gmp/src/state.rs 98.93% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #870      +/-   ##
==========================================
+ Coverage   73.03%   73.73%   +0.70%     
==========================================
  Files         110      110              
  Lines       15359    15930     +571     
==========================================
+ Hits        11217    11746     +529     
- Misses       4142     4184      +42     
Flag Coverage Δ
solana 71.82% <91.89%> (+0.83%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@srdtrk srdtrk left a comment

Choose a reason for hiding this comment

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

The approach is good imo. I left some improvements and suggestions, would be good to get CI passing as well, including coverage)

Copy link
Member

@srdtrk srdtrk left a comment

Choose a reason for hiding this comment

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

Just address it, and the rest be handled in IFT PR

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 92.37805% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.72%. Comparing base (5c4f371) to head (ab51df5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ograms/ics27-gmp/src/instructions/on_ack_packet.rs 92.33% 20 Missing ⚠️
...ms/ics27-gmp/src/instructions/on_timeout_packet.rs 92.15% 20 Missing ⚠️
programs/solana/programs/ics27-gmp/src/lib.rs 0.00% 4 Missing ⚠️
...rams/solana/packages/solana-ibc-types/src/utils.rs 0.00% 2 Missing ⚠️
programs/solana/programs/ics27-gmp/src/events.rs 0.00% 2 Missing ⚠️
...rams/solana/packages/solana-ibc-types/src/ics27.rs 90.00% 1 Missing ⚠️
programs/solana/programs/ics27-gmp/src/state.rs 98.98% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #870      +/-   ##
==========================================
+ Coverage   73.03%   73.72%   +0.69%     
==========================================
  Files         110      110              
  Lines       15359    15923     +564     
==========================================
+ Hits        11217    11739     +522     
- Misses       4142     4184      +42     
Flag Coverage Δ
solana 71.81% <92.37%> (+0.81%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vaporif vaporif requested a review from srdtrk January 22, 2026 14:53
}

#[event]
pub struct GMPCallAcknowledged {
Copy link
Member

Choose a reason for hiding this comment

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

Not resolved

.map(|pda| pda.to_bytes().to_vec())
})
.unwrap_or_default()),
[] => Ok(vec![]),
Copy link
Member

Choose a reason for hiding this comment

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

Is this because the function has to handle non-gmp payloads? Otherwise why is this not an error

Copy link
Collaborator Author

@vaporif vaporif Jan 22, 2026

Choose a reason for hiding this comment

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

yes, it is handling non-gmp payload since it's used in build_ack_packet_chunked

Copy link
Member

@srdtrk srdtrk left a comment

Choose a reason for hiding this comment

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

lgtm. Can merge when CI passes

@vaporif vaporif merged commit 65a2205 into main Jan 22, 2026
211 of 212 checks passed
@vaporif vaporif deleted the vaporif/gmp-result branch January 22, 2026 17:37
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.

Support sender callbacks in Solana GMP

3 participants