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

feat(node-api): wire to backend #1756

Merged
merged 39 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5d17728
yep
archbear Jul 16, 2024
fcc25a0
pruner and cli
archbear Jul 17, 2024
4468ff7
Merge branch 'main' into block-store
archbear Jul 17, 2024
e484c0d
Merge remote-tracking branch 'origin/main' into block-store
archbear Jul 17, 2024
c41039a
msg to warn noop block service
archbear Jul 17, 2024
814c7a3
wire to storage backend
archbear Jul 17, 2024
7477ce0
compiles and wired but chain broken for some reason
archbear Jul 18, 2024
5c007c2
Merge branch 'main' into block-store
archbear Jul 18, 2024
0655d87
Merge branch 'main' into block-store
nidhi-singh02 Jul 18, 2024
d30b61c
service name and fix prune function
archbear Jul 18, 2024
2fe7be2
Merge branch 'block-store' of github.com:berachain/beacon-kit into bl…
archbear Jul 18, 2024
3688fc1
Merge branch 'block-store' into api
archbear Jul 18, 2024
ebea98a
routed
archbear Jul 18, 2024
ba7fb59
Merge remote-tracking branch 'origin/main' into api
archbear Jul 18, 2024
305eb7c
lint
archbear Jul 18, 2024
72856db
generate
archbear Jul 18, 2024
50ee156
gosec
archbear Jul 18, 2024
5d918aa
tidy
archbear Jul 18, 2024
fc30772
tidy-sync
archbear Jul 18, 2024
8f29e5a
Merge branch 'main' of github.com:berachain/beacon-kit into api
calbera Jul 18, 2024
8ee3e73
undo
calbera Jul 18, 2024
f49ebf5
Merge branch 'main' of github.com:berachain/beacon-kit into api
calbera Jul 18, 2024
ed3adee
Merge branch 'main' into api
calbera Jul 18, 2024
7bdd0ab
working changes
archbear Jul 22, 2024
63f0e1c
Merge branch 'main' into api
archbear Jul 22, 2024
9106132
small refactor
archbear Jul 23, 2024
0e0255d
Merge remote-tracking branch 'origin/main' into api
archbear Jul 23, 2024
9e71fa7
generate
archbear Jul 23, 2024
5982620
oops i did it again
archbear Jul 23, 2024
1b33acc
oh baby baby
archbear Jul 23, 2024
147eadc
clarifying comments
calbera Jul 23, 2024
f4e605e
nilawayyyy
calbera Jul 23, 2024
6badeb3
hide banner
archbear Jul 23, 2024
e09e3c0
Merge branch 'api' of github.com:berachain/beacon-kit into api
archbear Jul 23, 2024
e01cc4d
engines go mod
archbear Jul 24, 2024
43fb520
generate
archbear Jul 24, 2024
2821f18
Merge remote-tracking branch 'origin/main' into api
archbear Jul 24, 2024
59029c1
tidy
archbear Jul 24, 2024
7883910
merge did some funky stuff
archbear Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mod/beacon/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (

replace (
github.com/berachain/beacon-kit/mod/engine-primitives => ../engine-primitives
github.com/berachain/beacon-kit/mod/primitives => ../primitives
github.com/berachain/beacon-kit/mod/storage => ../storage
calbera marked this conversation as resolved.
Show resolved Hide resolved
)

require (
Expand Down
4 changes: 2 additions & 2 deletions mod/beacon/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ github.com/berachain/beacon-kit/mod/geth-primitives v0.0.0-20240630225951-a50753
github.com/berachain/beacon-kit/mod/geth-primitives v0.0.0-20240630225951-a5075323fa26/go.mod h1:UhtXsU+9A175Ntrsrc7h9ZplRQ3ih0F87vONgS1P6Uc=
github.com/berachain/beacon-kit/mod/log v0.0.0-20240610210054-bfdc14c4013c h1:7f9dLYGOCMoV7LxT6YRmVSWLTPbGTTcxDPLPLvHGrOk=
github.com/berachain/beacon-kit/mod/log v0.0.0-20240610210054-bfdc14c4013c/go.mod h1:nFybcw/ZhJ6Gu66dna301W2I7u61skm2HfHxQmdR68Q=
github.com/berachain/beacon-kit/mod/storage v0.0.0-20240718074353-1a991cfeed63 h1:Yf8EO9KRgqcco3uZhAytjCKOxNe1M0Vkx+THsaxbgmU=
github.com/berachain/beacon-kit/mod/storage v0.0.0-20240718074353-1a991cfeed63/go.mod h1:9u6bQ3fcAisv7vWrm7ZHKgGyp2Bha651SSp2Pg88LVM=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710021622-37e8e3e7e155 h1:vmQElnXj5uPg+eCWrpy55CZeaYCScFFV0X6M4RYW/GM=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710021622-37e8e3e7e155/go.mod h1:Jeco1800cfads+X8ma4hPeYx9Tizqob9PJefWPhEn+4=
github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE=
github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/btcsuite/btcd/btcec/v2 v2.3.3 h1:6+iXlDKE8RMtKsvK0gshlXIuPbyWM/h84Ensb7o3sC0=
Expand Down
1 change: 0 additions & 1 deletion mod/cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ replace (
// The following are required to build with the latest version of the cosmos-sdk main branch:
cosmossdk.io/api => cosmossdk.io/api v0.7.3-0.20240623110059-dec2d5583e39
cosmossdk.io/core/testing => cosmossdk.io/core/testing v0.0.0-20240623110059-dec2d5583e39
github.com/berachain/beacon-kit/mod/primitives => ../primitives
github.com/cosmos/cosmos-sdk => github.com/berachain/cosmos-sdk v0.46.0-beta2.0.20240624014538-75ba469b1881
)

Expand Down
2 changes: 2 additions & 0 deletions mod/cli/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ github.com/berachain/beacon-kit/mod/p2p v0.0.0-20240618214413-d5ec0e66b3dd h1:QH
github.com/berachain/beacon-kit/mod/p2p v0.0.0-20240618214413-d5ec0e66b3dd/go.mod h1:ft214cxJaqrRPOuAjpYwgA9AOElJnHrDZZEQ0jZPWwQ=
github.com/berachain/beacon-kit/mod/payload v0.0.0-20240705193247-d464364483df h1:fLL+7ZZcbVOmE3XE0o+ZGS8zyPLjki7LrZAsXpcG4Sc=
github.com/berachain/beacon-kit/mod/payload v0.0.0-20240705193247-d464364483df/go.mod h1:wbSa9W1CDDzR9AptQfYf/16bWqktaIQIZdJsuKWeqC8=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710022448-e56f337d051f h1:EYhinHdIWJ8qHkATYHZ6s7DyemXhA8NovnWPqk3kU8Y=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710022448-e56f337d051f/go.mod h1:Jeco1800cfads+X8ma4hPeYx9Tizqob9PJefWPhEn+4=
github.com/berachain/beacon-kit/mod/runtime v0.0.0-20240710022902-57d64ab384c7 h1:tp0Uz98lIQJ9ZnTsxyOxtP+NjbfQM5GRyNH2DlEZEJQ=
github.com/berachain/beacon-kit/mod/runtime v0.0.0-20240710022902-57d64ab384c7/go.mod h1:qeqdziAxd63Zh1rnUXwDA5m7vNOsx4Rr2d6CJv7ADRw=
github.com/berachain/beacon-kit/mod/state-transition v0.0.0-20240710023256-e9246f6a35e1 h1:7GTVZXBsV4BExOT3mC+64OSaRlkqDQFMDnOXac19vvQ=
Expand Down
15 changes: 15 additions & 0 deletions mod/cli/pkg/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ const (
"pruner-enabled"
BlockStoreServiceAvailabilityWindow = blockStoreServiceRoot +
"availability-window"

// Node API Config.
nodeAPIRoot = beaconKitRoot + "node-api."
NodeAPIEnabled = nodeAPIRoot + "enabled"
NodeAPIAddress = nodeAPIRoot + "address"
)

// AddBeaconKitFlags implements servertypes.ModuleInitFlags interface.
Expand Down Expand Up @@ -142,4 +147,14 @@ func AddBeaconKitFlags(startCmd *cobra.Command) {
defaultCfg.BlockStoreService.AvailabilityWindow,
"block service availability window",
)
startCmd.Flags().Bool(
NodeAPIEnabled,
defaultCfg.NodeAPI.Enabled,
"node api enabled",
)
startCmd.Flags().String(
NodeAPIAddress,
defaultCfg.NodeAPI.Address,
"node api address",
)
}
4 changes: 4 additions & 0 deletions mod/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/berachain/beacon-kit/mod/errors"
engineclient "github.com/berachain/beacon-kit/mod/execution/pkg/client"
log "github.com/berachain/beacon-kit/mod/log/pkg/phuslu"
"github.com/berachain/beacon-kit/mod/node-api/server"
"github.com/berachain/beacon-kit/mod/payload/pkg/builder"
"github.com/mitchellh/mapstructure"
"github.com/spf13/viper"
Expand All @@ -48,6 +49,7 @@ func DefaultConfig() *Config {
PayloadBuilder: builder.DefaultConfig(),
Validator: validator.DefaultConfig(),
BlockStoreService: blockstore.DefaultConfig(),
NodeAPI: server.DefaultConfig(),
}
}

