feat: add ethereum rpc table component and example#115
Merged
Conversation
✅ Deploy Preview for scroll-documentation ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
yqrashawn
commented
Nov 1, 2023
Comment on lines
+10
to
+72
| chainData = chainData || { | ||
| name: "Scroll", | ||
| chain: "ETH", | ||
| status: "active", | ||
| rpc: [ | ||
| { | ||
| url: "https://rpc.scroll.io", | ||
| }, | ||
| { | ||
| url: "https://rpc-scroll.icecreamswap.com", | ||
| }, | ||
| { | ||
| url: "https://scroll.blockpi.network/v1/rpc/public", | ||
| tracking: "limited", | ||
| trackingDetails: | ||
| "We do not collect request data or request origin. We only temporarily record the request method names and IP addresses for 7 days to ensure our service functionality such as load balancing and DDoS protection. All the data is automatically deleted after 7 days and we do not store any user information for longer periods of time. https://blockpi.io/privacy-policy", | ||
| }, | ||
| { | ||
| url: "https://1rpc.io/scroll", | ||
| tracking: "none", | ||
| trackingDetails: | ||
| "With the exception of data that will be public on chain, all the other metadata / data should remain private to users and other parties should not be able to access or collect it. 1RPC uses many different techniques to prevent the unnecessary collection of user privacy, which prevents tracking from RPC providers. https://docs.1rpc.io/technology/zero-tracking", | ||
| }, | ||
| { | ||
| url: "https://rpc.ankr.com/scroll", | ||
| }, | ||
| { | ||
| url: "https://scroll-mainnet.chainstacklabs.com", | ||
| }, | ||
| ], | ||
| faucets: [], | ||
| nativeCurrency: { | ||
| name: "Ether", | ||
| symbol: "ETH", | ||
| decimals: 18, | ||
| }, | ||
| infoURL: "https://scroll.io", | ||
| shortName: "scr", | ||
| chainId: 534352, | ||
| networkId: 534352, | ||
| explorers: [ | ||
| { | ||
| name: "Scrollscan", | ||
| url: "https://scrollscan.com", | ||
| standard: "EIP3091", | ||
| }, | ||
| { | ||
| name: "Blockscout", | ||
| url: "https://blockscout.scroll.io", | ||
| standard: "EIP3091", | ||
| }, | ||
| ], | ||
| parent: { | ||
| type: "L2", | ||
| chain: "eip155-1", | ||
| bridges: [ | ||
| { | ||
| url: "https://scroll.io/bridge", | ||
| }, | ||
| ], | ||
| }, | ||
| } |
Contributor
Author
There was a problem hiding this comment.
yqrashawn
commented
Nov 1, 2023
bc17b2a to
22e81c2
Compare
yqrashawn
commented
Nov 1, 2023
Contributor
Member
22e81c2 to
6d0db31
Compare
Contributor
Author
Contributor
Author
|
To add custom style, you can remove scroll-documentation/src/components/RPCTable/RPCTable.astro Lines 3 to 5 in 6d0db31 The package adds zero style if these two imports are removed |
a696da4 to
d4f24e0
Compare
cf95f67 to
c7c308c
Compare
- add rpc table component through `ethereum-rpc-table` package - add example usage in `docs/en/user-guide/setup.mdx` - package code at https://github.com/scroll-tech/ethereum-rpc-table Signed-off-by: yqrashawn <namy.19@gmail.com>
c7c308c to
64ab016
Compare
dghelm
approved these changes
Feb 13, 2024
Contributor
dghelm
left a comment
There was a problem hiding this comment.
LGTM -- adjusted css and moved to components preview page.
Might assess followup for mobile, but we'll likely just want to hide it and make a component that alternates display after different breakpoints.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
ethereum-rpc-tablepackagedocs/en/user-guide/setup.mdx, this is just an example, the table is not supposed to be there, do not merge