-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add solana chains #60
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: 10-20-feat_add_solana_idls
Are you sure you want to change the base?
feat: add solana chains #60
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d331a7c to
2992554
Compare
4d1f3ef to
fd255d1
Compare
2992554 to
e3cb44d
Compare
fd255d1 to
02fe68d
Compare
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
02fe68d to
f92e682
Compare
e3cb44d to
ad91f01
Compare
c4cfd25 to
e77e2c7
Compare
ad91f01 to
f57e65d
Compare
e77e2c7 to
b27a204
Compare
f57e65d to
2fbe97c
Compare
b27a204 to
32497e7
Compare
2fbe97c to
f14b382
Compare
32497e7 to
1f0f226
Compare
f14b382 to
7970c81
Compare
1f0f226 to
6877302
Compare
7970c81 to
e31ad15
Compare
6877302 to
74d7ec9
Compare
e31ad15 to
a522645
Compare
74d7ec9 to
a6037ea
Compare
a522645 to
3fe6fab
Compare
5610408 to
7fc9613
Compare
4edaa74 to
406efce
Compare
7fc9613 to
5e59b4c
Compare
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.
feedback
src/solana/types.ts
Outdated
| export type ChainCode = "SOL" | "SOLDEV" | "SOLTEST"; | ||
| export type Cluster = "mainnet-beta" | "devnet" | "testnet"; |
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.
These should be turned into enums defined in a separate enums.ts file, and the type should be defined like this:
export type Cluster = `${enums.Cluster}` | enums.Cluster;
|
@PaulRBerg regarding the code dedup could you please check #68 and leave the comments there for that? |
|
I could but it is more difficult to review like that because I have to look/review each differential change until then - could you please refactor the de-duplication to be made incrementally so I can review them isolated? This would save time 🙏 Also, it would be a much cleaner diff in the PR history if we merge the de-duplicated version in the PRs when the logic was introduced |
5e59b4c to
d9c0384
Compare
|
@PaulRBerg I applied the changes that you suggested and removed the refactor pr given that now the dedup is being taken care of in each pr. |
d9c0384 to
4918dc8
Compare
a86e8bb to
1e8cbc4
Compare
4918dc8 to
0f06fcc
Compare
src/evm/types.ts
Outdated
| @@ -1,15 +1,6 @@ | |||
| import type { Chain as ViemChain } from "viem"; | |||
| import type { ChainBase } from "@src/shared/types"; | |||
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.
Will rename this to ChainCommon to eliminate the possibility of confusion with the Base EVM chain
| }, | ||
| chainlink: { | ||
| feed: "99B2bTijsU6f1GCT73HmdR7HCFFjGMBcPZY6jZ96ynrR", | ||
| program: "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny", |
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.
Bug: Devnet and Mainnet Chainlink Addresses Mismatch
The Chainlink program and feed addresses are identical for both solanaDevnet and solanaMainnetBeta. Blockchain networks typically use different program addresses and price feed accounts for devnet vs mainnet. Both chains are currently using the same addresses (program: "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny", feed: "99B2bTijsU6f1GCT73HmdR7HCFFjGMBcPZY6jZ96ynrR"), which will cause devnet to incorrectly point to mainnet Chainlink data or vice versa.
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.
Is this OK, @gavriliumircea?
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.
PR looking good now for merging

This pr aims to add support for the Solana chains used inside the Sablier App.