Uh oh!
There was an error while loading. Please reload this page.
feat: add ethereum rpc table component and example - #115
Conversation
✅ Deploy Preview for scroll-documentation ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| 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", | ||
| }, | ||
| ], | ||
| }, | ||
| } |
There was a problem hiding this comment.
Uh oh!
There was an error while loading. Please reload this page.
bc17b2a to
22e81c2CompareUh oh!
There was an error while loading. Please reload this page.
dghelm
commented
Nov 1, 2023
zzq0826
commented
Nov 2, 2023
22e81c2 to
6d0db31Compareyqrashawn
commented
Nov 6, 2023
yqrashawn
commented
Nov 9, 2023
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
d4f24e0Comparecf95f67 to
c7c308cCompare- 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
64ab016Compare
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.
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