Skip to content

Commit

Permalink
enable conditional compilation for sei and injective
Browse files Browse the repository at this point in the history
  • Loading branch information
epanchee committed Sep 12, 2024
1 parent c22beac commit 7f9aca7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/pair/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "The Astroport constant product pool contract implementation"
license = "GPL-3.0-only"
repository = "https://github.com/astroport-fi/astroport"
homepage = "https://astroport.fi"
metadata = { build_variants = ["injective", "sei"] }

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
Expand Down
1 change: 1 addition & 0 deletions contracts/pair_stable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "The Astroport stableswap pair contract implementation"
license = "GPL-3.0-only"
repository = "https://github.com/astroport-fi/astroport"
homepage = "https://astroport.fi"
metadata = { build_variants = ["injective", "sei"] }

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
Expand Down
1 change: 1 addition & 0 deletions contracts/pair_transmuter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "The Astroport constant sum pair contract implementation. Handles
license = "GPL-3.0-only"
repository = "https://github.com/astroport-fi/astroport"
homepage = "https://astroport.fi"
metadata = { build_variants = ["injective", "sei"] }

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
1 change: 1 addition & 0 deletions contracts/pair_xyk_sale_tax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "The Astroport constant product pool contract implementation"
license = "Apache-2.0"
repository = "https://github.com/astroport-fi/astroport"
homepage = "https://astroport.fi"
metadata = { build_variants = ["injective", "sei"] }

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ projectPath=$(cd "$(dirname "${0}")" && cd ../ && pwd)
docker run --rm -v "$projectPath":/code \
--mount type=volume,source="$(basename "$projectPath")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.15.1
ghcr.io/astroport-fi/rust-optimizer:v0.15.1-astroport

0 comments on commit 7f9aca7

Please sign in to comment.