Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
feat: adding banner and removing most of sepolia mentions (#975)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Villanueva <[email protected]>
Co-authored-by: Dustin Brickwood <[email protected]>
  • Loading branch information
3 people authored Mar 15, 2024
1 parent 1d98183 commit 9eee311
Show file tree
Hide file tree
Showing 22 changed files with 77 additions and 104 deletions.
6 changes: 3 additions & 3 deletions docs/.vuepress/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<NavBar>
<template #rightStart>
<GoogleTranslateSelect default-language-code="en" default-page-language-code="en" :fetch-browser-language="false" trigger="click" @select="handleGoogleTranslateSelect" />
</template>
<template #rightStart>
<GoogleTranslateSelect default-language-code="en" default-page-language-code="en" :fetch-browser-language="false" trigger="click" @select="handleGoogleTranslateSelect" />
</template>
</NavBar>
</template>

Expand Down
12 changes: 0 additions & 12 deletions docs/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ export const enSidebar = sidebar({
text: "Web3.js",
link: "/build/tutorials/tooling-guides/web3js.md",
},
{
text: "API3",
link: "/build/tutorials/tooling-guides/api3.md",
},
{
text: "DIA",
link: "/build/tutorials/tooling-guides/dia.md",
},
{
text: "Redstone",
link: "/build/tutorials/tooling-guides/redstone.md",
Expand All @@ -136,10 +128,6 @@ export const enSidebar = sidebar({
text: "SubQuery",
link: "/build/tutorials/tooling-guides/subquery.md",
},
{
text: "LayerZero",
link: "/build/tutorials/tooling-guides/layerzero.md",
},
],
},
{
Expand Down
44 changes: 44 additions & 0 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -840,3 +840,47 @@ $border-color: #e5e7eb;
--code-bg-color: #131417;
}
}

// TEMP BANNER RELATED - TO BE REMOVED ONCE IT IS GONE
.theme-container {
margin-top: 30px;
}

#temp-banner {
position: fixed;
display: flex;
top:0;
left: 0;
right: 0;
height: 30px;
background: #1755F4;
color: white;
font-size: small;
align-items: center;
justify-content: center;
z-index: 1000;

a {
color: white;
text-decoration: underline;
}
}

.navbar {
top: 30px;
}

/*responsive*/
@media(max-width: 1000px){
#temp-banner {
height: 40px;
}

.navbar {
top: 40px;
}

