Skip to content

Commit

Permalink
Add rust code-generation from proto files (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll authored Jul 24, 2024
1 parent d1ff923 commit d8b21fe
Show file tree
Hide file tree
Showing 25 changed files with 2,883 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/generate-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ echo "PWD is - $PWD"

# Copy the generated Go files to the desired location
cp -r github.com/quasarlabs/quasarnode/* .
cp -r github.com github.com.bkp
cp -r github.com github.com.bkp

# Generate rust files
cd ${project_dir}/smart-contracts/quasar
cargo run --bin proto-build
cd -
Empty file modified scripts/git/post-merge
100644 → 100755
Empty file.
Empty file modified scripts/git/pre-commit
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions smart-contracts/osmosis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"contracts/dex-router-osmosis",
"contracts/lst-dex-adapter-osmosis",
"contracts/lst-adapter-osmosis",
"packages/quasar-types",
]

[workspace.dependencies]
Expand All @@ -34,6 +35,7 @@ cw20-base = {version = "1.1.2", features = ["library"]}
cw20-staking = "0.11.1"
apollo-cw-asset = "0.1.2"
mars-owner = "2.0.0"
quasar-std = { path = "../quasar/packages/quasar-std" }
quasar-types = { path = "packages/quasar-types" }
dex-router-osmosis = { path = "contracts/dex-router-osmosis", features = ["library"] }
lst-dex-adapter-osmosis = { path = "contracts/lst-dex-adapter-osmosis", features = ["library"] }
Expand Down
Loading

0 comments on commit d8b21fe

Please sign in to comment.