Skip to content

Commit

Permalink
Mp 2487 extract asset params (#191)
Browse files Browse the repository at this point in the history
* Read asset params from remote contract.

* Fix tests.

* Fix tests.

* Fix integration tests.

* Fix clippy.

* Fix tests.

* Remove close_factor. Use external contract.

* Update schema.

* Clean comment.

* Update to latest mars-params version.

* Include mars-params wasm file in github pipeline.

* Update downloading artifacts.

* Fix build.
  • Loading branch information
piobab committed Jul 20, 2023
1 parent 9976a6c commit 44730cf
Show file tree
Hide file tree
Showing 45 changed files with 957 additions and 1,111 deletions.
87 changes: 66 additions & 21 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 @@ -67,6 +67,7 @@ proptest = "1.1.0"
# packages
mars-health = { version = "1.0.0", path = "./packages/health" }
mars-osmosis = { version = "1.0.0", path = "./packages/chains/osmosis" }
mars-params = "=1.0.2"
mars-red-bank-types = { version = "1.0.0", path = "./packages/types" }
mars-testing = { version = "1.0.0", path = "./packages/testing" }
mars-utils = { version = "1.0.0", path = "./packages/utils" }
Expand Down
8 changes: 8 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ docker run --rm -v "$(pwd)":/code \
${image}
"""

# Download artifacts used in integration tests.
# NOTE: use correct version of the artifact.
[tasks.download-artifacts]
script = """
wget https://github.com/mars-protocol/mars-common/releases/download/v1.0.0-alpha/mars_params.wasm -O $ARTIFACTS_DIR_PATH/mars_params.wasm
"""

[tasks.test]
toolchain = "${RUST_VERSION}"
command = "cargo"
Expand Down Expand Up @@ -92,6 +99,7 @@ dependencies = [
"fmt",
"clippy",
"build",
"download-artifacts",
"test",
"audit",
"generate-all-schemas",
Expand Down
1 change: 1 addition & 0 deletions contracts/red-bank/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
mars-health = { workspace = true }
mars-owner = { workspace = true }
mars-params = { workspace = true }
mars-red-bank-types = { workspace = true }
mars-utils = { workspace = true }
thiserror = { workspace = true }
Expand Down
Loading

0 comments on commit 44730cf

Please sign in to comment.