Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2911 commits
Select commit Hold shift + click to select a range
20419d2
Make EnvsOptions non_exhaustive and add soem docs
webmaster128 Apr 30, 2025
f84ea7d
Derive Debug for EnvsOptions
webmaster128 Apr 30, 2025
e6c698f
Add CHANGELOG entry for Envs
webmaster128 May 5, 2025
fcbd69f
Merge pull request #2442 from CosmWasm/envs
webmaster128 May 5, 2025
ee446c8
Remove IbcQuery::ListChannels and ListChannelsResponse
webmaster128 May 5, 2025
77654fc
Re-generate schemas
webmaster128 May 5, 2025
888b984
Add CHANGELOG entry for IbcQuery::ListChannels/ListChannelsResponse r…
webmaster128 May 5, 2025
18fb77c
Merge pull request #2466 from CosmWasm/rm-ListChannels
chipshort May 5, 2025
80fe0be
Rename make_dependencies -> deps_from_imports and make it private
webmaster128 May 5, 2025
bd5ebe5
Remove export of ExternalApi, ExternalQuerier and ExternalStorage
webmaster128 May 5, 2025
a34aae5
Move deps_from_imports to bottom of the file
webmaster128 May 5, 2025
af40836
Merge pull request #2467 from CosmWasm/unpublish-External-deps
webmaster128 May 6, 2025
7f63657
Group imports and exports in exports module
webmaster128 May 6, 2025
e27ef1d
Add exports feature to enable exports
webmaster128 May 7, 2025
02673cd
Merge pull request #2470 from CosmWasm/exports-feature
webmaster128 May 8, 2025
d53d31a
Update wasmer
chipshort May 7, 2025
e7a145e
Update lockfiles
chipshort May 8, 2025
88cf677
Remove zlib in coverage job
chipshort May 8, 2025
1c83dae
Add changelog entry
chipshort May 8, 2025
c8763bc
Merge pull request #2472 from CosmWasm/co/upgrade-wasmer5
chipshort May 8, 2025
7470656
Enable reference-types
chipshort May 8, 2025
0b0e170
Compile hackatom with newer Rust
chipshort May 8, 2025
08e953c
Add comment about reference types to Gatekeeper
chipshort May 8, 2025
4b6841d
Add tests
chipshort Mar 26, 2025
fb53268
Fix func_ref_test
chipshort May 8, 2025
eb94373
Fix bulk_table_operations_not_supported test
chipshort May 8, 2025
5a79791
Add changelog entry
chipshort May 8, 2025
b24e652
Merge pull request #2473 from CosmWasm/co/enable-reference-types
chipshort May 8, 2025
ef69e64
Bump `ring`
aumetra May 11, 2025
5a3d737
Rename to `ibc2_packet_ack`
aumetra May 11, 2025
3f7579b
Fix limits of acknowledge endpoint
aumetra May 11, 2025
84dad8c
Rename to "client"
aumetra May 11, 2025
7689ea4
Merge pull request #2476 from CosmWasm/aw/bump-ring
aumetra May 12, 2025
53320b3
Add tests
aumetra May 12, 2025
67613ec
Merge branch 'main' into aw/ibcv2-ack-recv
aumetra May 12, 2025
ac68736
Format
aumetra May 12, 2025
39db5f7
Fix issues from merge
aumetra May 12, 2025
d8d4889
Regenerate schema
aumetra May 12, 2025
9996899
Run coverage with all features
aumetra May 12, 2025
e4d2dbc
Add CHANGELOG entry
aumetra May 12, 2025
e38f652
Merge pull request #2474 from CosmWasm/aw/ibcv2-ack-recv
aumetra May 12, 2025
aa24a8f
feat: Add support for IBCv2 Send entry point (#2477)
kulikthebird May 12, 2025
8b05ab2
docs: fix typos (#2478)
Abdulhakee33 May 13, 2025
7028327
chore: Release
chipshort May 13, 2025
75a130a
feat: Add Tx hash to TransactionInfo and make it non exhaustive (#2480)
kulikthebird May 14, 2025
1a082c7
chore: Remove IBC fees (#2479)
kulikthebird May 16, 2025
241f1f0
Fix the IBC2 acknowledge struct
aumetra May 19, 2025
1579e65
Update test contract
aumetra May 19, 2025
5a45e22
Compiled with older compiler. 1.87 breaks stuff.
aumetra May 19, 2025
2a36ce4
Merge pull request #2482 from CosmWasm/aw/fix-ibc2-ack-struct
aumetra May 20, 2025
7a44b1e
fix dead link in README.md (#2483)
dizer-ti May 21, 2025
36a48c2
Upgraded derive_more dependency.
DariuszDepta May 26, 2025
e1dfb98
Merge pull request #2486 from CosmWasm/upgrade-derive-more-dependency
chipshort May 26, 2025
387afff
Add RawRange query variant
chipshort May 6, 2025
f7407d2
Fix tests
chipshort May 7, 2025
82444e7
Export RawRangeResponse
chipshort May 7, 2025
9022e4f
Add cosmwasm_3_0 capability
chipshort May 7, 2025
99e64fb
Fix distribution test feature gate
chipshort May 7, 2025
91394f8
Fix clippy lint
chipshort May 7, 2025
be54a99
Support RawRangeResponse in go-gen
chipshort May 9, 2025
f4f503d
Add RawRangeResponse test
chipshort May 9, 2025
cd5c1db
Add RawRangeEntry type
chipshort May 14, 2025
efe0ae7
Undo go-gen array change
chipshort May 14, 2025
8bdb700
Improve test
chipshort May 16, 2025
a70a1be
Disable go-gen WasmQuery test
chipshort May 16, 2025
59a2373
Fix RawRangeQuery go type
chipshort May 16, 2025
aeb8ccf
Adjust go type again
chipshort May 19, 2025
4dd5614
Use tuple as RawRangeEntry
chipshort May 19, 2025
c26f382
Revert "Undo go-gen array change"
chipshort May 19, 2025
6a9b643
Fix slice handling in go-gen
chipshort May 19, 2025
499fee0
Add changelog entry
chipshort May 26, 2025
1ce8364
Merge pull request #2471 from CosmWasm/co/raw-range
chipshort May 26, 2025
e4e8373
Add funds to IbcDestinationCallbackMsg
chipshort May 20, 2025
7cf0e6f
Update contract schemas
chipshort May 21, 2025
ebabe8d
Add assertion to ibc-callbacks contract
chipshort May 21, 2025
04ce6f2
Add more information to destination callback transfer case
chipshort May 22, 2025
1c2ee39
Provide more info for transfer destination callback
chipshort May 22, 2025
21c48c1
Fix contract
chipshort May 22, 2025
d413bdb
[autofix.ci] apply automated fixes
autofix-ci[bot] May 22, 2025
af26f31
Export transfer callback type
chipshort May 23, 2025
e91b17e
Add changelog entry
chipshort May 26, 2025
ec91dcb
Merge pull request #2484 from CosmWasm/co/ibc-callbacks-funds
chipshort May 26, 2025
759fbac
Apply editorconfig rules to all .go files
webmaster128 May 27, 2025
20ef2ed
Merge pull request #2487 from CosmWasm/format-go
chipshort May 27, 2025
b0aa9eb
Fix num-bigint min version
chipshort May 27, 2025
b21322c
Update contract lockfiles
chipshort May 27, 2025
ec42bc4
Merge pull request #2488 from CosmWasm/co/fix-num-bigint
chipshort May 27, 2025
9c15a26
chore: Release
chipshort May 27, 2025
d34bc6f
Bump min time version to 0.3.35
webmaster128 May 30, 2025
e940753
Merge pull request #2490 from CosmWasm/time-0.3.35
chipshort May 30, 2025
7e8590c
Remove unnecessary brackets and incorrect indent to make clippy 1.87 …
webmaster128 May 30, 2025
cc1a0d5
Update comment regarding ecdsa dependency in cosmwasm-crypto
webmaster128 May 30, 2025
36670c1
Explain the use of Option<...> in InMemoryCache and avoid unwrap
webmaster128 Jun 2, 2025
f2edab2
Merge pull request #2491 from CosmWasm/ecdsa-comment
chipshort Jun 2, 2025
7a347dc
Merge pull request #2493 from CosmWasm/explain-option-InMemoryCache
webmaster128 Jun 2, 2025
e65152a
Merge pull request #2492 from CosmWasm/clippy-1.87.0
webmaster128 Jun 2, 2025
dc229ad
chore: replace dead reference in README.md
davidjsonn Jun 5, 2025
efaab8c
Update README.md
chipshort Jun 5, 2025
a160fa1
Merge pull request #2494 from davidjsonn/fix-error
chipshort Jun 5, 2025
a615e90
New schema; no codegen yet
aumetra Jun 10, 2025
89c1ffc
Regen lockfiles
aumetra Jun 10, 2025
949635b
Fix derives
aumetra Jun 10, 2025
664b79e
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 10, 2025
0a8e231
Fix snapshot tests
aumetra Jun 10, 2025
94035c2
Fix broken EntryPoints.md link in README
MozirDmitriy Jun 10, 2025
fae3053
Replace `Inflector` with `heck` in `go-gen`
aumetra Jun 12, 2025
331b514
Remove aggressive comment towards myself :3
aumetra Jun 12, 2025
c53a4ee
Add `Box` support
aumetra Jun 12, 2025
9edf208
Remove Confio from SECURITY.md
webmaster128 Jun 12, 2025
b0114f2
Merge pull request #2497 from CosmWasm/generalize-security.md
webmaster128 Jun 12, 2025
8cd9a37
Use impl from `typeid` crate instead of vendored hack
aumetra Jun 13, 2025
1b2fb75
Add support for `default` and `skip_serializing_if` by annotating the…
aumetra Jun 15, 2025
ec4e681
Remove `JsonCwApi` reexport
aumetra Jun 15, 2025
17558f3
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 15, 2025
07a5964
Remove unused result and error types
aumetra Jun 15, 2025
f7c6bb7
Add tracking issue
aumetra Jun 15, 2025
fbe7c88
Fix tests
aumetra Jun 15, 2025
4c53801
New error type. Now with 99% less enum cases
aumetra Jun 16, 2025
ddb8a26
Split Validator type for better extensibility
chipshort Jun 16, 2025
f5c7fdb
Fix errors in contracts, fix scripts
aumetra Jun 16, 2025
4c9d104
Fix all contract tests
aumetra Jun 16, 2025
e49fc0e
Fix integration tests
aumetra Jun 17, 2025
2338f8e
Encode default as `defaulting`
aumetra Jun 17, 2025
f931bfb
Add changelog entries
aumetra Jun 17, 2025
66f8001
Add changelog entry
chipshort Jun 17, 2025
fa33867
Merge pull request #2501 from CosmWasm/co/separate-validator-types
chipshort Jun 17, 2025
20ddb4f
Update contracts/ibc-reflect-send/src/state.rs
aumetra Jun 17, 2025
8a52942
Update contracts/ibc-reflect/src/state.rs
aumetra Jun 17, 2025
f440516
Update contracts/ibc-reflect-send/src/state.rs
aumetra Jun 17, 2025
9100b07
Update contracts/ibc-reflect/src/state.rs
aumetra Jun 17, 2025
2ff4638
Change back sed command
aumetra Jun 17, 2025
a243529
Also check for ConversionOverflowError
aumetra Jun 17, 2025
327d14a
Check for overflow
aumetra Jun 17, 2025
7e15a85
Fix test errors
aumetra Jun 17, 2025
2e7f8b8
Update packages/crypto/testdata/extract_sig_gen.sh
aumetra Jun 17, 2025
ebb6e57
Update contracts/staking/src/state.rs
aumetra Jun 17, 2025
c68a5ce
Update contracts/staking/src/state.rs
aumetra Jun 17, 2025
21368f3
Update contracts/hackatom/src/contract.rs
aumetra Jun 17, 2025
d10b4bc
Update contracts/hackatom/src/contract.rs
aumetra Jun 17, 2025
fb99869
Update contracts/hackatom/src/contract.rs
aumetra Jun 17, 2025
b3e4a07
Fix typos
chipshort Jun 17, 2025
a9bb725
Merge branch 'main' into aw/only-schema
aumetra Jun 18, 2025
df2c1dc
Add missing derive
aumetra Jun 18, 2025
4b194dd
Update snapshot
aumetra Jun 18, 2025
531ba59
Merge pull request #2495 from CosmWasm/aw/only-schema
aumetra Jun 18, 2025
e2c33a9
Update contracts/ibc-callbacks/src/state.rs
aumetra Jun 18, 2025
079bbf1
Update contracts/reflect/src/state.rs
aumetra Jun 18, 2025
050445d
Update contracts/reflect/src/state.rs
aumetra Jun 18, 2025
34eacf2
Format
aumetra Jun 18, 2025
0d3a2a0
thiserror compatibility
aumetra Jun 18, 2025
8a0548f
Merge branch 'main' into aw/new-error
aumetra Jun 20, 2025
3bba20c
Add Changelog entry
aumetra Jun 20, 2025
f3ad156
Merge pull request #2500 from CosmWasm/aw/new-error
chipshort Jun 20, 2025
4b72645
Classify more errors
chipshort Jun 20, 2025
7b0666a
Merge pull request #2503 from CosmWasm/co/classify-more-errors
chipshort Jun 20, 2025
649d786
Add info to cw-schema Cargo.toml
chipshort Jun 20, 2025
8ea9da0
Merge pull request #2504 from CosmWasm/co/cw-schema-tomls
chipshort Jun 20, 2025
9659a04
Add cw-schema CI jobs
chipshort Jun 20, 2025
cb1cdb7
Merge pull request #2505 from CosmWasm/co/schema-ci
chipshort Jun 20, 2025
ec030e0
chore: Release
chipshort Jun 20, 2025
3baf487
cargo update
chipshort Jun 20, 2025
87a5670
Update CI Rust versions
chipshort Jun 20, 2025
9183a7d
Bump contract minimum CosmWasm version
chipshort Jun 20, 2025
4855758
Fix benchmark temp dirs clippy lint
chipshort Jun 20, 2025
228b828
Bump Rust in github workflows
chipshort Jun 20, 2025
15896e3
Merge pull request #2506 from CosmWasm/co/cargo-update
aumetra Jun 20, 2025
f10c7a9
Suppress schema warnings for now
chipshort Jun 23, 2025
c737e28
Merge pull request #2507 from CosmWasm/co/suppress-warnings
chipshort Jun 23, 2025
7504832
chore: Release
chipshort Jun 23, 2025
0772d6c
Update schema generation scripts
webmaster128 Jun 24, 2025
043088b
Remove outdated files
webmaster128 Jun 24, 2025
e17fb1d
Merge pull request #2509 from CosmWasm/fix-schema-generation
webmaster128 Jun 24, 2025
c0a04b8
Export ValidatorMetadata
chipshort Jun 26, 2025
74d21c1
Add changelog entry
chipshort Jun 26, 2025
fc5f298
Merge pull request #2511 from CosmWasm/co/export-validatormetadata
chipshort Jun 26, 2025
74a568d
chore: Release
chipshort Jun 26, 2025
95e6c22
Update MIGRATING.md
eeemmmmmm Jun 26, 2025
df14e19
Fix link
chipshort Jun 27, 2025
9db86fa
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 27, 2025
1edd300
Merge pull request #2512 from eeemmmmmm/main
chipshort Jun 27, 2025
78de1f8
Add CW 3.0 to MIGRATING.md
chipshort Jun 30, 2025
51ddbf5
Fix changelog link
chipshort Jun 30, 2025
eb33578
Update MIGRATING.md
chipshort Jun 30, 2025
9732912
Merge pull request #2513 from CosmWasm/co/migrating-docs
chipshort Jun 30, 2025
8ab4100
Merge pull request #2496 from MozirDmitriy/fix-broken-link
DariuszDepta Jul 3, 2025
1a7a811
Minor fixes.
DariuszDepta Jul 3, 2025
da905f2
Merge pull request #2514 from CosmWasm/general-maintenance-fixes
DariuszDepta Jul 4, 2025
d02f135
Unified security policy.
DariuszDepta Jul 13, 2025
9c21182
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 13, 2025
282cfbf
Merge pull request #2515 from CosmWasm/unified-security-policy
DariuszDepta Jul 14, 2025
9610202
fix: correct malformed crates.io links in crypto README
Galoretka Jul 31, 2025
c338e4a
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 31, 2025
06203c8
Merge pull request #2518 from Galoretka/BrLk
DariuszDepta Jul 31, 2025
ca45d18
Updated copyright notice.
DariuszDepta Jul 31, 2025
fa5439a
Merge pull request #2519 from CosmWasm/update-copyright-notice
DariuszDepta Jul 31, 2025
5ffc6f7
Applied similar checks as in CircleCI.
DariuszDepta Aug 13, 2025
6545d50
Fixes after applying exhaustive checks.
DariuszDepta Aug 13, 2025
f1bf9dc
More fixes after applying exhaustive checks.
DariuszDepta Aug 13, 2025
8d9b803
Refreshed lock files for contracts.
DariuszDepta Aug 13, 2025
1c5a08e
Temporarily removed cached contract directories.
DariuszDepta Aug 13, 2025
0068759
Removed caches.
DariuszDepta Aug 13, 2025
24accd6
Enabled checks for contracts.
DariuszDepta Aug 13, 2025
24f0be6
Split package checks.
DariuszDepta Aug 13, 2025
8c2983d
Refactored job names in package checks.
DariuszDepta Aug 13, 2025
c67ae65
Fixes after review.
DariuszDepta Aug 14, 2025
ec86b3d
Merge pull request #2523 from CosmWasm/migrate-circleci-to-gh-actions
DariuszDepta Aug 14, 2025
35f67d0
Removed unused configuration files.
DariuszDepta Aug 14, 2025
72d4eb0
update ed25519-zebra
dakom Aug 15, 2025
c1d1b38
Merge pull request #2524 from CosmWasm/remove-not-needed-files
DariuszDepta Aug 15, 2025
d91b006
Merge pull request #2526 from dakom/2525/ed25519-zebra
DariuszDepta Aug 15, 2025
d3a7126
Enabled checks on pull request.
DariuszDepta Aug 15, 2025
a8745f9
Fixed ed25519-zebra to version =4.0.3
DariuszDepta Aug 15, 2025
bbf821e
Merge pull request #2528 from CosmWasm/fix-zebra-version
DariuszDepta Aug 15, 2025
f2f3568
Updates.
DariuszDepta Aug 19, 2025
eefccd6
Merge pull request #2527 from CosmWasm/enable-checks-on-pull-request
DariuszDepta Aug 19, 2025
e96a7bb
Unified Cargo.toml files formatting.
DariuszDepta Aug 20, 2025
e40817b
Merge pull request #2529 from CosmWasm/toml-formatting
DariuszDepta Aug 20, 2025
2e62a70
Added initial Task script.
DariuszDepta Aug 20, 2025
78d8171
Merge pull request #2530 from CosmWasm/add-taskfile
DariuszDepta Aug 20, 2025
15407c8
Changed execution flags.
DariuszDepta Aug 20, 2025
21bd206
Applied local paths to dependencies for development mode.
DariuszDepta Aug 21, 2025
68f0d9e
Added -dev suffix for version 3.0.2
DariuszDepta Aug 21, 2025
0a07487
Updated dependencies.
DariuszDepta Aug 21, 2025
1c55673
Merge pull request #2532 from CosmWasm/local-dependencies
DariuszDepta Aug 22, 2025
d83f339
Added tests.
DariuszDepta Aug 22, 2025
db167f0
Merge pull request #2533 from CosmWasm/add-tests-for-cosmwasm-core
DariuszDepta Aug 22, 2025
ae26e20
Unified dependencies for cosmwasm-check.
DariuszDepta Aug 22, 2025
9879a33
Unified dependencies for all packages.
DariuszDepta Aug 22, 2025
d26bb00
Reverted serde_json version upgrade.
DariuszDepta Aug 22, 2025
fcfbf7e
Merge pull request #2534 from CosmWasm/unified-dependencies
DariuszDepta Aug 25, 2025
d559947
Added more tasks.
DariuszDepta Aug 25, 2025
8652feb
Update README (#2531)
DariuszDepta Aug 25, 2025
197d09a
chore: fix typos (#2537)
Abdulhakee33 Aug 26, 2025
a5ff45c
docs: add and fix crate-level documentation for all CosmWasm crates (…
GarmashAlex Aug 26, 2025
2b205b0
docs(staking): fix broken path (#2535)
sashass1315 Aug 26, 2025
080b227
Prepared checngelog for version v3.0.2 (#2538)
DariuszDepta Aug 26, 2025
b8828e5
Prepared development version 3.0.3-dev
DariuszDepta Aug 26, 2025
74a56e0
Bumped released versions in crate diagram.
DariuszDepta Aug 26, 2025
10c4ecc
Upgraded dependencies.
DariuszDepta Aug 26, 2025
a5d1c87
Unified security policy.
DariuszDepta Aug 29, 2025
0bca034
Fix typos in function names (#2542)
Forostovec Sep 3, 2025
b739d13
Remove duplicate words to make the comments more readable (#2540)
zhoujiaweii Sep 3, 2025
2b3baf6
Fix grammar issues in contracts and IBC code comments (#2541)
Fibonacci747 Sep 3, 2025
f1b656e
Updated schemas. (#2544)
DariuszDepta Sep 3, 2025
a52819d
Moved CHECKS.md content to Wiki. (#2545)
DariuszDepta Sep 3, 2025
823bcad
Moved MSRV.md to Wiki. (#2546)
DariuszDepta Sep 3, 2025
c6b61c1
Fixed typo (#2547)
sashass1315 Sep 11, 2025
05d7e38
Minor grammar fixes. (#2549)
DariuszDepta Sep 11, 2025
d8f759e
chore: fix minor typos (#2550)
Snezhkko Sep 15, 2025
58d7ab3
Fix minor typos (#2551)
Abdulhakee33 Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,260 changes: 0 additions & 1,260 deletions .circleci/config.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/ci.yml

This file was deleted.

336 changes: 336 additions & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,336 @@
name: contracts

on:
push:
branches: [ "main" ]
pull_request:

env:
TOOLCHAIN_STABLE: 1.82.0 # toolchain for building contracts in stable channel
TOOLCHAIN_NIGHTLY: nightly-2024-09-01 # toolchain for building contracts in nightly channel for version 1.82.0
TOOLCHAIN_CHECK: 1.88.0 # toolchain for building cosmwasm-check tool

jobs:
stable:
name: ${{ matrix.dir }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
dir: [
burner,
crypto-verify,
cyberpunk,
empty,
hackatom,
ibc2,
ibc-callbacks,
ibc-reflect,
ibc-reflect-send,
nested-contracts,
queue,
reflect,
replier,
staking,
virus
]
defaults:
run:
shell: bash
working-directory: contracts/${{ matrix.dir }}
steps:
- name: Checkout sources
uses: actions/checkout@v5

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.TOOLCHAIN_STABLE }}
targets: wasm32-unknown-unknown
components: clippy, rustfmt

- name: Check formatting
run: cargo fmt -- --check

- name: Run unit tests
run: cargo test --lib --locked

- name: Build WASM binary
run: cargo build --release --lib --locked --target wasm32-unknown-unknown

- name: Run linter
run: cargo clippy --all-targets --tests -- -D warnings

- name: Run integration tests
run: cargo test --test integration --locked

- name: Run schema generator
run: cargo run --bin schema --locked

- name: Ensure schemas are up-to-date
run: git diff --quiet ./schema

- name: Upload WASM binary
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.dir }}-${{ runner.os }}
path: ./contracts/${{ matrix.dir }}/target/wasm32-unknown-unknown/release/*.wasm

nightly:
name: ${{ matrix.dir }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
dir: [ floaty ]
defaults:
run:
shell: bash
working-directory: ./contracts/${{ matrix.dir }}
steps:
- name: Checkout sources
uses: actions/checkout@v5

- name: Install Rust for compiling contracts
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.TOOLCHAIN_NIGHTLY }}
targets: wasm32-unknown-unknown
components: clippy, rustfmt

- name: Check formatting
run: cargo fmt -- --check

- name: Run unit tests
run: cargo test --lib --locked

- name: Build WASM binary
run: RUSTFLAGS="-C target-feature=+nontrapping-fptoint" cargo build --release --lib --locked --target wasm32-unknown-unknown

- name: Run linter
run: cargo clippy --all-targets --tests -- -D warnings

- name: Run integration tests
run: cargo test --test integration --locked

- name: Run schema generator
run: cargo run --bin schema --locked

- name: Ensure schemas are up-to-date
run: git diff --quiet ./schema

- name: Upload WASM binary
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.dir }}-${{ runner.os }}
path: ./contracts/${{ matrix.dir }}/target/wasm32-unknown-unknown/release/*.wasm

chkr:
name: check-rel-${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [ stable, nightly ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout sources
uses: actions/checkout@v5

- name: Install Rust for compiling cosmwasm-check
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.TOOLCHAIN_CHECK }}

- name: Install recently released cosmwasm-check
run: cargo install [email protected]

- uses: actions/download-artifact@v4
with:
name: burner-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: crypto-verify-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: cyberpunk-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: empty-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: floaty-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: hackatom-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc2-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-callbacks-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-reflect-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-reflect-send-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: nested-contracts-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: queue-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: reflect-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: replier-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: staking-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: virus-${{ runner.os }}
path: .

- name: Check contracts
shell: bash
run: cosmwasm-check *.wasm

chkd:
name: check-dev-${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [ stable, nightly ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout sources
uses: actions/checkout@v5

- name: Install Rust for compiling cosmwasm-check
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.TOOLCHAIN_CHECK }}

- name: Install currently developed cosmwasm-check
run: cargo install --path ./packages/check --force

- uses: actions/download-artifact@v4
with:
name: burner-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: crypto-verify-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: cyberpunk-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: empty-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: floaty-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: hackatom-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc2-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-callbacks-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-reflect-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: ibc-reflect-send-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: nested-contracts-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: queue-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: reflect-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: replier-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: staking-${{ runner.os }}
path: .

- uses: actions/download-artifact@v4
with:
name: virus-${{ runner.os }}
path: .

- name: Check contracts
shell: bash
run: cosmwasm-check *.wasm
Loading