-
Notifications
You must be signed in to change notification settings - Fork 192
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
This is good for now!
bc17b2a
to
22e81c2
Compare
22e81c2
to
6d0db31
Compare
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 <[email protected]>
c7c308c
to
64ab016
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.
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-table
packagedocs/en/user-guide/setup.mdx
, this is just an example, the table is not supposed to be there, do not merge