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

Axelar aleo review #60

Open
wants to merge 56 commits into
base: main
Choose a base branch
from
Open

Axelar aleo review #60

wants to merge 56 commits into from

Conversation

anstylian
Copy link

Description

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues

Convention Checklist

  • Each contract should have a client mod for others to interact with it.
  • Derive macros
  • The state mod and msg mod should use separate data structures so that internal state changes do not break the contract interface. Check out the interchain-token-service for reference.
    • msg.rs should never use any type from the state.rs
    • Shared types must be defined in a separate exported mod. If those types have already been defined somewhere else, then they should get re-exported in the exported mod

Steps to Test

Expected Behaviour

Notes

@anstylian anstylian marked this pull request as draft February 12, 2025 08:56
ampd/Cargo.toml Outdated
aleo-gateway = { workspace = true }
snarkvm-cosmwasm = { workspace = true }
# aleo-parser = { path = "../../axelar-aleo/crates/aleo-parser" }
aleo-parser = { git = "ssh://[email protected]/eigerco/axelar-aleo.git", branch = "aleo-helper-libs" }
Copy link
Author

@anstylian anstylian Feb 12, 2025

Choose a reason for hiding this comment

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

@tilacog how to handle this? including a crate from a private repo

Copy link
Author

Choose a reason for hiding this comment

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

ping @tilacog

Copy link

@tilacog tilacog Feb 14, 2025

Choose a reason for hiding this comment

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

We can either try to publish just the aleo-parser to crates.io, if that's doable; or create a new public repo for it.

I prefer the first option because it's easier to maintain. That crate is very self-contained and don't expose our contract logic, so it should be safe to do so.

We might need to check that with @asmie first.

Copy link
Author

Choose a reason for hiding this comment

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

@tilacog the contract log is not encrypted when your contract is deployed on testnet, so there is nothing to protect when it comes to contract logic

Copy link

@tilacog tilacog Feb 17, 2025

Choose a reason for hiding this comment

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

@asmie mentioned we can give access for this repo to eigergo/axelar-aleo using GitHub tokens/secrets.

This seems like the cleanest approach to me, because wouldn’t have to deal with new repositories or crate publishing.

@anstylian anstylian changed the base branch from main to starknet February 12, 2025 13:54
@anstylian anstylian changed the base branch from starknet to main February 12, 2025 13:54
@@ -61,12 +62,16 @@ sha3 = { workspace = true }
signature-verifier-api = { workspace = true }
thiserror = { workspace = true }

rand_chacha = "0.3"
Copy link
Author

Choose a reason for hiding this comment

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

check this, or document

}

#[cfg(test)]
mod tests {
Copy link
Author

Choose a reason for hiding this comment

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

Add a test for Aleo address

@anstylian anstylian marked this pull request as ready for review February 21, 2025 22:02
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