-
Notifications
You must be signed in to change notification settings - Fork 0
Kolme testing for solana #154
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: main
Are you sure you want to change the base?
Conversation
Deploying kolme with
|
Latest commit: |
c56f28c
|
Status: | ✅ Deploy successful! |
Preview URL: | https://1c2b1284.kolme.pages.dev |
Branch Preview URL: | https://kolme-testing-solana.kolme.pages.dev |
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.
Pull Request Overview
This PR introduces extensive tests for the Kolme Solana Bridge to validate various transaction scenarios and error conditions.
- Adds tests for invalid payloads, duplicate signatures, replay attacks, and more.
- Verifies edge cases like self-transfer, insufficient balances, and maximum account limits in instructions.
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.
Pull Request Overview
This PR introduces a battery of integration tests for the Solana bridge along with a minor configuration update for the BPF target.
- Added multiple tests to verify payload validation, transfers, duplicate signature rejection, and other behaviors.
- Updated the entrypoint configuration in lib.rs to conditionally compile for BPF targets.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
solana/crates/kolme-solana-bridge/src/tests.rs | Adds and updates tests covering various transaction scenarios and error cases. |
solana/crates/kolme-solana-bridge/src/lib.rs | Adds a target-specific cfg attribute for the entrypoint macro. |
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.
Pull Request Overview
This PR enhances testing for the Solana bridge by adding comprehensive tests covering various edge cases in token transfers and related operations, and updates conditional compilation in the library.
- Updated error imports (added InitIxError) in tests.
- Added several new test cases to validate payload handling, transfer scenarios, and error conditions.
- Adjusted lib.rs to conditionally compile the entrypoint for the BPF target.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
solana/crates/kolme-solana-bridge/src/tests.rs | Added new tests for transfer, payload validation, edge scenarios, and updated imports. |
solana/crates/kolme-solana-bridge/src/lib.rs | Added #[cfg(target_arch = "bpf")] to the entrypoint for conditional compilation. |
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.
Pull Request Overview
This PR introduces an extensive suite of tests for the Solana bridge component in the Kolme project to validate transfer, payload, and executor behaviors while also updating error types used in initialization. Key changes include varying tests for scenarios such as invalid payloads, duplicate executor signatures, and self-transfers, as well as a minor update in the library's entrypoint definition for BPF builds.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
solana/crates/kolme-solana-bridge/src/tests.rs | Added numerous tests covering various transfer and payload failure/success use-cases and updated error type imports. |
solana/crates/kolme-solana-bridge/src/lib.rs | Added a conditional attribute to ensure the entrypoint is only defined for BPF target builds. |
@aakamenov I added this to run the test on Mac.
Otherwise, I get this:
Unfortunately the tests don't run successfully. All tests with the same error:
|
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.
Pull Request Overview
This PR adds a suite of tests for the Kolme Solana Bridge to verify various token transfer and error handling scenarios in the Solana environment. Key changes include updates to error handling (e.g. introducing InitIxError), multiple new tests covering edge cases such as duplicate executor signatures, tampered payloads, and various token transfer conditions.
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.
Pull Request Overview
This PR adds several new tests for the Solana bridge functionality to ensure robust handling of various payload and token transfer scenarios.
- Update the import to include InitIxError.
- Add tests for invalid payloads, zero-amount transfers, duplicative executor signatures, large token transfers, insufficient token balance, transfers to uninitialized ATA, multi-token transfers, tampered payloads, invalid executor configurations, and self-transfer.
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.
Pull Request Overview
This PR enriches the Solana bridge crate with comprehensive unit tests for various payload and transfer edge cases.
- Import
InitIxError
to enable initialization-error tests. - Add new tests covering invalid payloads, zero transfers, duplicate signatures, extreme token amounts, insufficient balances, uninitialized accounts, multi-token transfers, tampered payloads, and executor-number validation.
Comments suppressed due to low confidence (1)
solana/crates/kolme-solana-bridge/src/tests.rs:736
- Instead of a generic
is_err()
assertion, match the exact expectedInstructionError
variant to ensure the payload-tampering check is verifying the correct failure mode.
assert!(
result.is_err(),
"Expected error due to tampered payload"
);
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.
Pull Request Overview
This PR introduces additional integration tests for the Kolme Solana Bridge to validate various edge cases like invalid payloads, duplicate executors, token transfer limits, and executor validations.
- Introduces tests for handling invalid payloads, zero token transfer amounts, duplicate executor signatures, and more.
- Updates import statements to include InitIxError for proper error handling in tests.
- Adds comprehensive scenarios to verify transaction errors and expected state changes in token accounts.
@aakamenov All tests passed. Can you please take a look? Thank you |
No description provided.