Expand All @@ -65,6 +67,8 @@ type Config struct {
Validator validator.Config `mapstructure:"validator"`
// BlockStoreService is the configuration for the block store service.
BlockStoreService blockstore.Config `mapstructure:"block-store-service"`
// NodeAPI is the configuration for the node API.
NodeAPI server.Config `mapstructure:"node-api"`
}

// GetEngine returns the execution client configuration.
Expand Down
17 changes: 17 additions & 0 deletions mod/config/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module github.com/berachain/beacon-kit/mod/config

go 1.22.5

replace (
github.com/berachain/beacon-kit/mod/beacon => ../beacon
github.com/berachain/beacon-kit/mod/storage => ../storage
)
calbera marked this conversation as resolved.
Show resolved Hide resolved

require (
github.com/berachain/beacon-kit/mod/beacon v0.0.0-20240718074353-1a991cfeed63
github.com/berachain/beacon-kit/mod/chain-spec v0.0.0-20240705193247-d464364483df
Expand All @@ -10,6 +15,7 @@ require (
github.com/berachain/beacon-kit/mod/execution v0.0.0-20240624003607-df94860f8eeb
github.com/berachain/beacon-kit/mod/geth-primitives v0.0.0-20240705193247-d464364483df
github.com/berachain/beacon-kit/mod/log v0.0.0-20240624033454-8f3451361f44
github.com/berachain/beacon-kit/mod/node-api v0.0.0-20240717210058-a144e074f6b2
github.com/berachain/beacon-kit/mod/payload v0.0.0-20240624003607-df94860f8eeb
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710021622-37e8e3e7e155
github.com/cometbft/cometbft v1.0.0-rc1.0.20240711183925-948692fddcbe
Expand Down Expand Up @@ -53,10 +59,14 @@ require (
github.com/ethereum/go-verkle v0.1.1-0.20240306133620-7d920df305f0 // indirect
github.com/ferranbt/fastssz v0.1.4-0.20240629094022-eac385e6ee79 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/getsentry/sentry-go v0.28.1 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/gofrs/flock v0.12.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
Expand All @@ -72,7 +82,12 @@ require (
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/labstack/echo/v4 v4.12.0 // indirect
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config coupled to web framework

github.com/labstack/gommon v0.4.2 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/pointerstructure v1.2.1 // indirect
Expand Down Expand Up @@ -106,6 +121,8 @@ require (
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.8.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
Expand Down
30 changes: 26 additions & 4 deletions mod/config/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/berachain/beacon-kit/mod/async v0.0.0-20240624003607-df94860f8eeb h1:4N/wng6MC9Kz5O7diKcJI/k7gnP0o/5hPu+cYZIJpCc=
github.com/berachain/beacon-kit/mod/async v0.0.0-20240624003607-df94860f8eeb/go.mod h1:ycwqumRG49gb8qg87cc6kVgPeiUDaFMajjLko54Ey+I=
github.com/berachain/beacon-kit/mod/beacon v0.0.0-20240718074353-1a991cfeed63 h1:OYw3r0MV8Wt7NipYbQ0bi5yed9ffudYsevAvbhp275Y=
github.com/berachain/beacon-kit/mod/beacon v0.0.0-20240718074353-1a991cfeed63/go.mod h1:dJ4i7uEGjc6KwMrSDexeXdkFqzEOXXOelWLq8KjcNqo=
github.com/berachain/beacon-kit/mod/chain-spec v0.0.0-20240705193247-d464364483df h1:mnD1LKqDQ0n+OFdDqOuvKaEiUKRJzsO4V0wyyn/gJYg=
github.com/berachain/beacon-kit/mod/chain-spec v0.0.0-20240705193247-d464364483df/go.mod h1:bTFB4Rdvm7D/WdwPYkqQ+8T0XOMBv0pzXfp1E46BFX8=
github.com/berachain/beacon-kit/mod/consensus-types v0.0.0-20240710022615-726645827bad h1:HkSRpHLIIcjeur/reWPP7g/BWxLD1+hg47f+r+lHOr0=
Expand All @@ -34,12 +32,12 @@ github.com/berachain/beacon-kit/mod/geth-primitives v0.0.0-20240705193247-d46436
github.com/berachain/beacon-kit/mod/geth-primitives v0.0.0-20240705193247-d464364483df/go.mod h1:NItiDark82XGGPNYs3J0CdkXEtkGatE/QP3nu3jpeNs=
github.com/berachain/beacon-kit/mod/log v0.0.0-20240624033454-8f3451361f44 h1:R4+mGOZDYA93rD4AUbYq4fSWmRsJhnlB/ww1ap09WOY=
github.com/berachain/beacon-kit/mod/log v0.0.0-20240624033454-8f3451361f44/go.mod h1:xP5KcG56VfbPgz2ZRHerxm90MkjXMSDaGZNOOO5yfH4=
github.com/berachain/beacon-kit/mod/node-api v0.0.0-20240717210058-a144e074f6b2 h1:7qAZ6zfHSjbXYzLBtSblGM6xqoKFEpVxVSx+DODwrVg=
github.com/berachain/beacon-kit/mod/node-api v0.0.0-20240717210058-a144e074f6b2/go.mod h1:ly/ZhLppBtmd2qi6Um1WZ+zluhWAWNpYyzMtypJ9sDQ=
github.com/berachain/beacon-kit/mod/payload v0.0.0-20240624003607-df94860f8eeb h1:/aKXt8E60/AMOod4MMhbf+8POaIE1vW43ufnTdAZ3uo=
github.com/berachain/beacon-kit/mod/payload v0.0.0-20240624003607-df94860f8eeb/go.mod h1:IFOWyTyeFcwsTkJc0Ud9uMLxQ8r4SyZNFiXpDQaJAgc=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710021622-37e8e3e7e155 h1:vmQElnXj5uPg+eCWrpy55CZeaYCScFFV0X6M4RYW/GM=
github.com/berachain/beacon-kit/mod/primitives v0.0.0-20240710021622-37e8e3e7e155/go.mod h1:Jeco1800cfads+X8ma4hPeYx9Tizqob9PJefWPhEn+4=
github.com/berachain/beacon-kit/mod/storage v0.0.0-20240718074353-1a991cfeed63 h1:Yf8EO9KRgqcco3uZhAytjCKOxNe1M0Vkx+THsaxbgmU=
github.com/berachain/beacon-kit/mod/storage v0.0.0-20240718074353-1a991cfeed63/go.mod h1:9u6bQ3fcAisv7vWrm7ZHKgGyp2Bha651SSp2Pg88LVM=
github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE=
github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/btcsuite/btcd/btcec/v2 v2.3.3 h1:6+iXlDKE8RMtKsvK0gshlXIuPbyWM/h84Ensb7o3sC0=
Expand Down Expand Up @@ -116,6 +114,8 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 h1:f6D9Hr8xV8uYKlyuj8XIruxlh9WjVjdh1gIicAS7ays=
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k=
Expand All @@ -129,11 +129,20 @@ github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KE
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=
github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.20.0 h1:K9ISHbSaI0lyB2eWMPJo+kOS/FBExVwjEviJTixqxL8=
github.com/go-playground/validator/v10 v10.20.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
github.com/gofrs/flock v0.12.0 h1:xHW8t8GPAiGtqz7KxiSqfOEXwpOaqhpYZrTE2MQBgXY=
github.com/gofrs/flock v0.12.0/go.mod h1:FirDy1Ing0mI2+kB6wk+vyyAH+e6xiE+EYA0jnzV9jc=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
Expand Down Expand Up @@ -196,14 +205,21 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/labstack/echo/v4 v4.12.0 h1:IKpw49IMryVB2p1a4dzwlhP1O2Tf2E0Ir/450lH+kI0=
github.com/labstack/echo/v4 v4.12.0/go.mod h1:UP9Cr2DJXbOK3Kr9ONYzNowSh7HP0aG0ShAyycHSJvM=
github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0=
github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU=
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
github.com/linxGnu/grocksdb v1.9.2 h1:O3mzvO0wuzQ9mtlHbDrShixyVjVbmuqTjFrzlf43wZ8=
github.com/linxGnu/grocksdb v1.9.2/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
Expand Down Expand Up @@ -325,6 +341,10 @@ github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2n
github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U=
github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI=
github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo=
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down Expand Up @@ -374,8 +394,10 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
Expand Down
7 changes: 7 additions & 0 deletions mod/config/pkg/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,11 @@ pruner-enabled = "{{ .BeaconKit.BlockStoreService.PrunerEnabled }}"

# AvailabilityWindow is the number of slots to keep in the store.
availability-window = "{{ .BeaconKit.BlockStoreService.AvailabilityWindow }}"

[beacon-kit.node-api]
# Enabled determines if the node API is enabled.
enabled = "{{ .BeaconKit.NodeAPI.Enabled }}"

# Address is the address to bind the node API to.
address = "{{ .BeaconKit.NodeAPI.Address }}"
`
Loading
Loading