Skip to content

Commit

Permalink
template for geth and beacond
Browse files Browse the repository at this point in the history
Signed-off-by: nidhi-singh02 <[email protected]>
  • Loading branch information
nidhi-singh02 committed Aug 19, 2024
1 parent 1e19813 commit 468000b
Show file tree
Hide file tree
Showing 22 changed files with 6,915 additions and 8 deletions.
16 changes: 14 additions & 2 deletions testing/sync-network/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Kurtosis ###
###############################################################################
start-full-node:
kurtosis run --enclave full-node-enclave ./testing/sync-network
kurtosis run ./testing/sync-network --enclave full-node-enclave --args-file ./testing/sync-network/config.yaml

# Stops the running Kurtosis enclave
stop-full-node:
Expand All @@ -18,4 +18,16 @@ reset-full-node:
rm-full-node:
kurtosis enclave rm full-node-enclave --force

.PHONY: start-full-node stop-full-node reset-full-node rm-full-node
# Lints Starlark (.star) files in the Kurtosis directory using buildifier
star-lint-full-node:
@$(MAKE) buildifier-install
@echo "--> Running buildifier to format starlark files..."
find ./testing/sync-network -name "*.star" -exec buildifier -mode=check {} +

# Automatically fixes formatting issues in Starlark (.star) files using buildifier
star-fix-full-node:
@$(MAKE) buildifier-install
@echo "--> Running buildifier to format starlark files..."
find ./testing/sync-network -name "*.star" -exec buildifier --mode=fix {} +

.PHONY: start-full-node stop-full-node reset-full-node rm-full-node star-lint-full-node star-fix-full-node
34 changes: 34 additions & 0 deletions testing/sync-network/builtins.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""
Helper library for type comparisons
Typical usage examples:
type(None) == builtins.types.none # True
hello = "hello"
type(hello) == builtins.types.bool # False
"""

types = struct(
none = "NoneType", # the type of None
bool = "bool", # True or False
int = "int", # a signed integer of arbitrary magnitude
float = "float", # an IEEE 754 double-precision floating-point number
string = "string", # a text string, with Unicode encoded as UTF-8 or UTF-16
bytes = "bytes", # a byte string
list = "list", # a fixed-length sequence of values
tuple = "tuple", # a fixed-length sequence of values, unmodifiable
dict = "dict", # a mapping from values to values
function = "function", # a function
serviceConfig = "ServiceConfig", # a service configuration object
portSpec = "PortSpec", # a port spec object
directory = "Directory", # a directory object
execRecipe = "ExecRecipe", # an exec recipe object
getHttpRequestRecipe = "GetHttpRequestRecipe", # a get http request recipe object
imageBuildSpec = "ImageBuildSpec", # an image build spec object
module = "module", # a module
# TODO(types): add remaining kurtosis types
)

# Types that can be used as keys in a dictionary due to being hashable
# Note: tuples can also be hashable but only if they contain hashable elements
hashable = [types.none, types.bool, types.int, types.float, types.string, types.bytes]
37 changes: 36 additions & 1 deletion testing/sync-network/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,39 @@
# TITLE.

network:
chain_id: 80084
genesis_path: "./network/eth-genesis.json"
nodes:
- el_type: geth
kzg_impl: crate-crypto/go-kzg-4844
node_settings:
consensus_settings:
specs:
min_cpu: 0
max_cpu: 2000
min_memory: 0
max_memory: 2048
images:
beaconkit: beacond:kurtosis-local
config:
timeout_propose: 3s
timeout_prevote: 1s
timeout_precommit: 1s
timeout_commit: 2s
max_num_inbound_peers: 40
max_num_outbound_peers: 10
app:
payload_timeout: 2.5s
enable_optimistic_payload_builds: true
execution_settings:
specs:
min_cpu: 0
max_cpu: 2000
min_memory: 0
max_memory: 2048
images:
besu: hyperledger/besu:24.5.4
erigon: thorax/erigon:v2.60.1
ethereumjs: ethpandaops/ethereumjs:stable
geth: ethereum/client-go:latest
nethermind: nethermind/nethermind:latest
reth: ghcr.io/paradigmxyz/reth:latest
Loading

0 comments on commit 468000b

Please sign in to comment.