Skip to content

Commit

Permalink
Release 20-01-25 (#275)
Browse files Browse the repository at this point in the history
### Includes

- #265
- #269 
- #273 
- #274 
- #270
  • Loading branch information
Tschakki authored Jan 21, 2025
2 parents 270b51a + 720cb5c commit 4f1b45e
Show file tree
Hide file tree
Showing 35 changed files with 470 additions and 191 deletions.
4 changes: 2 additions & 2 deletions docs/about-lisk/fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ The [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) parameters used by the L

| Parameter | Lisk Mainnet value | Ethereum value (for reference) |
| ------------------------------------- | ---------------: | -----------------------------: |
| Block gas limit | 30,000,000 gas | 30,000,000 gas |
| Block gas target | 1,500,000 gas | 15,000,000 gas |
| Block gas limit | 60,000,000 gas | 30,000,000 gas |
| Block gas target | 3,000,000 gas | 15,000,000 gas |
| EIP-1559 elasticity multiplier | 20 | 2 |
| EIP-1559 denominator | 1,000 | 8 |
| Maximum base fee increase (per block) | 1.9% | 12.5% |
Expand Down
24 changes: 12 additions & 12 deletions docs/about-lisk/network-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ The Lisk L2 is available on the following network:

### Lisk Sepolia Testnet

| Name | Value |
| :-------------- | :-------------------------------------------------------------------------- |
| **Network Name** | Lisk Sepolia Testnet |
| **HTTP RPC Endpoint** | [https://rpc.sepolia-api.lisk.com](https://rpc.sepolia-api.lisk.com) |
| **WS RPC Endpoint** | [wss://ws.sepolia-api.lisk.com](wss://ws.sepolia-api.lisk.com) |
| **Chain ID** | 4202 |
| **Currency Symbol** | ETH |
| **Block Explorer** | https://sepolia-blockscout.lisk.com |
| **Block Explorer API** | https://sepolia-blockscout.lisk.com/api |
| **Lisk Testnet Bridge** | https://sepolia-bridge.lisk.com |
| **Lisk Testnet Faucet** (Grants LSK) | https://sepolia-faucet.lisk.com/ |
| **Superchain Testnet Faucet** (Grants ETH ) | https://app.optimism.io/faucet |
| Name | Value |
| :-------------- | :-------------------------------------------------------------------- |
| **Network Name** | Lisk Sepolia Testnet |
| **HTTP RPC Endpoint** | [https://rpc.sepolia-api.lisk.com](https://rpc.sepolia-api.lisk.com) |
| **WS RPC Endpoint** | [wss://ws.sepolia-api.lisk.com](wss://ws.sepolia-api.lisk.com) |
| **Chain ID** | 4202 |
| **Currency Symbol** | ETH |
| **Block Explorer** | https://sepolia-blockscout.lisk.com |
| **Block Explorer API** | https://sepolia-blockscout.lisk.com/api |
| **Lisk Testnet Bridge** | https://sepolia-bridge.lisk.com |
| **Lisk Testnet Faucet** (Grants LSK) | https://sepolia-faucet.lisk.com/ |
| **Superchain Testnet Faucet** (Grants ETH ) | https://console.optimism.io/faucet |
2 changes: 1 addition & 1 deletion docs/building-on-lisk/add-token-to-lisk/custom-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You will need to get some ETH on both, Sepolia and Lisk Sepolia networks.

:::info
You can use [ETH Sepolia Faucet](https://sepoliafaucet.com/) to get ETH on Sepolia.
You can use the [Superchain Faucet](https://app.optimism.io/faucet?utm_source=docs) to get ETH on Lisk Sepolia.
You can use the [Superchain Faucet](https://console.optimism.io/faucet) to get ETH on Lisk Sepolia.
:::

### Add Lisk Sepolia to Your Wallet
Expand Down
10 changes: 9 additions & 1 deletion docs/building-on-lisk/add-token-to-lisk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ To add your token to the list, perform the following steps.

### Step 1: Deploy your token on Lisk
Select your preferred bridging framework and use it to deploy an ERC-20 for your token on Lisk.
We recommend you use the framework provided by Lisk's [standard bridge](#the-standard-bridge) contracts and, furthermore, deploy your token using the [OptimismMintableERC20Factory](https://docs.lisk.com/contracts#lisk-network-l2).
We recommend you use the framework provided by Lisk's [standard bridge](#the-standard-bridge) contracts and, furthermore, deploy your token using the [OptimismMintableERC20Factory](../contracts.mdx#lisk-network-l2).
Deploying your token on Lisk in this manner provides us with guarantees that will smooth the approval process.
If you choose a different bridging framework, its interface must be compatible with that of the standard bridge.
Otherwise, it may be difficult for us to support them.
Expand All @@ -84,6 +84,7 @@ For step-by-step instructions on how to deploy ERC-20 tokens on Lisk, check the

### Step 2: Submit details of your token
Follow the instructions in the [GitHub repository](https://github.com/ethereum-optimism/ethereum-optimism.github.io) and submit a PR containing the required details for your token.
Especially, follow the Lisk-specific instructions detailed in the section [Specifying chains](https://github.com/ethereum-optimism/ethereum-optimism.github.io?tab=readme-ov-file#specifying-chains).

**Important:** You must specify in your token's `data.json` file a section for `lisk-sepolia` and/or `lisk`.

Expand All @@ -93,3 +94,10 @@ For example, [this PR](https://github.com/ethereum-optimism/ethereum-optimism.gi

### Step 3: Await final approval
Reviews are regularly conducted by the Lisk team and you should receive a reply within 24-72 hours (depending on if the PR is opened on a weekday, weekend or holiday).

## Step 4 : Add token to Gelato Bridge
To add your token to the [Gelato Bridge](https://bridge.lisk.com/), reach out to the Lisk team on [Lisk Discord](https://lisk.chat) with the details of the token:

- Go to the `#lisk-dev` channel.
- Tag a moderator, ask them to add your token to the Gelato Bridge, and share the link to your PR from [step 2: token details](#step-2-submit-details-of-your-token).
- The Lisk team will then coordinate with Gelato to get the token added to the Gelato Bridge.
2 changes: 1 addition & 1 deletion docs/building-on-lisk/add-token-to-lisk/standard-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ You will need to get some ETH on both of these testnets.

:::info
You can use [ETH Sepolia Faucet](https://sepoliafaucet.com/) to get ETH on Sepolia.
You can use the [Superchain Faucet](https://app.optimism.io/faucet?utm_source=docs) to get ETH on Lisk Sepolia.
You can use the [Superchain Faucet](https://console.optimism.io/faucet) to get ETH on Lisk Sepolia.
:::

### Get an L1 ERC-20 Token Address
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ... with Foundry
slug: /building-on-lisk/deploying-smart-contract/with-Foundry
description: "A guide on deploying a smart contract on the Lisk test network using Foundry. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
description: "A guide on deploying a smart contract on the Lisk network using Foundry. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
keywords: [
"Foundry",
"smart contract",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ... with Hardhat
slug: /building-on-lisk/deploying-smart-contract/with-Hardhat
description: "A guide on deploying a smart contract on the Lisk test network using Hardhat. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
description: "A guide on deploying a smart contract on the Lisk network using Hardhat. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
keywords: [
"Hardhat",
"smart contract",
Expand All @@ -23,6 +23,9 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Deploying a smart contract with Hardhat

On this page, you will learn how to create, deploy and verify a smart contract with HardHat to the **Lisk Sepolia** testnet.

## Prerequisites

### Node v18+
Expand All @@ -47,7 +50,7 @@ Then, use the aforementioned Lisk Bridge to send tokens from the **Ethereum Sepo

:::note
You can deploy a contract on Lisk Mainnet by adopting the same process.
For deploying to mainnet, ensure that your wallet has enough ETH.
For deploying to Mainnet, ensure that your wallet has enough ETH.

The subsequent text contains commands for both Lisk and Lisk Sepolia for your ease.
For more information, see the [available Lisk networks](/network-info) and [how to connect a wallet with them](/user/connecting-to-a-wallet).
Expand Down Expand Up @@ -116,7 +119,7 @@ Substitute `<YOUR_PRIVATE_KEY>` with the private key for your wallet.

`WALLET_KEY` is the private key of the wallet to use when deploying a contract.
Follow the instructions of your wallet on how to get your private key.
E.g. for **MetaMask**, please follow [these instructions](https://support.metamask.io/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key).
E.g. for **MetaMask**, please follow [these instructions](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/).
**It is critical that you do NOT commit this to a public repo**

:::
Expand Down
55 changes: 55 additions & 0 deletions docs/building-on-lisk/deploying-smart-contract/with-Remix.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: ... with Remix
slug: /building-on-lisk/deploying-smart-contract/with-Remix
description: "A guide on deploying a smart contract on the Lisk network using Remix. Includes instructions for setting up the environment, compiling, deploying and verifying the smart contract."
keywords: [
"Remix",
"smart contract",
"ERC-721", "Lisk",
"Lisk test network",
"Lisk testnet",
"Node.js",
"Solidity",
"smart contract deployment",
"deploy a smart contract",
"deploying smart contracts",
"build on lisk",
"write smart contract",
"smart contract development"
]
---
import PartialExample from '../../partials/_remix-deploy-example.mdx';

# Deploying a smart contract with Remix

On this page, you will learn how to create, deploy and verify a smart contract with the Remix IDE to the **Lisk Sepolia** testnet.

Remix Online IDE is a powerful toolset for developing, deploying, debugging, and testing Ethereum and EVM-compatible smart contracts.
It requires no setup and can be accessed directly through the browser under https://remix.ethereum.org/.

## Prerequisites

### Wallet funds

**Deploying contracts** to the blockchain requires a **gas fee**.
Therefore, you will need to fund your wallet with ETH to cover those gas fees.

For this guide, you will be deploying a contract to the Lisk Sepolia Testnet.

You can deposit the required tokens by using the [Lisk Bridge](https://sepolia-bridge.lisk.com/bridge/lisk-sepolia-testnet).

In case your wallet doesn't hold enough `SepoliaETH`, use one of the available faucets for the **Ethereum Sepolia** Testnet like [https://sepoliafaucet.com](https://sepoliafaucet.com/) to receive free Testnet ETH.
Then, use the aforementioned Lisk Bridge to send tokens from the **Ethereum Sepolia Testnet** to the **Lisk Sepolia Testnet**.

:::note
You can deploy a contract on Lisk Mainnet by adopting the same process.
Before deploying to Mainnet, ensure that your wallet has enough ETH.
:::

<PartialExample />

## Interacting with the Smart Contract

After [the contract is verified](#6-verify-the-contract), you can use the `Read Contract` and `Write Contract` tabs to interact with the deployed contract via Blockscout: https://sepolia-blockscout.lisk.com/address/0x73e7a94dD5760d862F6FD9f8ea5D4245Bb143446?tab=contract.
Don't forget to update the contract address in the Blockscout URL.
You'll also need to connect your wallet first, by clicking the `Connect Wallet` button.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ... with thirdweb
slug: /building-on-lisk/deploying-smart-contract/with-thirdweb
description: "A guide on deploying a smart contract on the Lisk test network using thirdweb. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
description: "A guide on deploying a smart contract on the Lisk network using thirdweb. Includes instructions for setting up the environment, compiling, and deploying the smart contract."
keywords: [
"thirdweb",
"smart contract",
Expand All @@ -24,6 +24,9 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Deploying a smart contract with thirdweb

On this page, you will learn how to create, deploy and verify a smart contract with thirdweb to the **Lisk Sepolia** testnet.

[thirdweb](https://thirdweb.com/) is an end-to-end framework for smart contract development and deployment.

It enables developers to deploy, standard contracts such as ERC-20, ERC-721, or ERC-1155, etc. without writing a line of code.
Expand Down
95 changes: 0 additions & 95 deletions docs/building-on-lisk/token-development/deploy-erc-20.md

This file was deleted.

26 changes: 26 additions & 0 deletions docs/building-on-lisk/token-development/deploy-erc-20.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 'Deploying a new ERC-20 token on Lisk'
description: 'A guide on how to deploy a new ERC-20 token on Lisk.'
keywords:
[
'Lisk',
'Token development',
'Deploy token',
'ERC',
'EIP',
'ERC-20',
'Fungible token',
]
---
import PartialExample from '../../partials/_remix-deploy-example.mdx';

# How to deploy a new ERC-20 token on Lisk

This guide explains how to deploy a new ERC-20 token to Lisk.
In case you want to bridge an existing token from Ethereum, please refer to the guide [Bridging an L1 token to Lisk](../add-token-to-lisk).

:::note
We will use Remix IDE for smart contract development in this guide, but feel free to choose a [smart contract development framework](/category/building-on-lisk/deploying-smart-contract) of your choice to implement your token contract.
:::

<PartialExample />
2 changes: 1 addition & 1 deletion docs/building-on-lisk/token-development/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Any token is exactly equal to any other token; no tokens have special rights or
This makes [ERC-20](https://eips.ethereum.org/EIPS/eip-20) tokens useful for things like a medium of exchange currency, voting rights, staking, and more.

### Guides
[How to deploy a new ERC-20 token on Lisk](deploy-erc-20.md)
[How to deploy a new ERC-20 token on Lisk](deploy-erc-20.mdx)

### Further reading
- [Understand the ERC-20 token smart contract](https://ethereum.org/en/developers/tutorials/understand-the-erc-20-token-smart-contract/)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs-user/intro-user.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ In this section, we will walk you through various ways of interacting with Lisk'
# Highlights

- Connect with your preferred wallet by following the [Connecting to a Wallet](/user/connecting-to-a-wallet) guide.
- Get ready to kickstart your testnet accounts with the amazing [Superchain Faucet](https://app.optimism.io/faucet?utm_source=docs) – the ultimate integrated solution for seeding testnet accounts!
- Get ready to kickstart your testnet accounts with the amazing [Superchain Faucet](https://console.optimism.io/faucet) – the ultimate integrated solution for seeding testnet accounts!
- Discover [Lisk's governance model](/governance/overview) and play a part in shaping the future of Lisk.
{/* - Got questions? You can easily find the answers in our FAQ section! */}
Loading

0 comments on commit 4f1b45e

Please sign in to comment.