You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/stack/interop/tutorials/custom-superchain-erc20.mdx
+34-39
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ import { Callout } from 'nextra/components'
8
8
import { Steps } from'nextra/components'
9
9
10
10
<Callout>
11
-
The SuperchainERC20 standard is ready for production use with active Mainnet deployments.
12
-
Please note that the OP Stack interoperability upgrade, required for crosschain messaging, is currently still in active development.
11
+
The SuperchainERC20 standard is ready for production use with active Mainnet deployments.
12
+
Please note that the OP Stack interoperability upgrade, required for crosschain messaging, is currently still in active development.
13
13
</Callout>
14
14
15
15
# Creating custom SuperchainERC20 tokens
16
16
17
17
## Overview
18
18
19
-
This guide explains how to modify the behavior of [`SuperchainERC20`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainERC20.sol) contracts to create custom tokens that can then be bridged quickly and safely using the [`SuperchainTokenBridge`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainTokenBridge.sol) contract (once interop is operational).
19
+
This guide explains how to modify the behavior of [`SuperchainERC20`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainERC20.sol) contracts to create custom tokens that can then be bridged quickly and safely using the [`SuperchainTokenBridge`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainTokenBridge.sol) contract (once interop is operational).
20
20
For more information on how it works, [see the explainer](/stack/interop/superchain-erc20).
21
21
22
22
To ensure fungibility across chains, `SuperchainERC20` assets *must* have the same contract address on all chains.
@@ -30,7 +30,7 @@ Here we will use the [SuperchainERC20 Starter Kit](/app-developers/starter-kit).
30
30
31
31
### What you'll learn
32
32
33
-
* How to deploy custom ERC-20 tokens on different chains at the same address so that they can be bridged with the [`SuperchainTokenBridge`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainTokenBridge.sol) contract.
33
+
* How to deploy custom ERC-20 tokens on different chains at the same address so that they can be bridged with the [`SuperchainTokenBridge`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainTokenBridge.sol) contract.
34
34
35
35
## Prerequisites
36
36
@@ -56,17 +56,16 @@ The tutorial uses these primary tools:
56
56
## Step by step explanation
57
57
58
58
<Steps>
59
-
60
59
### Prepare for deployment
61
60
62
-
1. Follow the setup steps in the [SuperchainERC20 Starter Kit](/app-developers/starter-kit#setup).
63
-
Don't start the development environment (step 5).
61
+
1.Follow the setup steps in the [SuperchainERC20 Starter Kit](/app-developers/starter-kit#setup).
62
+
Don't start the development environment (step 5).
64
63
65
-
1. Follow [the deployment preparations steps](./deploy-superchain-erc20#prepare-for-deployment) in the issuing new assets page.
66
-
Don't deploy the contracts yet.
64
+
2. Follow [the deployment preparations steps](./deploy-superchain-erc20#prepare-for-deployment) in the issuing new assets page.
65
+
Don't deploy the contracts yet.
67
66
68
-
**Note:** Make sure to specify a previously unused value for the salt, for example your address and a timestamp.
69
-
This is necessary because if the same constructor code is used with the same salt when using the deployment script, it gets the same address, which is a problem if you want a fresh deployment.
67
+
**Note:** Make sure to specify a previously unused value for the salt, for example your address and a timestamp.
68
+
This is necessary because if the same constructor code is used with the same salt when using the deployment script, it gets the same address, which is a problem if you want a fresh deployment.
70
69
71
70
### Create the custom contract
72
71
@@ -77,49 +76,46 @@ The tutorial uses these primary tools:
0 commit comments