Skip to content

Commit

Permalink
Ntrn concentrated astro (#357)
Browse files Browse the repository at this point in the history
* Add concentrated astro twap support. (#355)

* Add concentrated astro twap support.

* Cleanup.

* Optimize for bigger decimals.

* Add migrate for ntrn oracle.

* Fix warnings.

* Fix contract name.

* Fix build.
  • Loading branch information
piobab authored Jan 25, 2024
1 parent f15d673 commit 3208bb4
Show file tree
Hide file tree
Showing 62 changed files with 831 additions and 383 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/artifacts.yml

This file was deleted.

30 changes: 12 additions & 18 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,17 @@ jobs:
- name: Install stable Rust
run: cargo make install-stable

# selecting a toolchain should happen before the plugin, as the cache uses the current rustc version as its cache key
# - name: Cache dependencies
# uses: Swatinem/rust-cache@v2

# Artifacts used by tests
- name: Compile workspace
run: cargo make build

- name: Run test
run: cargo make test

# disabled because of "no space left" error.
# - name: Run test coverage
# run: cargo make coverage-lcov

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: target/coverage/lcov.info
run: |
cargo make build
find target/wasm32-unknown-unknown/release -type f ! -name '*.wasm' -delete
- name: Run test coverage
run: cargo make coverage-lcov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/coverage/lcov.info
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Audit dependencies
run: |
cargo install --locked cargo-audit
cargo make audit
cargo make audit
11 changes: 9 additions & 2 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable Rust
run: cd ../ && cargo make install-stable && cd scripts
run: cd ../ && cargo make install-stable-for-scripts && cd scripts

# selecting a toolchain should happen before the plugin, as the cache uses the current rustc version as its cache key
- name: Cache dependencies
Expand All @@ -48,5 +48,12 @@ jobs:
yarn generate-types
git diff --exit-code
- name: Compile latest health computer helpers
run: yarn compile-health-all

- name: Check build
run: yarn build

- name: Check react health example builds
working-directory: ./scripts/health/example-react
run: yarn install && yarn build
Loading

0 comments on commit 3208bb4

Please sign in to comment.