Skip to content

Commit

Permalink
Merge pull request ethereum#23 from ethereum/update-7.20.1
Browse files Browse the repository at this point in the history
Update v7.20.1
  • Loading branch information
nhsz authored Sep 8, 2023
2 parents e99f415 + e2d75e4 commit 303da15
Show file tree
Hide file tree
Showing 20 changed files with 153 additions and 21 deletions.
64 changes: 64 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -10432,6 +10432,70 @@
"doc",
"bug"
]
},
{
"login": "mteam88",
"name": "Matthew",
"avatar_url": "https://avatars.githubusercontent.com/u/84196639?v=4",
"profile": "https://mteam88.github.io",
"contributions": [
"bug",
"doc"
]
},
{
"login": "avalidurl",
"name": "gokhan",
"avatar_url": "https://avatars.githubusercontent.com/u/11991363?v=4",
"profile": "https://github.com/avalidurl",
"contributions": [
"bug"
]
},
{
"login": "0xadri",
"name": "Adri",
"avatar_url": "https://avatars.githubusercontent.com/u/738533?v=4",
"profile": "https://github.com/0xadri",
"contributions": [
"content"
]
},
{
"login": "DSherryD",
"name": "Sherry.Du",
"avatar_url": "https://avatars.githubusercontent.com/u/130898085?v=4",
"profile": "https://github.com/DSherryD",
"contributions": [
"content"
]
},
{
"login": "FrancescoXX",
"name": "Francesco Ciulla",
"avatar_url": "https://avatars.githubusercontent.com/u/18360871?v=4",
"profile": "http://francescociulla.com",
"contributions": [
"content"
]
},
{
"login": "blazingrome",
"name": "blazingrome",
"avatar_url": "https://avatars.githubusercontent.com/u/136898739?v=4",
"profile": "https://github.com/blazingrome",
"contributions": [
"content"
]
},
{
"login": "etan-status",
"name": "Etan Kissling",
"avatar_url": "https://avatars.githubusercontent.com/u/89844309?v=4",
"profile": "https://github.com/etan-status",
"contributions": [
"content"
]
}
],
"contributorsPerLine": 7,
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ To use an existing function locally you don't need to do anything. Just check th

To create a new function, you will need to create two files:

