-
Notifications
You must be signed in to change notification settings - Fork 0
feat(its!): its relayer discovery #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/relayer-discovery
Are you sure you want to change the base?
Conversation
… multiple executable entrypoints
|
|
||
| let counter_account: solana_axelar_memo::Counter = its_harness | ||
| .get_account_as(&counter_pda) | ||
| .expect("counter account should exist"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Test deserializes counter with wrong type
The test uses solana_axelar_test_discoverable throughout (getting counter_pda at line 104, serializing Payload at lines 108-111) but then attempts to deserialize the counter account as solana_axelar_memo::Counter instead of solana_axelar_test_discoverable::Counter. This type mismatch will cause the test to incorrectly interpret the account data or fail.
programs/solana-axelar-its/src/instructions/gmp/get_transaction.rs
Outdated
Show resolved
Hide resolved
34b2204 to
abc6aaa
Compare
why
how
executeentrypoint on ITS nad instead using a different entrypoint for each use case of execute.Note
Replaces ITS’s monolithic execute with discovery-driven flows (deploy/link/transfer), adds transaction discovery APIs/PDAs, a discoverable test program, and updates fixtures/harness/tests to execute via relayer discovery.
executewith specific handlers:execute_deploy_interchain_token,execute_link_token,execute_interchain_transfer, each usingvalidate_message.get_transactionand helpers (utils::relayer_transaction,find_interchain_executable_transaction_pda,decode_interchain_transfer_payload,executable_accounts).transactionPDA inInitializeand include new feature/dependency wiring (relayer-discovery).solana-axelar-test-discoverableinit,get_its_transaction,execute_with_interchain_token, and logs viaexecute; initializes its owntransactionand ITS interchain-executable PDAs.RelayerDiscoveryTestFixture) andrelayer_execute_with_checks.mollusk-harnessto approve/execute via discovery, auto-provision payload/payer accounts, and init required PDAs.relayer-discoveryacross crates, enable ITSno-entrypointwhere needed, and minor Cargo feature updates.Written by Cursor Bugbot for commit 8d216ac. This will update automatically on new commits. Configure here.