Skip to content
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

refactor: relayer uses the new solana gateway #2

Merged
merged 9 commits into from
Dec 12, 2024

Conversation

roberts-pumpurs
Copy link
Member

@roberts-pumpurs roberts-pumpurs commented Dec 10, 2024

Describe the changes

Closes #588

  • Task processor for Solana will use the new ixs and the new encoding when interacting with the Solana Gateway
  • Solana event parser will use the new event types from the new Gateway
  • misc: updated deps & deny.toml (some deps of our deps are no longer maintained but there's nothing we can do about that)

Checklist

  • Tests have been added/updated for the changes.
  • Documentation has been updated for the changes (if applicable).
  • The code follows Rust's style guidelines.

@roberts-pumpurs roberts-pumpurs changed the title refactor: task processor using the new gateway refactor: relayer uses the new solana gateway Dec 11, 2024
@roberts-pumpurs roberts-pumpurs self-assigned this Dec 11, 2024
let destination_address = message.destination_address.parse::<Pubkey>()?;
match destination_address {
axelar_solana_its::ID => {
// todo ITS specific handling
Copy link
Member Author

Choose a reason for hiding this comment

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

tracing::error!("ITS program not yet supported");
}
axelar_solana_governance::ID => {
// todo Governance specific handling
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ack, thank you

&payload,
gateway_incoming_message_pda,
)?;
send_tx_parse_error(solana_rpc_client, keypair, ix).await?;
Copy link
Member Author

Choose a reason for hiding this comment

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

if the tx cannot be sent (we get an error), this needs to be reported back to the Amplifier API.
https://github.com/eigerco/solana-axelar-internal/issues/504

Some(amplifier_event)
}
MessageExecuted(ref _executed_message) => {
GatewayEvent::MessageExecuted(ref _executed_message) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the part for https://github.com/eigerco/solana-axelar-internal/issues/572 issue to be implemented

@roberts-pumpurs roberts-pumpurs merged commit 776ab6f into main Dec 12, 2024
6 checks passed
@roberts-pumpurs roberts-pumpurs deleted the rob/update-gateway-dep branch December 12, 2024 07:17
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.

3 participants