.theme-container {
margin-top: 40px;
}
}
2 changes: 1 addition & 1 deletion docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default hopeTheme({
</div>
<p>Made with ❤️ by <a href='https://matter-labs.io/'>Matter Labs</a></p>
<div id="temp-banner"><div>zkSync Goerli Testnet will be shutdown on&nbsp;<strong>March 31st</strong>. Please use zkSync Sepolia Testnet instead. For more information see&nbsp;<a href="https://github.com/zkSync-Community-Hub/zksync-developers/discussions/228" target="_blank">this announcement</a>.</div></div>
`,

copyright: false,
Expand Down
32 changes: 0 additions & 32 deletions docs/build/quick-start/useful-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,35 +65,3 @@ These are the addresses that have been deployed and integrated with the token br
| L1ERC20BridgeProxy | [0x2Ae09702F77a4940621572fBcDAe2382D44a2cbA](https://sepolia.etherscan.io/address/0x2Ae09702F77a4940621572fBcDAe2382D44a2cbA#code) |
| L1ERC20BridgeImpl | [0x84DbCC0B82124bee38e3Ce9a92CdE2f943bab60D](https://sepolia.etherscan.io/address/0x84DbCC0B82124bee38e3Ce9a92CdE2f943bab60D#code) |
| L2ERC20Bridge | [0x681A1AFdC2e06776816386500D2D461a6C96cB45](https://sepolia.explorer.zksync.io/address/0x681A1AFdC2e06776816386500D2D461a6C96cB45) |

## Goerli testnet

### Goerli contract addresses

::: warning Goerli deprecated

The Goerli testnet is being deprecated, please use Sepolia.

:::

| Contract | Address |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| DiamondInit | [0x81aE464127286C26f21495d053AA19Eec708055F](https://goerli.etherscan.io/address/0x81aE464127286C26f21495d053AA19Eec708055F#code) |
| DiamondProxy | [0x1908e2BF4a88F91E4eF0DC72f02b8Ea36BEa2319](https://goerli.etherscan.io/address/0x1908e2BF4a88F91E4eF0DC72f02b8Ea36BEa2319#code) |
| DiamondUpgrade | [0xFC88e9e4e11B1C083B40197500827E1894d55a83](https://goerli.etherscan.io/address/0xFC88e9e4e11B1C083B40197500827E1894d55a83#code) |
| ExecutorFacet | [0xD059478a564dF1353A54AC0D0e7Fc55A90b92246](https://goerli.etherscan.io/address/0xD059478a564dF1353A54AC0D0e7Fc55A90b92246#code) |
| GettersFacet | [0xF3ACF6a03ea4a914B78Ec788624B25ceC37c14A4](https://goerli.etherscan.io/address/0xF3ACF6a03ea4a914B78Ec788624B25ceC37c14A4#code) |
| Verifier | [0xB465882F67d236DcC0D090F78ebb0d838e9719D8](https://goerli.etherscan.io/address/0xB465882F67d236DcC0D090F78ebb0d838e9719D8#code) |
| MailboxFacet | [0x63b5EC36B09384fFA7106A80Ec7cfdFCa521fD08](https://goerli.etherscan.io/address/0x63b5EC36B09384fFA7106A80Ec7cfdFCa521fD08#code) |
| AllowList | [0x1ad02481F1F9E779Ec0C229799B05365E453Ce30](https://goerli.etherscan.io/address/0x1ad02481F1F9E779Ec0C229799B05365E453Ce30#code) |
| L2TestnetPaymaster | [0x8f0ea1312da29f17eabeb2f484fd3c112cccdd63](https://goerli.explorer.zksync.io/address/0x8f0ea1312da29f17eabeb2f484fd3c112cccdd63) |

### Goerli token bridge contract addresses

These are the addresses that have been deployed and integrated with the token bridge on testnet.

| Contract | Address |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| L1ERC20BridgeProxy | [0x927DdFcc55164a59E0F33918D13a2D559bC10ce7](https://goerli.etherscan.io/address/0x927DdFcc55164a59E0F33918D13a2D559bC10ce7#code) |
| L1ERC20BridgeImpl | [0xF1b4A4bF596505719b57cAecF9ba18FE23CE7897](https://goerli.etherscan.io/address/0xF1b4A4bF596505719b57cAecF9ba18FE23CE7897#code) |
| L2ERC20Bridge | [0x00ff932A6d70E2B8f1Eb4919e1e09C1923E7e57b](https://goerli.explorer.zksync.io/address/0x00ff932A6d70E2B8f1Eb4919e1e09C1923E7e57b) |
12 changes: 6 additions & 6 deletions docs/build/sdks/go/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ NewWalletL1FromSigner(signer *Signer, clientL1 *ethclient.Client, clientL2 *clie

```go
PrivateKey := os.Getenv("PRIVATE_KEY")
ZkSyncEraProvider := "https://testnet.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_goerli"
ZkSyncEraProvider := "https://sepolia.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_sepolia"

client, err := clients.Dial(ZkSyncEraProvider)
if err != nil {
Expand Down Expand Up @@ -1364,8 +1364,8 @@ func NewRandomWallet(chainId int64, clientL2 *clients.Client, clientL1 *ethclien

```go
PrivateKey := os.Getenv("PRIVATE_KEY")
ZkSyncEraProvider := "https://testnet.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_goerli"
ZkSyncEraProvider := "https://sepolia.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_sepolia"

client, err := clients.Dial(ZkSyncEraProvider)
if err != nil {
Expand Down Expand Up @@ -1455,8 +1455,8 @@ ConnectL1(client *ethclient.Client) (*Wallet, error)

```go
PrivateKey := os.Getenv("PRIVATE_KEY")
ZkSyncEraProvider := "https://testnet.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_goerli"
ZkSyncEraProvider := "https://sepolia.era.zksync.dev"
EthereumProvider := "https://rpc.ankr.com/eth_sepolia"

client, err := clients.Dial(ZkSyncEraProvider)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion docs/build/sdks/go/clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ L2TransactionFromPriorityOp(ctx context.Context, l1TxReceipt *types.Receipt) (*z

```go
// Connect to Ethereum network
ethClient, err := ethclient.Dial("https://rpc.ankr.com/eth_goerli")
ethClient, err := ethclient.Dial("https://rpc.ankr.com/eth_sepolia")
if err != nil {
log.Panic(err)
}
Expand Down
1 change: 0 additions & 1 deletion docs/build/sdks/java/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public class Main {
:::tip
Mainnet chain id: 324
Sepolia testnet chain id: 300
Goerli testnet chain id: 280
Local setup chain id: 270
:::

Expand Down
4 changes: 2 additions & 2 deletions docs/build/sdks/js/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ import { Provider, types } from "zksync-ethers";

const testnetPaymasterBytecodeHash = "0x010000f16d2b10ddeb1c32f2c9d222eb1aea0f638ec94a81d4e916c627720e30";

const provider = Provider.getDefaultProvider(types.Network.Goerli);
const provider = Provider.getDefaultProvider(types.Network.Sepolia);
console.log(`Bytecode: ${await provider.getBytecodeByHash(testnetPaymasterBytecodeHash)}`);
```

Expand Down Expand Up @@ -850,7 +850,7 @@ Helper function: [toJSON](#tojson).
```ts
import { Provider, types } from "zksync-ethers";

const provider = Provider.getDefaultProvider(types.Network.Goerli);
const provider = Provider.getDefaultProvider(types.Network.Sepolia);
console.log(`Raw block transactions: ${toJSON(await provider.getRawBlockTransactions(90_000))}`);
```

Expand Down
1 change: 0 additions & 1 deletion docs/build/sdks/js/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ Enumerated list of networks and their ids.
- Mainnet = `1`
- Ropsten = `3`
- Rinkeby = `4`
- Goerli = `5`
- Sepolia = `6`,
- localhost = `9`

Expand Down
4 changes: 2 additions & 2 deletions docs/build/sdks/js/zksync-ethers/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ import { Provider, types } from "zksync-ethers";

const testnetPaymasterBytecodeHash = "0x010000f16d2b10ddeb1c32f2c9d222eb1aea0f638ec94a81d4e916c627720e30";

const provider = Provider.getDefaultProvider(types.Network.Goerli);
const provider = Provider.getDefaultProvider(types.Network.Sepolia);
console.log(`Bytecode: ${await provider.getBytecodeByHash(testnetPaymasterBytecodeHash)}`);
```
Expand Down Expand Up @@ -875,7 +875,7 @@ Helper function: [toJSON](#tojson).
```ts
import { Provider, types } from "zksync-ethers";

const provider = Provider.getDefaultProvider(types.Network.Goerli);
const provider = Provider.getDefaultProvider(types.Network.Sepolia);
console.log(`Raw block transactions: ${toJSON(await provider.getRawBlockTransactions(90_000))}`);
```
Expand Down
1 change: 0 additions & 1 deletion docs/build/sdks/js/zksync-ethers/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ Enumerated list of networks and their ids.
- Mainnet = `1`
- Ropsten = `3`
- Rinkeby = `4`
- Goerli = `5`
- Sepolia = `6`,
- localhost = `9`

Expand Down
12 changes: 6 additions & 6 deletions docs/build/test-and-debug/era-test-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,36 +220,36 @@ EthToken System Contract

## Sending network calls

You can send network calls against a running `era-test-node`. You can check the Goerli testnet LINK balance or mainnet USDT using `curl` or [foundry-zksync](https://github.com/matter-labs/foundry-zksync).
You can send network calls against a running `era-test-node`. You can check the Sepolia testnet LINK balance or mainnet USDT using `curl` or [foundry-zksync](https://github.com/matter-labs/foundry-zksync).

To get started, launch the local in-memory node:

```bash
era_test_node fork goerli-testnet
era_test_node fork sepolia-testnet
```

Next, use curl to send a network call:

```bash
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78", "data":"0x06fdde03"}, "latest"],"id":1}' http://localhost:8011
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0xe1134444211593Cfda9fc9eCc7B43208615556E2", "data":"0x313ce567"}, "latest"],"id":1}' http://localhost:8011
```

Here's an example of what you should expect to see:
```bash
{"jsonrpc":"2.0","result":"0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000018436861696e4c696e6b20546f6b656e2028676f65726c69290000000000000000","id":1}
{"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000012","id":1}
```
Or, if you prefer, use [`foundry-zksync`](https://github.com/matter-labs/foundry-zksync). Make sure to install and configure `foundry-zksync` before proceeding (for installation instructions, please see this [link](https://github.com/matter-labs/foundry-zksync/tree/main#foundry-with-zksync-era-v01)):
```bash
zkcast call 0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78 "name()(string)" --rpc-url http://localhost:8011
zkcast call 0xe1134444211593Cfda9fc9eCc7B43208615556E2 "name()(string)" --rpc-url http://localhost:8011
```
Here's an example of what you should expect to see:

```bash
ChainLink Token (goerli)
Uniswap
```

Retrieve the balance of a particular contract:
Expand Down
8 changes: 0 additions & 8 deletions docs/build/tooling/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ head:

Welcome to the Oracles page, a comprehensive hub dedicated to interacting with oracle services on zkSync Era. As the demand for decentralized applications continues, the need for reliable and efficient oracle services becomes paramount. Within these sections, you'll unearth specialized usage guides and tangible examples designed to facilitate seamless interactions with a variety of different oracle services.

### API3

[API3](https://api3.org/) empowers smart contracts with its data feeds, termed [dAPIs➚](https://docs.api3.org/guides/dapis/subscribing-self-funded-dapis/). These dAPIs, sourced from first-party oracles, constantly relay signed, updated on-chain data. These feeds are available for zkSync Era. Check out the usage guide below to get started today.

### DIA

[DIA](https://docs.diadata.org/products/token-price-feeds) token price feeds provide smart contract real-time price information of 3,000+ cryptocurrencies, transparently sourced from 80+ trusted, high-volume DEXs and CEXs. Check out the usage guide below to get started today!
Expand All @@ -29,10 +25,6 @@ Welcome to the Oracles page, a comprehensive hub dedicated to interacting with o

### Usage guides

- [api3](../tutorials/tooling-guides/api3.md)

- [dia](../tutorials/tooling-guides/dia.md)

- [redstone](../tutorials/tooling-guides/redstone.md)

### Contribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ WALLET_PRIVATE_KEY=YourPrivateKeyHere...
Your private key will be used for paying the costs of deploying the smart contract.

::: warning
A heads up! Make sure your account has zkSync Era Testnet Goerli or Sepolia ETH to successfully deploy the contracts.
A heads up! Make sure your account has zkSync Era Sepolia Testnet or Sepolia ETH to successfully deploy the contracts.
:::

2. Navigate to `/contracts` directory and open up the `ERC721.sol` contract. We will implement the missing logic for the `mint` function.
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/how-to/deposit-erc-20-to-l2.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use the **`zks_getBridgeContracts`** endpoint or **`getDefaultBridgeAddresses`**

- **Node.js**: Ensure you have Node.js installed. If not, download it from [here](https://nodejs.org/).
- **Private Key**: Have access to a private key for the account you'll be using.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Goerli and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Sepolia and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.

### Step 1: Understand L1 - L2 Deposits

Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/how-to/deposit-eth-to-l2.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use the **`zks_getBridgeContracts`** endpoint or **`getDefaultBridgeAddresses`**

- **Node.js**: Ensure you have Node.js installed. If not, download it from [here](https://nodejs.org/).
- **Private Key**: Have access to a private key for the account you'll be using.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Goerli and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Sepolia and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.

### Step 1: Understand L1 - L2 Deposits

Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/how-to/withdraw-erc-20-to-l1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use the **`zks_getBridgeContracts`** endpoint or **`getDefaultBridgeAddresses`**

- **Node.js**: Ensure Node.js is installed. If not, download it from [here](https://nodejs.org/).
- **Private Key**: Have access to a private key for the account you'll be using.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Goerli and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Sepolia and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.

### Step 1: Understanding L2 to L1 Withdrawals

Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/how-to/withdraw-eth-to-l1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use the **`zks_getBridgeContracts`** endpoint or **`getDefaultBridgeAddresses`**

- **Node.js**: Ensure Node.js is installed. If not, download it from [here](https://nodejs.org/).
- **Private Key**: Have access to a private key for the account you'll be using.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Goerli and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.
- **L1 RPC Endpoint**: A URL to an Ethereum node to interact with. You can find RPC endpoints for Sepolia and Ethereum mainnet on [Chainlist](https://chainlist.org/) or use a node provider like Infura.

### Step 1: Understanding L2 to L1 Withdrawals

Expand Down
Loading

0 comments on commit 9eee311

Please sign in to comment.