Repository navigation
feat: implement whitelist gate in fake indexer, gate availability based on it - #4915
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@claude code review, addressed your comments, please take a look.
This is being addressed in a separate PR: #4914 |
This comment was marked as resolved.
This comment was marked as resolved.
Pull request overviewPart 2a of the RPC-provider whitelist series. The fake MPC contract used by in-process node tests now stores a per-chain provider whitelist and only reports a chain as available once it is whitelisted, mirroring the real contract's Changes:
Reviewed changesPer-file summary
Verification notes (by reading, since the local checkout is at the base commit and the node/E2E CI jobs were still running):
FindingsNon-blocking (nits, follow-ups, suggestions):
✅ Approved |
Leaving as is, fixtures in test don't use quorum 0 (followup PR has test related to this anyway).
Test is checking that no chain is available until it's whitelisted and then expected chains become available after they are whitelisted. Both checks should be in "// Then". |
| const PROVIDER: &str = "public"; | ||
| const PROVIDER_URL: &str = "https://rpc.public.example.com"; | ||
|
|
||
| fn solana_whitelist() -> BTreeMap<ForeignChain, ChainEntry> { | ||
| BTreeMap::from([( | ||
| ForeignChain::Solana, |
There was a problem hiding this comment.
silly question: do we support Solana already?

PR 2a/4 from https://github.com/near/mpc-private/issues/558
Also use Ethereum rpc mock instead of Bitcoin, as we're soon stopping support for Bitcoin.
Closes: https://github.com/near/mpc-private/issues/757