feat(katana): node config builder
kariy opened this issue · 1 comments
Problem
we have a main config struct that encapsulates bunch of other smaller configs. this config struct is then passed to the katana_node::build()
method.
dojo/crates/katana/node/src/config/mod.rs
Lines 16 to 28 in 884a726
dojo/crates/katana/node/src/lib.rs
Lines 157 to 163 in 884a726
because there are many configurations, it can be quite a hassle to specify each one of them. especially when you only want to specify some of them and want to use the default values for the rest. for example, in the dojo-test-utils
:
dojo/crates/dojo/test-utils/src/sequencer.rs
Lines 114 to 122 in 884a726
it'd be nice to have a ConfigBuilder
where you can set individual values using the builder pattern. the logic for the katana_node::build()
can then be moved to ConfigBuilder::build()
method.
Hey! Would be down to work on this!