Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: DCA params constraints #870

Merged
merged 18 commits into from
Jul 20, 2024
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
6 changes: 3 additions & 3 deletions Cargo.lock

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

30 changes: 16 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,59 +1,61 @@
cargo := cargo --config net.git-fetch-with-cli=true

.PHONY: build
build:
cargo build --release --locked
$(cargo) build --release --locked

.PHONY: build-release
build-release:
cargo build --release --locked --features metadata-hash
$(cargo) build --release --locked --features metadata-hash

.PHONY: check
check:
cargo check --release
$(cargo) check --release

.PHONY: build-benchmarks
build-benchmarks:
cargo build --release --features runtime-benchmarks
$(cargo) build --release --features runtime-benchmarks

.PHONY: test
test:
cargo test --locked
$(cargo) test --locked

.PHONY: test-release
test-release:
cargo test --release --locked
$(cargo) test --release --locked

.PHONY: test-benchmarks
test-benchmarks:
cargo test --release --features runtime-benchmarks
$(cargo) test --release --features runtime-benchmarks

.PHONY: coverage
coverage:
cargo tarpaulin --avoid-cfg-tarpaulin --all-features --workspace --locked --exclude-files node/* --exclude-files runtime/* --exclude-files infrastructure/* --exclude-files utils/* --exclude-files **/weights.rs --ignore-tests -o Xml -o lcov --timeout 120
$(cargo) tarpaulin --avoid-cfg-tarpaulin --all-features --workspace --locked --exclude-files node/* --exclude-files runtime/* --exclude-files infrastructure/* --exclude-files utils/* --exclude-files **/weights.rs --ignore-tests -o Xml -o lcov --timeout 120

.PHONY: clippy
clippy:
cargo clippy --release --locked --all-targets -- -D warnings -A deprecated
$(cargo) clippy --release --locked --all-targets -- -D warnings -A deprecated

.PHONY: clippy-all
clippy-all:
cargo clippy --release --locked --all-targets --all-features -- -D warnings -A deprecated
$(cargo) clippy --release --locked --all-targets --all-features -- -D warnings -A deprecated

.PHONY: format
format:
cargo fmt
$(cargo) fmt

.PHONY: try-runtime
try-runtime:
cargo build --release --features try-runtime
$(cargo) build --release --features try-runtime
try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri wss://rpc.hydradx.cloud:443

.PHONY: build-docs
build-docs:
cargo doc --release --target-dir ./HydraDX-dev-docs --no-deps
$(cargo) doc --release --target-dir ./HydraDX-dev-docs --no-deps

.PHONY: clean
clean:
cargo clean
$(cargo) clean

.PHONY: docker
docker:
Expand Down
14 changes: 7 additions & 7 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtime-integration-tests"
version = "1.22.5"
version = "1.23.0"
description = "Integration tests"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down Expand Up @@ -32,14 +32,14 @@ warehouse-liquidity-mining = { workspace = true }
pallet-otc = { workspace = true }
pallet-otc-settlements = { workspace = true }
pallet-relaychain-info = { workspace = true }
pallet-route-executor = { workspace = true}
pallet-dca = { workspace = true}
pallet-route-executor = { workspace = true }
pallet-dca = { workspace = true }
pallet-dynamic-fees = { workspace = true }
pallet-dynamic-evm-fee = { workspace = true }
pallet-staking = { workspace = true}
pallet-lbp = { workspace = true}
pallet-xyk = { workspace = true}
pallet-evm-accounts = { workspace = true}
pallet-staking = { workspace = true }
pallet-lbp = { workspace = true }
pallet-xyk = { workspace = true }
pallet-evm-accounts = { workspace = true }

pallet-treasury = { workspace = true }
pallet-democracy = { workspace = true }
Expand Down
Loading
Loading