Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ jobs:
run: cargo run --package bbuilder run examples/input_ethereum.json --dry-run

test-wasm-build:
name: Test WASM build
name: Test WASM build - ${{ matrix.catalog }}
runs-on: ubuntu-latest
strategy:
matrix:
catalog: [catalog-berachain, catalog-ethereum, catalog-polygon]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Build catalog for WASM
run: cargo build --target wasm32-unknown-unknown -p catalog
- name: Build ${{ matrix.catalog }} for WASM
run: cargo build --target wasm32-unknown-unknown -p ${{ matrix.catalog }}
40 changes: 40 additions & 0 deletions Cargo.lock

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

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ members = [
"crates/babel-api",
"crates/fetcher",
"crates/fetcher-api",
"crates/cosmos-keys"
"crates/cosmos-keys",
"catalog/berachain",
"catalog/ethereum",
"catalog/polygon"
]

[workspace.dependencies]
Expand All @@ -22,6 +25,9 @@ template = { path = "crates/template" }
babel-api = { path = "crates/babel-api" }
fetcher-api = { path = "crates/fetcher-api" }
cosmos-keys = { path = "crates/cosmos-keys" }
catalog-berachain = { path = "catalog/berachain" }
catalog-ethereum = { path = "catalog/ethereum" }
catalog-polygon = { path = "catalog/polygon" }

serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9.34"
Expand All @@ -33,7 +39,6 @@ async-trait = "0.1.89"
serde_json = "1.0.145"
include_dir = "0.7"
tinytemplate = "1.2"
askama = "0.14.0"
clap = { version = "4.5", features = ["derive"] }
reqwest = { version = "0.12", default-features = false }
jsonrpsee = { version = "0.24", features = ["server", "ws-client", "http-client", "macros"] }
Expand Down
16 changes: 16 additions & 0 deletions catalog/berachain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "catalog-berachain"
version = "0.1.0"
edition = "2024"

[dependencies]
serde.workspace = true
spec.workspace = true
eyre.workspace = true
tinytemplate.workspace = true
serde_json.workspace = true
template.workspace = true
getrandom.workspace = true

[lib]
path = "lib.rs"
File renamed without changes.
16 changes: 16 additions & 0 deletions catalog/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "catalog-ethereum"
version = "0.1.0"
edition = "2024"

[dependencies]
serde.workspace = true
spec.workspace = true
eyre.workspace = true
tinytemplate.workspace = true
serde_json.workspace = true
template.workspace = true
getrandom.workspace = true

[lib]
path = "lib.rs"
File renamed without changes.
17 changes: 17 additions & 0 deletions catalog/polygon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "catalog-polygon"
version = "0.1.0"
edition = "2024"

[dependencies]
serde.workspace = true
spec.workspace = true
eyre.workspace = true
tinytemplate.workspace = true
serde_json.workspace = true
template.workspace = true
cosmos-keys.workspace = true
getrandom.workspace = true

[lib]
path = "lib.rs"
File renamed without changes.
9 changes: 3 additions & 6 deletions crates/catalog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ edition = "2024"
serde.workspace = true
spec.workspace = true
eyre.workspace = true
tinytemplate.workspace = true
serde_json.workspace = true
askama.workspace = true
template.workspace = true
cosmos-keys.workspace = true
getrandom.workspace = true
catalog-berachain.workspace = true
catalog-ethereum.workspace = true
catalog-polygon.workspace = true
10 changes: 3 additions & 7 deletions crates/catalog/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
use spec::{Dep, Deployment, Manifest};

mod berachain;
mod ethereum;
mod polygon;

pub use berachain::BerachainDeployment;
pub use ethereum::EthereumDeployment;
pub use polygon::PolygonDeployment;
pub use catalog_berachain::BerachainDeployment;
pub use catalog_ethereum::EthereumDeployment;
pub use catalog_polygon::PolygonDeployment;

pub fn apply(dep: Dep) -> eyre::Result<Manifest> {
match dep.module.as_str() {
Expand Down
Loading