diff --git a/dev/geth-genesis-local.json b/dev/geth-genesis-local.json new file mode 100644 index 000000000..ae8aed165 --- /dev/null +++ b/dev/geth-genesis-local.json @@ -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" } + } +} diff --git a/dev/justfile b/dev/justfile new file mode 100644 index 000000000..d47e1834e --- /dev/null +++ b/dev/justfile @@ -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