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

Adding solana test selectors #86

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Adding solana test selectors #86

merged 4 commits into from
Jan 8, 2025

Conversation

yashnevatia
Copy link
Contributor

No description provided.

@yashnevatia yashnevatia requested review from a team as code owners January 6, 2025 14:10
jlaveracll
jlaveracll previously approved these changes Jan 6, 2025

"github.com/mr-tron/base58"
Copy link
Contributor

Choose a reason for hiding this comment

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

From what I see here from this lib readme, the only advantage they present vs the previous approach is speed.

Considering that this part of the system doesn't go through a particularly high throughput, I don't think a nano-second level improvement is gonna fly with security in terms of advantage over adding a particular new repo as a dependency.

I'm not gonna oppose it, but wanted to raise that as a concern

)

var SolanaALL = []SolanaChain{
SOLANA_DEVNET,
SOLANA_MAINNET,
SOLANA_TESTNET,
TEST_7ZWZQPZ5RQNJE9ZGHWEZ6KVUFBGQYXHH6T7DJHDU6IXY,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we make these names more human-friendly? Something like SOLANA_TEST_XYZ where XYZ in [1..3]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think adding the SOLANA_TEST part makes sense.
But changing the hash to [1,2,3..] will deviate from how we are defining chain selectors for testnet/mainnet. And I thought that will create more confusion.
@mateusz-sekara

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But you are right in that i will have to use the selectors like this instead of like this

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm afraid that these random values in the enums' names are not usable because they are not human friendly. My knowledge about Solana is very limited so it's hard for me to suggest an alternative approach.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe these should not be random, but instead sth like this (if allowed)

  "11111111111111111111111111111111111111111111":
    selector: 12463857294658392847

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a blocker for merge imo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok done

solana.go Show resolved Hide resolved
@yashnevatia yashnevatia merged commit 0cca99a into main Jan 8, 2025
2 checks passed
@yashnevatia yashnevatia deleted the solana-test-selectors branch January 8, 2025 12:12
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.

4 participants