User-friendly builder for launch your optimism node
It support 4 steps to operate OP Stack node
Name | Description | Command |
---|---|---|
init |
deploy bridge contracts and generate l2 configs. | make init |
run |
run optimism node using generated configs. | make run |
scan |
run blockchain explorer using blockscout. | make scan |
bridge |
transfer eth and tokens between L1 and L2. | make bridge |
- makefile, docker, docker-compose
- L1 RPC and Beacon endpoint (use PublicNode experimentally)
- faucet private key (for charging eth to proposer, batcher, admin)
- Clone this repository
git clone https://github.com/rabbitprincess/builderism.git
- Check and select chain configuration in
common.env
and/envs/{server.env}
- Run Command in sequence to
make init
,make run
,make scan
,make bridge
Q. I don`t have enough fee for faucet
- You can take some eth from faucet
- You can adjust faucet amount. If basefee is 3~4 gwei, Deploying cost is ~0.1 eth.
- Sometimes sepolia gas price can be too high. You can also use Holskey testnet.
Q. How long time does init take?
- Currently, it takes ~1 hour, so please be patient!
- Most of time is spent on contract deployment.
- If you see
[all process is done! check config files.]
message, init process is successfully done.
Q. Init failed with message 'Please try to change your RPC url to an archive node if the issue persists.'
- It seems to be problem of foundry.
- you can use other rpc provider like
infura
,quicknode
instead ofpublicNode
.
Q. I want to change configuration not in ENV files.
- you can modify all
entrypoint
as needed. - all script is mounted in docker volume, so there is no need to rebuild docker images.
Q. How can run replica node?
- If run Superchain Network, just use env file in /envs.
- If run your custom node, you should set
rollup.json
andgenesis.json
inconfig
directory.
Q. When will additional features be supported?
ALT DA
is enabled. SetALT_DA_SERVER
to your alt-da server url.Custom Gas Token
is also enabled. Change branch tofeature/custom-gas-token
and setGAS_TOKEN_ADDRESS
to your token address.L3 Chain
is not suported yet.
CONFIG_DIR
: Path to store config files (default../config
)EXECUTION_DATA_DIR
: Path to store execution layer data (default../data-execution
)SCAN_DATA_DIR
: Path to store explorer data (default../data-scan
)
L1_CHAIN_ID
: L1 chain id (default11155111
)L1_RPC_KIND
: The type of RPC provider (defaultstandard
)L1_RPC_URL
: L1 RPC endpoint (defaultpublicNode
)L1_BEACON_URL
: L1 Beacon endpoint (defaultpublicNode
)
L2_CHAIN_ID
: Your L2 chain idL2_CHAIN_NAME
: Your L2 chain nameL2_RPC_URL
: Your L2 RPC endpointL2_SCAN_URL
: L2 Explore endpointL2_BRIDGE_URL
: L2 Bridge endpointALT_DA_SERVER
: ALT DA server url; if empty, use eth DA
PRIORITY_GAS_PRICE
: Gas wei price using deploy contracts (default10000
)FAUCET_ADDRESS
: Charging addressFAUCET_PRIVATE_KEY
: Charging private key; Be careful about securityFAUCET_AMOUNT_ADMIN
: Faucet amount eth to admin (default0.5
)FAUCET_AMOUNT_BATCHER
: Faucet amount eth to batcher (default0.2
)FAUCET_AMOUNT_PROPOSER
: Faucet amount eth to proposer (default0.1
)GOVERNANCE_TOKEN_SYMBOL
: Governance token symbol
RUN_MODE
: Run mode ( sequencer or replica ) (defaultsequencer
)DATA_AVAILABILITY_TYPE
: Data availability type (defaultblobs
)MAX_CHANNEL_DURATION
: Batch time submitted to the L1 (default1500
)SEQUENCER_HTTP
: Sequencer endpointP2P_BOOTNODES
: Bootnode enr address