Skip to content

Update Prod - 02/23/2024 #188

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

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
612 changes: 592 additions & 20 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"astro-auto-import": "^0.3.0",
"astro-i18next": "^1.0.0-beta.21",
"clipboard": "^2.0.11",
"ethereum-rpc-table": "^0.0.1",
"ethers": "^5.7.2",
"focus-trap-react": "^10.0.0",
"github-slugger": "^1.4.0",
Expand Down
13 changes: 12 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@
"scrollDocsURL": "https://docs.scroll.io/",
"blog": "Blog",
"documentation": "Documentation",
"brandKit": "Brand Kit"
"brandKit": "Brand Kit",
"audits": "Audits"
},
"followUs": {
"title": "Follow Us"
Expand All @@ -180,6 +181,16 @@
"title": "Page not found",
"text": "We're sorry, but we couldn't find the page you were looking for."
},
"rpcTable": {
"rpcServerAddress": "RPC Server Address",
"height": "Height",
"latency": "Latency",
"score": "Score",
"privacy": "Privacy",
"addNetwork": "Add Network",
"connect": "Connect",
"sorting": "Sorting"
},
"notTranslated": {
"notTranslated": "This page has not been translated yet."
}
Expand Down
3 changes: 2 additions & 1 deletion public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
"scrollDocsURL": "https://docs.scroll.io/es",
"blog": "Blog",
"documentation": "Documentación",
"brandKit": "Kit de Marca"
"brandKit": "Kit de Marca",
"audits": "Auditorías"
},
"followUs": {
"title": "Síguenos"
Expand Down
13 changes: 12 additions & 1 deletion public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
"scrollDocsURL": "https://docs.scroll.io/",
"blog": "博客",
"documentation": "文档",
"brandKit": "品牌工具包"
"brandKit": "品牌工具包",
"audits": "审计"
},
"followUs": {
"title": "关注我们"
Expand All @@ -179,6 +180,16 @@
"title": "页面未找到",
"text": "很抱歉,我们找不到您正在寻找的页面"
},
"rpcTable": {
"rpcServerAddress": "RPC 服务地址",
"height": "区块高度",
"latency": "延迟",
"score": "评分",
"privacy": "隐私",
"addNetwork": "添加网络",
"connect": "连接钱包",
"sorting": "自动更新"
},
"notTranslated": {
"notTranslated": "此页面尚未翻译。"
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/Footer/helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ export const resourceList = [
},
{
name: "footer.resources.brandKit",
href: "https://scrollzkp.notion.site/Scroll-Rebrand-Assets-5bb83465f56f40989c4f772b39ed3a06",
href: "https://scroll.io/brand-kit",
},
{
name: "footer.resources.audits",
href: "https://github.com/scroll-tech/scroll-audits",
},
]

Expand Down
86 changes: 86 additions & 0 deletions src/components/RPCTable/RPCTable.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
import { RPCTable } from "ethereum-rpc-table"
import "ethereum-rpc-table/lib/default.css"
import i18next, { t } from "i18next"
import "./RPCTable.css"

let { chainData, copy, title } = Astro.props

title = title || "Scroll Mainnet RPC URL List"

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",
},
],
},
}

copy = copy || {
"RPC Server Address": t("rpcTable.rpcServerAddress"),
Height: t("rpcTable.height"),
Latency: t("rpcTable.latency"),
Score: t("rpcTable.score"),
Privacy: t("rpcTable.privacy"),
"Add Network": t("rpcTable.addNetwork"),
Connect: t("rpcTable.connect"),
Sorting: t("rpcTable.sorting"),
}
---

<RPCTable client:only="preact" title={title} rpcData={chainData} copy={copy} />
26 changes: 26 additions & 0 deletions src/components/RPCTable/RPCTable.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
table.__ethereum-rpc-table > caption {
/* table's :before is some how on top of caption only in firefox */
position: relative;
z-index: 1;
}

table.__ethereum-rpc-table > caption,
table.__ethereum-rpc-table > tbody tr:last-child td:first-child,
table.__ethereum-rpc-table > tbody tr:last-child td:last-child {
border-width: 0;
}

table.__ethereum-rpc-table > thead > tr > th {
border-bottom-width: 0;
text-align: center;
}

table.__ethereum-rpc-table > caption > span {
font-size: 1rem;
font-weight: bold;
}

.__ethereum-rpc-table > tbody > tr > td:nth-child(1) {
text-align: left;
padding-left: 16px;
}
5 changes: 5 additions & 0 deletions src/content/docs/en/article-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import priceAggr from "../../../assets/images/contract-devs/price-aggr.png"
import ToggleElement from "../../../components/ToggleElement.astro"
import Aside from "../../../components/Aside.astro"
import MarkmapView from "../../../components/MarkmapView/index.astro"
import RPCTable from "../../../components/RPCTable/RPCTable.astro"

This is body text right under the article title. It typically is just paragraph text that's pretty straightforward. Then there's **bold text**, and _italic text_, and **_bold-italic text_**, and `inline-code` and **`bold inline code`** and even _`italic inline code`_ and **_`bold italic inline code`_**. And of course don't forget [links](#), and [**bold links**](#), and [_italic links_](#), and [**_bold-italic links_**](#).

Expand Down Expand Up @@ -162,3 +163,7 @@ stateDiagram
ExecutionState --> ConstraintBuilder
step_context --> ConstraintBuilder
```

### RPC Table

<RPCTable />
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Scroll has worked with several industry-leading security audit firms to review o
- [ScrollOwner and Rate Limiter](https://blog.openzeppelin.com/scrollowner-and-rate-limiter-audit)
- [USDC Gateway](https://blog.openzeppelin.com/scroll-usdc-gateway-audit)
- [Contract diff](https://blog.openzeppelin.com/scroll-diff-audit-report)
- [Bridge Gas Optimizations](https://blog.openzeppelin.com/scroll-bridge-gas-optimizations-audit)
- Zellic
- [Report 1](https://github.com/Zellic/publications/blob/master/Scroll%20-%2005.26.23%20Zellic%20Audit%20Report.pdf)
- [Report 2](https://github.com/Zellic/publications/blob/master/Scroll%20-%2009.27.23%20Zellic%20Audit%20Report.pdf)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Scroll 已经与多家业内领先的安全审计公司合作,来审查我们
- [ScrollOwner and Rate Limiter](https://blog.openzeppelin.com/scrollowner-and-rate-limiter-audit)
- [USDC Gateway](https://blog.openzeppelin.com/scroll-usdc-gateway-audit)
- [Contract diff](https://blog.openzeppelin.com/scroll-diff-audit-report)
- [Bridge Gas Optimizations](https://blog.openzeppelin.com/scroll-bridge-gas-optimizations-audit)
- Zellic
- [Report 1](https://github.com/Zellic/publications/blob/master/Scroll%20-%2005.26.23%20Zellic%20Audit%20Report.pdf)
- [Report 2](https://github.com/Zellic/publications/blob/master/Scroll%20-%2009.27.23%20Zellic%20Audit%20Report.pdf)
Expand Down