Skip to content

Commit

Permalink
Merge local-dev branch into main (#56)
Browse files Browse the repository at this point in the history
Moved the local genesis.json and justfile to `/dev` directory, this
requires just commands to be run with:
```shell
just -f dev/justfile <recipe>
```

This should be merged alongside updates to the docs in this PR:
astriaorg/docs#95

---------

Co-authored-by: Sam Bukowski <[email protected]>
Co-authored-by: Jesse Snyder <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2024
1 parent 681831d commit b0bacf6
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
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

0 comments on commit b0bacf6

Please sign in to comment.