Skip to content

Commit

Permalink
feat: katana config file (#2668)
Browse files Browse the repository at this point in the history
* refactor(katana): separate metrics address and port into 2 args (#2537)

* refactor(katana-cli): rename server args

* refactor(katana-cli): explicit development related args

* chore(katana-cli): rename var

* fix

* refactor cli

* move gas price to gas price oracle options

* update node bindings to new cli args

* update ci

* revert to free port

* fmt

* remove l1.provider

* update

* make fixed gpo sovereign

* remove broken link

* fix

* feat: add config file with manual merge for now

* fix: rename cors_domain to cors_origins

---------

Co-authored-by: Ammar Arif <[email protected]>
  • Loading branch information
glihm and kariy authored Nov 10, 2024
1 parent 9db7e8c commit ae2a504
Show file tree
Hide file tree
Showing 14 changed files with 488 additions and 220 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ lto = "fat"

[workspace.dependencies]
cainome = { git = "https://github.com/cartridge-gg/cainome", rev = "5c2616c273faca7700d2ba565503fcefb5b9d720", features = [ "abigen-rs" ] }
cainome-cairo-serde = { git = "https://github.com/cartridge-gg/cainome", rev = "5c2616c273faca7700d2ba565503fcefb5b9d720" }
dojo-utils = { path = "crates/dojo/utils" }

# metrics
Expand Down
3 changes: 3 additions & 0 deletions bin/katana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ katana-slot-controller = { workspace = true, optional = true }
alloy-primitives.workspace = true
anyhow.workspace = true
byte-unit = "5.1.4"
cainome-cairo-serde.workspace = true
clap.workspace = true
clap_complete.workspace = true
comfy-table = "7.1.1"
console.workspace = true
dojo-utils.workspace = true
serde.workspace = true
serde_json.workspace = true
shellexpand = "3.1.0"
tokio.workspace = true
toml.workspace = true
tracing.workspace = true
tracing-log.workspace = true
tracing-subscriber.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion bin/katana/src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod db;
mod node;
mod options;

use anyhow::Result;
use clap::{Args, CommandFactory, Parser, Subcommand};
Expand All @@ -25,7 +26,7 @@ impl Cli {
};
}

self.node.execute()
self.node.with_config_file()?.execute()
}
}

Expand Down
Loading

0 comments on commit ae2a504

Please sign in to comment.