- One in `src/lambdas` where the logic will live. These are the ones that will be deployed to Netlify. These functions follow [this format](https://docs.netlify.com/functions/build-with-javascript/#synchronous-function-format).
- One in `src/lambda` where the logic will live. These are the ones that will be deployed to Netlify. These functions follow [this format](https://docs.netlify.com/functions/build-with-javascript/#synchronous-function-format).
- One in `src/api` that will be just a wrapper around the previous one in order to be compatible with Gatsby functions. More on the [Gatbsy docs](https://www.gatsbyjs.com/docs/reference/functions/getting-started/) for the format they follow.

Typically, you will develop and test functions in the Gatsby context, by running `yarn start`.
Expand Down Expand Up @@ -1631,6 +1631,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LadyDhaga"><img src="https://avatars.githubusercontent.com/u/106376368?v=4?s=100" width="100px;" alt="chinaman123"/><br /><sub><b>chinaman123</b></sub></a><br /><a href="#ideas-LadyDhaga" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://t.me/mevsinternet"><img src="https://avatars.githubusercontent.com/u/32142853?v=4?s=100" width="100px;" alt="Alex"/><br /><sub><b>Alex</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=z0rats" title="Documentation">📖</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Az0rats" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://mteam88.github.io"><img src="https://avatars.githubusercontent.com/u/84196639?v=4?s=100" width="100px;" alt="Matthew"/><br /><sub><b>Matthew</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Amteam88" title="Bug reports">🐛</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=mteam88" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/avalidurl"><img src="https://avatars.githubusercontent.com/u/11991363?v=4?s=100" width="100px;" alt="gokhan"/><br /><sub><b>gokhan</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Aavalidurl" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xadri"><img src="https://avatars.githubusercontent.com/u/738533?v=4?s=100" width="100px;" alt="Adri"/><br /><sub><b>Adri</b></sub></a><br /><a href="#content-0xadri" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/DSherryD"><img src="https://avatars.githubusercontent.com/u/130898085?v=4?s=100" width="100px;" alt="Sherry.Du"/><br /><sub><b>Sherry.Du</b></sub></a><br /><a href="#content-DSherryD" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://francescociulla.com"><img src="https://avatars.githubusercontent.com/u/18360871?v=4?s=100" width="100px;" alt="Francesco Ciulla"/><br /><sub><b>Francesco Ciulla</b></sub></a><br /><a href="#content-FrancescoXX" title="Content">🖋</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/blazingrome"><img src="https://avatars.githubusercontent.com/u/136898739?v=4?s=100" width="100px;" alt="blazingrome"/><br /><sub><b>blazingrome</b></sub></a><br /><a href="#content-blazingrome" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/etan-status"><img src="https://avatars.githubusercontent.com/u/89844309?v=4?s=100" width="100px;" alt="Etan Kissling"/><br /><sub><b>Etan Kissling</b></sub></a><br /><a href="#content-etan-status" title="Content">🖋</a></td>
</tr>
</tbody>
</table>
Expand Down
43 changes: 43 additions & 0 deletions docs/ds-implementation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# DS implementation guide

This is a reference for implementing the new Design System components and styles defined in a public [Figma file](https://www.figma.com/file/NrNxGjBL0Yl1PrNrOT8G2B/ethereum.org-Design-System).

This is part of our [Design System implementation epic](https://github.com/ethereum/ethereum-org-website/issues/9546). Currently we are implementing the v1, check the remaining tasks [here](https://github.com/ethereum/ethereum-org-website/issues/9548).

## Basics

- Use Chakra tokens for spacing, sizes, and breakpoints. [Chakra theme docs](https://chakra-ui.com/docs/styled-system/theme)
- For colors use the semantic tokens defined in [this file](https://github.com/ethereum/ethereum-org-website/blob/dev/src/@chakra-ui/gatsby-plugin/semanticTokens.ts). These tokens will match the color variables used in the DS Figma file
- Use as many Chakra components and utils as possible
- Read the [Best Practices doc](https://github.com/ethereum/ethereum-org-website/blob/dev/docs/best-practices.md) for more examples and info

**IMPORTANT**
Follow the new component directory structure:

```markdown
src/
└── components/
└── ComponentA/
├── index.tsx
├── ComponentA.stories.tsx
└── // Any other files as applicable (utils, child components, useHook, etc.)
```

## Components creation/modification from the DS

If you are implementing:

- A base component (a component that already exists in the [Chakra components list](https://chakra-ui.com/docs/components/), for example, the button or inputs)
- Try to avoid creating a new component file `/ComponentA/index.tsx` if there is no additional or custom logic we need to add to them
- Create a theme file to override the default Chakra styles with the DS specs. See examples under the [Chakra theme folder](https://github.com/ethereum/ethereum-org-website/blob/dev/src/@chakra-ui/gatsby-plugin/components/)
- Create a `.stories.tsx` file under `src/components/BaseStories`
- A new custom component (e.g. the PageHero)
- Use as many Chakra components as possible
- Avoid implementing previous implementation details or styles if Chakra offers a solution for that

## Stories

As defined in the new directory structure, each created or adapted component must have a story attached to it.

- Follow the [Applying Storybook documentation](https://github.com/ethereum/ethereum-org-website/blob/dev/docs/applying-storybook.md)
- Follow the [proposed Storybook structure](https://www.figma.com/file/Ne3iAassyfAcJ0AlgqioAP/DS-to-storybook-structure)
4 changes: 2 additions & 2 deletions public/content/community/code-of-conduct/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Open participation is core to the ethereum.org ethos. We are a website and commu

### Scope {#scope}

This Code of Conduct applies to all ethereum.org spaces (such as GitHub, Discord, Figma Crowdin, Twitter and other online platforms), and it also applies when the community is represented in real-world public spaces such as at meetups, conferences and events.
This Code of Conduct applies to all ethereum.org spaces (such as GitHub, Discord, Figma, Crowdin, Twitter and other online platforms), and it also applies when the community is represented in real-world public spaces such as at meetups, conferences and events.

### Our standards {#our-standards}

Expand All @@ -52,7 +52,7 @@ Examples of unacceptable behavior by participants include:

- Physical violence, threatening physical violence or encouraging of physical violence of any kind
- Using sexualized language or imagery or imposing unwelcome sexual attention
- Impersonating another individual or otherwise dishonestly claiming affiliation with some individual or organization.
- Impersonating another individual or otherwise dishonestly claiming affiliation with some individual or organization
- Trolling, insulting/derogatory comments, and personal or political attacks
- Harassing other community members in public or private channels
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
Expand Down
2 changes: 1 addition & 1 deletion public/content/community/get-involved/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Do you have a background in mathematics, cryptography, or economics? You might b
- Write or review an Ethereum Improvement Proposal
- Write an EIP
1. Submit your idea on [Ethereum Magicians](https://ethereum-magicians.org)
2. Read [EIP-1](https://eip.ethereum.org/EIPS/eip-1) - **Yes, that's the _entire_ document.**
2. Read [EIP-1](https://eips.ethereum.org/EIPS/eip-1) - **Yes, that's the _entire_ document.**
3. Follow the directons in EIP-1. Reference it as you write your draft.
- Learn how to become an [EIP Editor](https://eips.ethereum.org/EIPS/eip-5069)
- You can peer-review EIPs right now! See [open PRs with the `e-review` tag](https://github.com/ethereum/EIPs/pulls?q=is%3Apr+is%3Aopen+label%3Ae-review). Provide technical feedback on the `discussion-to` link.
Expand Down
2 changes: 1 addition & 1 deletion public/content/developers/docs/apis/json-rpc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ params: [
- `blockHash`: `DATA`, 32 Bytes - hash of the block where this log was in. `null` when its pending. `null` when its pending log.
- `blockNumber`: `QUANTITY` - the block number where this log was in. `null` when its pending. `null` when its pending log.
- `address`: `DATA`, 20 Bytes - address from which this log originated.
- `data`: `DATA` - contains one or more 32 Bytes non-indexed arguments of the log.
- `data`: `DATA` - contains zero or more 32 Bytes non-indexed arguments of the log.
- `topics`: `Array of DATA` - Array of 0 to 4 32 Bytes `DATA` of indexed log arguments. (In _solidity_: The first topic is the _hash_ of the signature of the event (e.g. `Deposit(address,bytes32,uint256)`), except you declared the event with the `anonymous` specifier.)
- **Example**
Expand Down
2 changes: 1 addition & 1 deletion public/content/developers/docs/bridges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ For developers, there are many ways to add support for bridges:
- Assessment and maintenance of bridges are hard and time-consuming.
- Selecting one bridge creates a single point of failure and dependency.
- The dapp is limited by the bridge’s capabilities.
- Bridges alone might not be enough. dapps might need DEXs to offer more functionality such as cross-chain swaps.
- Bridges alone might not be enough. Dapps might need DEXs to offer more functionality such as cross-chain swaps.

4. **Integrating multiple bridges –** This solution solves many problems associated with integrating a single bridge. However, it also has limitations, as integrating multiple bridges is resource-consuming and creates technical and communication overheads for developers—the scarcest resource in crypto.

Expand Down
2 changes: 1 addition & 1 deletion public/content/developers/docs/design-and-ux/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Design and UX in web3
description: Introduction to UX design an research in web3 space and Ethereum
description: Introduction to UX design and research in web3 space and Ethereum
lang: en
---

Expand Down
2 changes: 1 addition & 1 deletion public/content/developers/docs/ides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ Most established IDEs have built plugins to enhance the Ethereum development exp

## Further reading {#further-reading}

- [Ethereum IDEs](https://www.alchemy.com/list-of/web3-ides-on-ethereum) _- Alchemy's list of Ethereunm IDEs_
- [Ethereum IDEs](https://www.alchemy.com/list-of/web3-ides-on-ethereum) _- Alchemy's list of Ethereum IDEs_

_Know of a community resource that helped you? Edit this page and add it!_
1 change: 0 additions & 1 deletion public/content/developers/docs/networks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ The Sepolia network uses a permissioned validator set. It's fairly new, meaning
- [QuickNode Sepolia Faucet](https://faucet.quicknode.com/drip)
- [Grabteeth](https://grabteeth.xyz/)
- [PoW faucet](https://sepolia-faucet.pk910.de/)
- [Sepolia faucet](https://faucet.sepolia.dev/)
- [FaucETH](https://fauceth.komputing.org)
- [Coinbase Wallet Faucet | Sepolia](https://coinbase.com/faucets/ethereum-sepolia-faucet)
- [Alchemy Sepolia faucet](https://sepoliafaucet.com/)
Expand Down
2 changes: 1 addition & 1 deletion public/content/energy-consumption/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lang: en

Ethereum is a green blockchain. Ethereum's [proof-of-stake](/developers/docs/consensus-mechanisms/pos) consensus mechanism uses ETH instead of [energy to secure the network](/developers/docs/consensus-mechanisms/pow). Ethereum's energy consumption is approximately [~0.0026 TWh/yr](https://carbon-ratings.com/eth-report-2022) across the entire global network.

The energy consumption estimate for Ethereum comes from a [CCRI (Crypto Carbon Ratings Institute)](https://carbon-ratings.com) study. They generated bottom-up estimates of the electricity consumption and the carbon footprint of the Ethereum network ([see the report](https://carbon-ratings.com/eth-report-2022)). They measured the electricity consumption of different nodes with various hardware and client software configurations. The estimated **2,601 MWh** (0.0026 TWh) for the network’s annual electricity consumption corresponds to yearly carbon emissions of **870 tonnes CO2e** applying regional-specific carbon intensity factors. This value changes as nodes enter and leave the network - you can keep track using a rolling 7-day average estimate by the [Cambridge Blockchain network Sustainability Index](https://ccaf.io/cbnsi/ethereum) (note that they use a slightly different method for their estimates - details available on their site).
The energy consumption estimate for Ethereum comes from a [CCRI (Crypto Carbon Ratings Institute)](https://carbon-ratings.com) study. They generated bottom-up estimates of the electricity consumption and the carbon footprint of the Ethereum network ([see the report](https://carbon-ratings.com/eth-report-2022)). They measured the electricity consumption of different nodes with various hardware and client software configurations. The estimated **2,601 MWh** (0.0026 TWh) for the network’s annual electricity consumption corresponds to yearly carbon emissions of **870 tonnes CO2e** applying regional-specific carbon intensity factors. This value changes as nodes enter and leave the network - you can keep track using a rolling 7-day average estimate by the [Cambridge Blockchain Network Sustainability Index](https://ccaf.io/cbnsi/ethereum) (note that they use a slightly different method for their estimates - details available on their site).

To contextualize Ethereum's energy consumption, we can compare annualized estimates for some other industries. This helps us better understand whether the estimate for Ethereum is high or low.

Expand Down
4 changes: 2 additions & 2 deletions public/content/guides/how-to-use-a-wallet/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lang: en

# How to use a wallet

Learn how to operate all the basic functions of a wallet. If you don’t have one yet, check out our [How to: create an Ethereum account](/guides/how-to-create-an-ethereum-account/).
Learn how to operate all the basic functions of a wallet. If you don’t have one yet, check out our [How to create an Ethereum account](/guides/how-to-create-an-ethereum-account/).

## Open your wallet

Expand Down Expand Up @@ -51,7 +51,7 @@ Your address will be the same in all Ethereum projects. You do not need to regis

1. Visit any project’s website.
2. If the project's landing page is just a static description of the project, you should be able to click on an "Open the App" button in the menu which will navigate you to the actual web app.
3. Once you are in the app click on “Connect”
3. Once you are in the app click on “Connect”.

![Button allowing user to connect to the website with a wallet](./connect1.png)

Expand Down
4 changes: 2 additions & 2 deletions public/content/roadmap/account-abstraction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ For example, backup keys can be added to a wallet so that if you lose or acciden
- **Multisig authorization**: You can share authorization credentials across multiple trusted people or devices. Then the contract can be configured so that transactions of more than some preset value require authorization from a certain proportion (e.g. 3/5) of the trusted parties. For example, high value transactions might require approval from both a mobile device and a hardware wallet, or signatures from accounts distributed to trusted family members.
- **Account freezing**: If a device is lost or compromised the account can be locked from another authorized device, protecting the user's assets.
- **Account recovery**: Lost a device or forgotten a password? In the current paradigm this means your assets could be frozen forever. With a smart contract wallet, you can set some pre-approved accounts that can authorize new devices and reset access.
- **Set transaction limits**: specify daily thresholds for how much value can be transferred from the account in a day/week/month. This means if an attacker does gain access to your account they can't drain everything at once and you have opportunities to freeze and reset access.
- **Create whitelists**: only allow transactions to certain addresses that you know to be safe. This means that _even if_ your private key was stolen, the attacker could not send funds to non-whitelisted destination accounts. These whitelists would require multiple signatures to change them so that an attacker couldn't add their own address to the list unless they had access to several of your backup keys.
- **Set transaction limits**: Specify daily thresholds for how much value can be transferred from the account in a day/week/month. This means if an attacker does gain access to your account they can't drain everything at once and you have opportunities to freeze and reset access.
- **Create whitelists**: Only allow transactions to certain addresses that you know to be safe. This means that _even if_ your private key was stolen, the attacker could not send funds to non-whitelisted destination accounts. These whitelists would require multiple signatures to change them so that an attacker couldn't add their own address to the list unless they had access to several of your backup keys.

## Better user experience {#better-user-experience}

Expand Down
Loading

0 comments on commit 303da15

Please sign in to comment.