Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge local-dev branch into main #56

Merged
merged 13 commits into from
Nov 22, 2024
38 changes: 38 additions & 0 deletions dev/geth-genesis-local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"config": {
"chainId": 1337,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"shanghaiTime": 0,
"terminalTotalDifficulty": 0,
"terminalTotalDifficultyPassed": true,
"ethash": {},
"astriaRollupName": "astria-test-chain-1",
"astriaOverrideGenesisExtraData": true,
"astriaSequencerInitialHeight": 2,
"astriaSequencerAddressPrefix": "astria",
"astriaCelestiaInitialHeight": 2,
"astriaCelestiaHeightVariance": 10,
"astriaBridgeAddresses": [],
"astriaBridgeSenderAddress": "0x0000000000000000000000000000000000000000",
"astriaFeeCollectors": {
"1": "0xaC21B97d35Bf75A7dAb16f35b111a50e78A72F30"
},
"astriaEIP1559Params": {
"1": { "minBaseFee": 0, "elasticityMultiplier": 2, "BaseFeeChangeDenominator": 8 }
}
},
"difficulty": "10000000",
"gasLimit": "8000000",
"alloc": {
"0xA2A7d9CA42EF412EEFbb3D0157d5f199Af7f2780": { "balance": "300000000000000000000" }
}
}
40 changes: 40 additions & 0 deletions dev/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
default:
@just --list

set dotenv-load
set fallback

# build a local geth binary
build:
cd .. && make geth

# initialize a local geth node
init:
../build/bin/geth --db.engine pebble \
--state.scheme=path \
init geth-genesis-local.json

# start a local geth node
run:
../build/bin/geth \
--http \
--http.addr=0.0.0.0 \
--http.port=8545 \
--http.corsdomain="*" \
--http.vhosts="*" \
--http.api=eth,net,web3,debug,txpool \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=8546 \
--ws.origins="*" \
--grpc \
--grpc.addr=0.0.0.0 \
--grpc.port=50051 \
--db.engine=pebble \
--state.scheme=path

# this is specifically for mac os
clean:
rm -rf ~/Library/Ethereum/

clean-restart: clean init run
Loading