Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Mar 8, 2024
1 parent 1ee102b commit 9062d21
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 17 deletions.
9 changes: 9 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"MD033": false,
"MD041": false,
"MD045": false,
"MD003": false,
"MD013": {
"code_blocks": false
}
}
32 changes: 18 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,33 @@ authors = ["Apoorv Sadana <@apoorvsadana>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "86027c9bb984f3a12a30ffd2a3c5f2f06595f1d6", features = [
"providers",
"rpc-client",
"transport-http",
], optional = true }
async-trait = "0.1.77"
axum = { version = "0.7.4", features = ["macros"] }
axum-macros = "0.4.1"
tokio = { version = "1.36.0", features = ["sync", "macros", "rt-multi-thread"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
dotenvy = "0.15.7"
starknet = "0.9.0"
color-eyre = "0.6.2"
rstest = "0.18.2"
async-trait = "0.1.77"
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "86027c9bb984f3a12a30ffd2a3c5f2f06595f1d6", features = ["providers", "rpc-client", "transport-http"], optional = true }
reqwest = { version = "0.11.24", optional = true }
url = "2.5.0"
uuid = { version = "1.7.0", features = ["v4", "serde"] }
serde = { version = "1.0.197" }
dotenvy = "0.15.7"
futures = "0.3.30"
mongodb = { version = "2.8.1", features = ["bson-uuid-1"], optional = true }
omniqueue = { version = "0.2.0", optional = true }
thiserror = "1.0.57"
reqwest = { version = "0.11.24", optional = true }
rstest = "0.18.2"
serde = { version = "1.0.197" }
serde_json = "1.0.114"
starknet = "0.9.0"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["sync", "macros", "rt-multi-thread"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
url = "2.5.0"
uuid = { version = "1.7.0", features = ["v4", "serde"] }

[features]
default = ["ethereum", "with_mongdb", "with_sqs"]
ethereum = ["alloy", "reqwest"]
with_mongdb = ["mongodb"]
with_sqs = ["omniqueue"]
with_sqs = ["omniqueue"]
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Madara Orchestrator

The Madara orchestrator is designed to be an additional service which runs in parallel to Madara and handles
The Madara orchestrator is designed to be an additional service which runs in
parallel to Madara and handles

1. publishing data to the respective DA layer
2. running SNOS and submitting jobs to the prover
3. updating the state on Cairo core contracts

As a v1, the orchestrator handles the DA publishing. The architecture for the same is as follows
As a v1, the orchestrator handles the DA publishing. The architecture for the
same is as follows

![orchestrator_da_sequencer_diagram](./docs/orchestrator_da_sequencer_diagram.png)
![orchestrator_da_sequencer_diagram](./docs/orchestrator_da_sequencer_diagram.png)
49 changes: 49 additions & 0 deletions taplo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Taplo

[Taplo](https://github.com/tamasfe/taplo) is a TOML validator and formatter. It
provides a command-line interface (CLI) for working with TOML files.

## Installation

You can install Taplo using either cargo or Yarn or NPM.

### Cargo

```bash
cargo install taplo-cli --locked
```

### Yarn

```bash
yarn global add @taplo/cli
```

### NPM

```bash
npm install -g @taplo/cli
```

### Usage

To check your TOML files for formatting issues, use the following command:

```bash
npx @taplo/cli fmt --config taplo.toml --check
```

To format all TOML files in your project, use the following command:

```bash
npx @taplo/cli fmt --config taplo.toml
```

This command will automatically format the TOML files, ensuring consistent and
readable formatting.

### Configuration

Taplo allows you to customize the formatting rules by adding configuration
options. You can find the available options and how to use them
[here](https://taplo.tamasfe.dev/configuration/formatter-options.html).
11 changes: 11 additions & 0 deletions taplo/taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include = ["**/*.toml"]
exclude = ["**/bad.toml"]

[formatting]
align_entries = false

[[rule]]
keys = ["dependencies"]

[rule.formatting]
reorder_keys = true

0 comments on commit 9062d21

Please sign in to comment.