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

feat: ampd deployment k8s #16

Draft
wants to merge 10 commits into
base: solana
Choose a base branch
from
Draft

feat: ampd deployment k8s #16

wants to merge 10 commits into from

Conversation

eloylp
Copy link
Member

@eloylp eloylp commented Apr 19, 2024

Referenced Issue
https://github.com/eigerco/solana-axelar/issues/220

Description

This PR adds a CI workflow that:

  • Creates and pushes a docker image of the ampd daemon.
  • Deploys the image at Eiger's axelar K8S cluster.

TODO

  • Add SSH auth, so we can pull the private dependencies like gmp-gateway. no need. The axelar-solana repo is now public.

@eloylp eloylp changed the base branch from main to solana April 19, 2024 23:59
@eloylp eloylp self-assigned this Apr 20, 2024
@eloylp eloylp changed the title ampd deployment k8s feat: ampd deployment k8s Apr 29, 2024
@eloylp eloylp closed this Apr 29, 2024
@eloylp eloylp reopened this Apr 29, 2024
It will try to build the ampd binary periodically. We have some git dependencies without version fixing and that we want to maintain in that way because we are still adjusting many things and we want it to be "liquid".
@@ -273,7 +273,7 @@ mod test {
let expiration = 100u64;
let (_, rx) = watch::channel(expiration - 1);
let source_chain = ChainName::from_str("solana").unwrap();
let poll_started_source_chain = ChainName::from_str("other_chain").unwrap(); // A different, unexpected source chain.
let poll_started_source_chain = ChainName::from_str("otherchain").unwrap(); // A different, unexpected source chain.
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like some validations are taking place now in the axelar codebase.

})) => axelar_message_primitives::command::Operators::new(
operators,
weights.into_iter().map(axelar_message_primitives::command::U256::from).collect(),
axelar_message_primitives::command::U256::from(quorum),
Copy link
Member Author

@eloylp eloylp Apr 30, 2024

Choose a reason for hiding this comment

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

I am mapping the threshold with the quorum, but unsure if we are talking about the same thing.

Copy link
Member

Choose a reason for hiding this comment

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

yes, they are the same thing 👍

@@ -208,21 +217,7 @@ where
}
};

let account_data = match self.rpc_client.get_account_data(&pub_key).await {
Copy link
Member Author

@eloylp eloylp Apr 30, 2024

Choose a reason for hiding this comment

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

seems (if this is correct) we already have all needed information coming from the initial Solana tx for verifying the workerset. So we can remove the extra RPC call to fetch the account data.

@@ -172,7 +175,6 @@ mod tests {
let payload_hash: [u8; 32] = [0; 32];
let source_gateway_address: String = "sol_gateway_addr".to_string();
let source_pubkey = Pubkey::from([0; 32]);
let source_address = PubkeyWrapper::from(source_pubkey);
Copy link
Member Author

Choose a reason for hiding this comment

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

No more PubkeyWrapper anymore only Pubkey

# shared-key: "ampd"

- name: Build the code
run: cd ampd && cargo build
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 should be removed, as we are implementing it in https://github.com/eigerco/solana-axelar-internal/issues/344

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.

2 participants