Skip to content

Conversation

@gavriliumircea
Copy link
Contributor

@gavriliumircea gavriliumircea commented Oct 20, 2025

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

Copy link
Contributor Author

gavriliumircea commented Oct 20, 2025

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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gavriliumircea gavriliumircea requested a review from a team October 20, 2025 15:14
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from d331a7c to 2992554 Compare October 21, 2025 07:35
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 4d1f3ef to fd255d1 Compare October 21, 2025 07:35
@coderabbitai
Copy link

coderabbitai bot commented Oct 22, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 10-20-feat_add_solana_chains

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 02fe68d to f92e682 Compare October 22, 2025 14:33
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from e3cb44d to ad91f01 Compare October 22, 2025 14:33
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch 2 times, most recently from c4cfd25 to e77e2c7 Compare October 22, 2025 15:31
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from ad91f01 to f57e65d Compare October 22, 2025 15:35
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from e77e2c7 to b27a204 Compare October 22, 2025 15:35
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from f57e65d to 2fbe97c Compare October 23, 2025 13:47
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from b27a204 to 32497e7 Compare October 23, 2025 13:47
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from 2fbe97c to f14b382 Compare October 23, 2025 17:35
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 32497e7 to 1f0f226 Compare October 23, 2025 17:35
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from f14b382 to 7970c81 Compare October 23, 2025 18:08
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 1f0f226 to 6877302 Compare October 23, 2025 18:09
@gavriliumircea gavriliumircea marked this pull request as ready for review October 24, 2025 12:52
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from 7970c81 to e31ad15 Compare October 28, 2025 12:30
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 6877302 to 74d7ec9 Compare October 28, 2025 12:30
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from e31ad15 to a522645 Compare October 29, 2025 17:46
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 74d7ec9 to a6037ea Compare October 29, 2025 17:46
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from a522645 to 3fe6fab Compare October 29, 2025 17:48
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch 2 times, most recently from 5610408 to 7fc9613 Compare November 3, 2025 08:07
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch 2 times, most recently from 4edaa74 to 406efce Compare November 4, 2025 13:42
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 7fc9613 to 5e59b4c Compare November 4, 2025 13:42
@PaulRBerg PaulRBerg changed the base branch from 10-20-feat_add_solana_idls to graphite-base/60 November 5, 2025 09:03
Copy link
Member

@PaulRBerg PaulRBerg left a comment

Choose a reason for hiding this comment

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

feedback

Comment on lines 14 to 15
export type ChainCode = "SOL" | "SOLDEV" | "SOLTEST";
export type Cluster = "mainnet-beta" | "devnet" | "testnet";
Copy link
Member

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;

@gavriliumircea
Copy link
Contributor Author

@PaulRBerg regarding the code dedup could you please check #68 and leave the comments there for that?

Copy link
Member

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

@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from 5e59b4c to d9c0384 Compare November 5, 2025 12:47
@gavriliumircea gavriliumircea changed the base branch from graphite-base/60 to 10-20-feat_add_solana_idls November 5, 2025 12:47
@gavriliumircea
Copy link
Contributor Author

@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.

@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_chains branch from d9c0384 to 4918dc8 Compare November 5, 2025 14:58
@gavriliumircea gavriliumircea force-pushed the 10-20-feat_add_solana_idls branch from a86e8bb to 1e8cbc4 Compare November 5, 2025 14:58
@PaulRBerg PaulRBerg force-pushed the 10-20-feat_add_solana_chains branch from 4918dc8 to 0f06fcc Compare November 5, 2025 16:23
src/evm/types.ts Outdated
@@ -1,15 +1,6 @@
import type { Chain as ViemChain } from "viem";
import type { ChainBase } from "@src/shared/types";
Copy link
Member

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",
Copy link

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.

Fix in Cursor Fix in Web

Copy link
Member

Choose a reason for hiding this comment

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

Is this OK, @gavriliumircea?

Copy link
Member

@PaulRBerg PaulRBerg left a 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

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