Skip to content

Commit

Permalink
Merge branch 'main' into aw/new-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Feb 10, 2025
2 parents 2a367ae + 1cd820c commit 4f70890
Show file tree
Hide file tree
Showing 104 changed files with 3,098 additions and 1,791 deletions.
47 changes: 39 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ workflows:
- contract_crypto_verify
- contract_cyberpunk
- contract_empty
- contract_replier
# - contract_floaty # This contract needs nightly Rust to compile
- contract_hackatom
- contract_ibc_callbacks
Expand All @@ -95,7 +96,7 @@ workflows:
matrix:
parameters:
# Run with MSRV and some modern stable Rust
rust-version: ["1.74.0", "1.82.0"]
rust-version: ["1.74.0", "1.78.0"]
- benchmarking:
requires:
- package_vm
Expand Down Expand Up @@ -597,6 +598,34 @@ jobs:
- target/wasm32-unknown-unknown/release/deps
key: cargocache-v2-contract_burner-rust:1.74-{{ checksum "Cargo.lock" }}

contract_replier:
docker:
- image: rust:1.74
environment:
RUST_BACKTRACE: 1
working_directory: ~/cosmwasm/contracts/replier
steps:
- checkout:
path: ~/cosmwasm
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-v2-contract_replier-rust:1.74-{{ checksum "Cargo.lock" }}
- check_contract:
min_version: "1.4"
- save_cache:
paths:
- /usr/local/cargo/registry
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
- target/wasm32-unknown-unknown/release/.fingerprint
- target/wasm32-unknown-unknown/release/build
- target/wasm32-unknown-unknown/release/deps
key: cargocache-v2-contract_replier-rust:1.74-{{ checksum "Cargo.lock" }}

contract_crypto_verify:
docker:
- image: rust:1.74
Expand Down Expand Up @@ -655,8 +684,7 @@ jobs:

contract_hackatom:
docker:
# We compile this contract with the upper bound to detect issues with new Rust versions early
- image: rust:1.82
- image: rust:1.74
environment:
RUST_BACKTRACE: 1
working_directory: ~/cosmwasm/contracts/hackatom
Expand All @@ -668,7 +696,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-v2-contract_hackatom-rust:1.82-{{ checksum "Cargo.lock" }}
- cargocache-v2-contract_hackatom-rust:1.74-{{ checksum "Cargo.lock" }}
- check_contract:
min_version: "2.2"
- save_cache:
Expand All @@ -680,7 +708,7 @@ jobs:
- target/wasm32-unknown-unknown/release/.fingerprint
- target/wasm32-unknown-unknown/release/build
- target/wasm32-unknown-unknown/release/deps
key: cargocache-v2-contract_hackatom-rust:1.82-{{ checksum "Cargo.lock" }}
key: cargocache-v2-contract_hackatom-rust:1.74-{{ checksum "Cargo.lock" }}

contract_ibc_callbacks:
docker:
Expand Down Expand Up @@ -994,7 +1022,9 @@ jobs:
- checkout
- run:
name: Install shfmt
command: curl -sS https://webinstall.dev/shfmt | bash
command: |
wget -O install_shfmt.sh https://webinstall.dev/shfmt
bash install_shfmt.sh
- run:
name: Validate Markdown files
command: devtools/format_md.sh -c
Expand Down Expand Up @@ -1091,7 +1121,8 @@ jobs:
- run:
name: Clippy linting on std (all feature flags)
working_directory: ~/project/packages/std
command: cargo clippy --all-targets --tests --all-features -- -D warnings
# change to --all-features once `abort` is removed
command: cargo clippy --all-targets --tests --features staking,stargate,cosmwasm_2_2 -- -D warnings
- run:
name: Clippy linting on vm (no feature flags)
working_directory: ~/project/packages/vm
Expand Down Expand Up @@ -1143,7 +1174,7 @@ jobs:

coverage:
docker:
- image: rust:1.82.0-alpine3.19
- image: rust:1.78.0-alpine3.19
environment:
# Limit the number of parallel jobs to avoid OOM crashes during doc testing
RUST_TEST_THREADS: 8
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/typo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- id: files
uses: tj-actions/changed-files@v45
- name: Run spell-check
uses: crate-ci/typos@master
with:
files: ${{ steps.files.outputs.all_changed_files }}
1 change: 0 additions & 1 deletion .taplo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[formatting]
indent_string = " "
reorder_arrays = true
2 changes: 1 addition & 1 deletion CHANGELOG-pre1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ and this project adheres to
secp256k1 signature verification scheme for Cosmos signature and public key
formats. ([#780])
- cosmwasm-vm: Add PinnedMemoryCache. ([#696])
- cosmwasm-vm: The new `Cache::analyze` provides a static analyzis of the Wasm
- cosmwasm-vm: The new `Cache::analyze` provides a static analysis of the Wasm
bytecode. This is used to tell the caller if the contract exposes IBC entry
points. ([#736])
- cosmwasm-vm: Added new `stargate` feature flag to enable new stargate and ibc
Expand Down
Loading

0 comments on commit 4f70890

Please sign in to comment.