test: real-deployment coverage for inner instruction events#4657
Draft
SGDlab67 wants to merge 1 commit into
Draft
test: real-deployment coverage for inner instruction events#4657SGDlab67 wants to merge 1 commit into
SGDlab67 wants to merge 1 commit into
Conversation
Add an events-caller program that CPIs into the events program so events are emitted from inner instructions (invoke depth 2), and test that both the TS client (addEventListener, EventParser.parseLogs) and the Rust client (Program::on) detect them against a live validator instead of synthetic log data. Covers the fix from otter-sec#4451. Closes otter-sec#4656. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@SGDlab67 is attempting to deploy a commit to the OtterSec Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4656. Tests the #4451 fix against a live validator instead of synthetic logs.
events-callerprogram (CPI intoevents, event at invoke depth 2)addEventListener+EventParser.parseLogson real transaction logsProgram::oninclient/example(blocking, multithreaded, async)events_caller.sofor client-example jobTest plan
anchor testintests/events— 6/6 locallyclient/example/run-test.sh— all modes green