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

Changes from upstream #2

Open
wants to merge 2,391 commits into
base: secret
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2391 commits
Select commit Hold shift + click to select a range
33191cb
Fix failing test with RUST_BACKTRACE enabled
chipshort Aug 7, 2024
05f77ed
Merge pull request #2200 from CosmWasm/co/fix-tests-with-backtrace
chipshort Aug 7, 2024
a4f318f
Add changelog entry
chipshort Aug 8, 2024
b48a069
Document CustomMsg
webmaster128 Aug 8, 2024
101ca1f
chore: Release
chipshort Aug 8, 2024
8f8f0ef
Merge pull request #2202 from CosmWasm/document-CustomMsg
webmaster128 Aug 8, 2024
e03585e
Bump module serialization version
chipshort Aug 8, 2024
1a369f8
Fix module version in tests
chipshort Aug 8, 2024
b3e61d4
Add changelog entry
chipshort Aug 8, 2024
6f61673
chore: Release
chipshort Aug 8, 2024
df673aa
Add note about module serialization version to cost function
chipshort Aug 9, 2024
011eddd
Merge branch 'main' into co/add-note-to-cost-fn
chipshort Aug 9, 2024
c917595
Add ibc fee messages
chipshort Jul 23, 2024
481ed6f
Add ibc fee docs
chipshort Jul 30, 2024
fb0ad94
Update schemas
chipshort Jul 30, 2024
77f616a
Add cosmwasm_2_2 feature
chipshort Aug 7, 2024
abba6cf
Add FeeEnabledChannel query
chipshort Aug 7, 2024
d468f76
Update go-gen tests
chipshort Aug 7, 2024
aab668c
Fix tests
chipshort Aug 7, 2024
34a51d1
Update schemas
chipshort Aug 7, 2024
254df54
Set all fees for PayPacketFee example
chipshort Aug 7, 2024
462c97d
Update schema
chipshort Aug 7, 2024
0f0f7d6
Update packages/std/src/query/ibc.rs
chipshort Aug 7, 2024
afa1c45
Adjust docs and naming
chipshort Aug 7, 2024
2485b75
Add changelog entry
chipshort Aug 7, 2024
39e31c1
Bump docs.rs cosmwasm feature
chipshort Aug 9, 2024
d1de10f
Merge pull request #2196 from CosmWasm/co/ibc-fees
chipshort Aug 9, 2024
ac0579f
Merge branch 'main' into co/add-note-to-cost-fn
chipshort Aug 9, 2024
b8f7c9e
Merge pull request #2204 from CosmWasm/co/add-note-to-cost-fn
chipshort Aug 12, 2024
8c41d2a
Add cosmwasm_2_2 to reflect contract
chipshort Aug 12, 2024
79dfe6e
Bump curve25519-dalek to 4.1.3
aumetra Aug 12, 2024
5474235
Bump `zerovec` and `zerovec-derive`
aumetra Aug 12, 2024
9bc9a0e
Fix CI
chipshort Aug 12, 2024
9731358
Update reflect schema
chipshort Aug 12, 2024
e657be9
Merge pull request #2207 from CosmWasm/aw/bump-dalek
aumetra Aug 12, 2024
6f700b0
Merge pull request #2208 from CosmWasm/aw/bump-zerovec
aumetra Aug 12, 2024
abb7f0e
Merge pull request #2209 from CosmWasm/co/reflect-2-2
webmaster128 Aug 12, 2024
541d3ce
Unfinished: Add debug logs to cosmwasm-check
webmaster128 Aug 13, 2024
a939206
Add unit test for cost function
webmaster128 Aug 15, 2024
9a1c80c
Merge pull request #2214 from CosmWasm/unit-test-cost
webmaster128 Aug 15, 2024
7244341
Fix borrowing
chipshort Aug 16, 2024
e0a0d40
Add --verbose flag to cosmwasm-check
chipshort Aug 16, 2024
4202e7f
Fix test lints
chipshort Aug 16, 2024
54d1d3d
Let mock_env return a contract address that is compatible with MockApi
webmaster128 Aug 19, 2024
9284e36
Improve BankQuerier docs
webmaster128 Aug 20, 2024
e925246
Update mock_env and MOCK_CONTRACT_ADDR in cosmwasm-vm
webmaster128 Aug 20, 2024
b74215c
Update packages/std/src/testing/mock.rs
webmaster128 Aug 20, 2024
d20aca7
Merge pull request #2217 from CosmWasm/match-MockApi-mock_env
webmaster128 Aug 20, 2024
0cf1f66
Make Logs log directly
chipshort Aug 22, 2024
eff66a5
Add prefix to cosmwasm-check verbose logger
chipshort Aug 22, 2024
9cca6a8
Fix clippy lint
chipshort Aug 22, 2024
62b6642
Merge pull request #2216 from CosmWasm/co/debug-logs-check
chipshort Aug 22, 2024
ac888d3
Improve verbose output readability
webmaster128 Aug 22, 2024
230d43b
Update packages/check/src/main.rs
webmaster128 Aug 22, 2024
ae0d074
Merge pull request #2213 from CosmWasm/debug-logs-cosmwasm-check
webmaster128 Aug 22, 2024
d7459c3
Add config to vm
chipshort Aug 23, 2024
5b5c7ce
Use wasm limits passed to cache
chipshort Aug 23, 2024
0274354
Upgrade bytes to 1.7.1 (1.6.0 is yanked)
webmaster128 Aug 26, 2024
a2a6b5d
Merge pull request #2221 from CosmWasm/upgrade-bytes
webmaster128 Aug 27, 2024
52ddee7
Add log back in
chipshort Aug 27, 2024
a0f3a33
Rename memory_page_limit
chipshort Aug 28, 2024
234b59a
Rename initial memory limit
chipshort Aug 28, 2024
a9c8066
Add wasm-config flag for cosmwasm-check
chipshort Aug 28, 2024
f73221d
Redirect from GAS.md to docs
webmaster128 Aug 28, 2024
40f63c9
[autofix.ci] apply automated fixes
autofix-ci[bot] Aug 28, 2024
85b8efb
Redirect from PINNING.md to docs
webmaster128 Aug 28, 2024
34cc660
Change cosmwasm-check wasm-config to wasm-limits
chipshort Aug 28, 2024
aee3c52
Fix lint
chipshort Aug 28, 2024
1d7a903
Merge pull request #2225 from CosmWasm/webmaster128-patch-1
webmaster128 Aug 28, 2024
4aadf74
Use JSON for wasm-limits
chipshort Aug 30, 2024
39bdf0d
Bump rmp-serde to ^1.3.0
webmaster128 Sep 2, 2024
9ae47f0
Merge pull request #2228 from CosmWasm/bump-rmp-serde-1.3.0
webmaster128 Sep 2, 2024
66afff8
Apply review feedback
chipshort Sep 2, 2024
9d8bbd2
Add changelog
chipshort Sep 2, 2024
a959a46
Fix compilation errors in tests
chipshort Sep 3, 2024
80f0b7b
Merge pull request #2220 from CosmWasm/co/customizable-limits
chipshort Sep 3, 2024
33ba7c9
Fix test name
chipshort Sep 3, 2024
1d281d4
CosmosMsg::Any doc comment typo
Buckram123 Sep 5, 2024
3a60939
Conditional migrate call with extra MigrateInfo argument after contra…
kulikthebird Sep 5, 2024
ccec965
Show compile time in cosmwasm-check --verbose
webmaster128 Sep 5, 2024
c46974c
Auto-fix schemas
webmaster128 Sep 5, 2024
c64a0f1
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 5, 2024
e230048
Document entry_point in cosmwasm-std instead of derive
webmaster128 Sep 6, 2024
c88d05e
Merge pull request #2245 from CosmWasm/document-entry_point-std
webmaster128 Sep 9, 2024
0a71e98
Merge pull request #2230 from Buckram123/main
chipshort Sep 9, 2024
3b15bfb
Merge pull request #2244 from CosmWasm/check-compile-time
webmaster128 Sep 9, 2024
2725770
Restructure derive crate
aumetra Sep 11, 2024
cdef301
Add packages and CI config
aumetra Sep 11, 2024
c7e2ed3
Implement using only the most high quality linker hacks
aumetra Sep 11, 2024
c7d841a
Revert derive restructure
aumetra Sep 11, 2024
c772667
Regenerate lockfiles
aumetra Sep 11, 2024
6255cc6
Add feature to syn
aumetra Sep 11, 2024
de67ddd
Add a test to verify the hash is actually fixed
aumetra Sep 11, 2024
2d0f2de
Update test
aumetra Sep 11, 2024
8f499f1
Update Confio GmbH copyright years in NOTICE
webmaster128 Sep 12, 2024
9f623aa
Merge pull request #2251 from CosmWasm/webmaster128-patch-1
webmaster128 Sep 12, 2024
66c3370
chore: Add deprecation mark (#2247)
kulikthebird Sep 12, 2024
cc97b19
Comment out VM cache
aumetra Sep 12, 2024
48998bf
Revert "Comment out VM cache"
aumetra Sep 12, 2024
0134b23
Force disable incremental compilation
aumetra Sep 12, 2024
f2ad3b3
println! debugging :P
aumetra Sep 12, 2024
4374ccd
Add changelog entry
chipshort Sep 13, 2024
0230bbb
Merge pull request #2254 from CosmWasm/co/deprecation-changelog
chipshort Sep 13, 2024
017a9ab
Format code using rustfmt before hashing (please don't yell at me for…
aumetra Sep 13, 2024
60cb249
Update hash
aumetra Sep 13, 2024
0cfa86a
Hash in a manual value
aumetra Sep 13, 2024
4dc02fb
Add back constant test
aumetra Sep 13, 2024
4e2c27b
chore: Bump wasmer
kulikthebird Sep 12, 2024
cc1e835
Add typo check to the CI
aumetra Sep 17, 2024
e3f0d9e
Exclude schemas from spell check
aumetra Sep 17, 2024
6422601
Exclude JSON files inside the crypto package
aumetra Sep 17, 2024
c3d133c
Correct some typos
aumetra Sep 17, 2024
004f787
Format GitHub Action
aumetra Sep 17, 2024
bdd78fc
Correct all obvious typos
aumetra Sep 17, 2024
e3623c7
'fo' -> 'foo', 'ba' -> 'bar'
aumetra Sep 17, 2024
794a226
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 17, 2024
47ddd11
Add disable line regex, fix tests
aumetra Sep 17, 2024
1f181c1
Merge pull request #2256 from CosmWasm/aw/typos-ci
aumetra Sep 17, 2024
562a9a7
Deduplicate serde impls for integers
aumetra Sep 18, 2024
0580b99
Merge pull request #2258 from CosmWasm/aw/deduplicate-serde-impl
webmaster128 Sep 18, 2024
d2de4e4
Add messagepack encoding tests for integer types
webmaster128 Sep 18, 2024
2325f3a
Use u8 literal notation
webmaster128 Sep 18, 2024
2834870
Improve serialize/deserialize docs for `UintXXX`/`IntYYY`
webmaster128 Sep 18, 2024
666312e
Merge pull request #2257 from CosmWasm/test-messagepack-encodings
webmaster128 Sep 18, 2024
4cb0d29
Add `taplo` for TOML formatting
aumetra Sep 20, 2024
87e0e60
Remove Rust toolchain install
aumetra Sep 20, 2024
ff3d62d
Featureless entrypoints
aumetra Sep 9, 2024
59cd2e3
Simplify code
aumetra Sep 9, 2024
d649d24
Fix tests
aumetra Sep 9, 2024
f8b7c0a
Add Changelog entry
aumetra Sep 9, 2024
019f3eb
Add empty nested contracts that call each other without feature
aumetra Sep 10, 2024
93e8431
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 10, 2024
3fd818c
Use Rust 1.75
aumetra Sep 10, 2024
9daf516
Mute clippy lint, revert unrelated change
aumetra Sep 10, 2024
3123213
Test contract cleanup
aumetra Sep 10, 2024
16e45c4
Generate schemas
aumetra Sep 10, 2024
9c9ec09
Remove library feature mentions
aumetra Sep 20, 2024
214dc40
Remove manual reading of wasmer version
aumetra Sep 20, 2024
5ad2561
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 20, 2024
c55684c
Get rid of `inventory`
aumetra Sep 20, 2024
4a2ff20
Fix hash
aumetra Sep 20, 2024
90f4571
Remove mention of the impl crate from CI
aumetra Sep 20, 2024
45b4629
Merge pull request #2261 from CosmWasm/aw/taplo-toml
aumetra Sep 23, 2024
82f3567
Merge pull request #2246 from CosmWasm/aw/featureless-entrypoint
aumetra Sep 23, 2024
5f84ac3
Add tests for NonZero types
aumetra Sep 23, 2024
e03e253
Use property tests instead
aumetra Sep 23, 2024
3ccdb76
Format TOML
aumetra Sep 23, 2024
1856990
Merge branch 'main' into tkulik/update_wasmer
chipshort Sep 23, 2024
55406f3
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 23, 2024
6cbf188
Only use proptests
aumetra Sep 23, 2024
5b16205
Merge pull request #2263 from CosmWasm/aw/nonzero-tests
aumetra Sep 23, 2024
faaabb9
Merge pull request #2255 from CosmWasm/tkulik/update_wasmer
chipshort Sep 23, 2024
94a6d3b
Remove the `cranelift` features
aumetra Sep 20, 2024
fa21ba3
Regenerate lockfiles
aumetra Sep 20, 2024
f093eb8
Add back no-op `cranelift` feature
aumetra Sep 23, 2024
dc0cd62
Add changelog entry
aumetra Sep 23, 2024
3a8b7d7
Merge pull request #2260 from CosmWasm/aw/remove-cranelift
aumetra Sep 24, 2024
762264e
Merge branch 'main' into aw/cacher-hasher
aumetra Sep 24, 2024
dde7694
Update doc comment
aumetra Sep 24, 2024
32c505f
Update doc comment
aumetra Sep 24, 2024
69dce2b
Fix doc test
aumetra Sep 24, 2024
9cc784c
Update test
aumetra Sep 24, 2024
01c3c4e
Fix
chipshort Sep 2, 2024
cf413c5
Fix
chipshort Sep 9, 2024
9cb19ed
Remove outdated comment
aumetra Sep 27, 2024
bce8adf
Add changelog entry
aumetra Sep 27, 2024
dfa0c3a
Merge branch 'main' into aw/cacher-hasher
aumetra Sep 27, 2024
74089c7
Update hash
aumetra Sep 27, 2024
b6b0591
Merge pull request #2250 from CosmWasm/aw/cacher-hasher
aumetra Sep 30, 2024
6f0fcc8
Add description to cosmwasm-vm-derive
chipshort Oct 3, 2024
279f035
Add missing Cargo.toml fields
chipshort Oct 3, 2024
d8a776f
chore: Release
chipshort Oct 3, 2024
37126d3
Update optimizer for contracts
chipshort Oct 4, 2024
e551d4d
Fix typo
chipshort Oct 7, 2024
ca69baf
Suppress linter warning
chipshort Oct 7, 2024
cc74d2c
Merge pull request #2275 from CosmWasm/release/2.2
chipshort Oct 7, 2024
234e93e
Merge pull request #2278 from CosmWasm/co/linter-warning
chipshort Oct 7, 2024
96113df
Migrate BLAKE3 to BLAKE2 for easier cross-compilation
aumetra Oct 7, 2024
190794a
I'm a professional
aumetra Oct 7, 2024
ea6c829
Regenerate lockfiles
aumetra Oct 7, 2024
9339902
cargo fmt
aumetra Oct 7, 2024
77c4c3d
Update documentation and names
aumetra Oct 7, 2024
776fbd5
Add bit length of hash to docs
aumetra Oct 7, 2024
be905f3
Merge pull request #2279 from CosmWasm/aw/blake2
chipshort Oct 7, 2024
3fe7015
Add unit to config field names
chipshort Oct 11, 2024
fd1533e
Merge pull request #2282 from CosmWasm/co/wasm-limits-renaming
chipshort Oct 11, 2024
c7e7f38
Add workspace notice to Changelog
aumetra Oct 23, 2024
38a5f34
Update Rust CI version
chipshort Oct 23, 2024
0402335
Merge pull request #2287 from CosmWasm/aw/featureless-changelog
aumetra Oct 23, 2024
ee18ff5
Use upper Rust version to compile hackatom
chipshort Oct 23, 2024
ff1ba89
Add cosmwasm-check fallback for latest version to CI
chipshort Oct 23, 2024
2f822af
Support reference-types proposal
chipshort Oct 23, 2024
849701a
Add changelog entry
chipshort Oct 23, 2024
c5eb22d
Merge pull request #2288 from CosmWasm/co/reference-types
chipshort Oct 24, 2024
130f5a0
Add examples to from_msgpack, to_msgpack_vec and to_msgpack_binary
webmaster128 Oct 25, 2024
e6acdfc
Merge pull request #2291 from CosmWasm/msgpack-examples
chipshort Oct 28, 2024
af9d6cb
Fix typos
chipshort Nov 12, 2024
b5ee955
Merge pull request #2297 from CosmWasm/co/fix-typos
chipshort Nov 12, 2024
55ee235
Fix replacement order
chipshort Nov 22, 2024
38fea3a
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 22, 2024
09f45bc
Disable toml array reordering
chipshort Nov 22, 2024
961abe6
Fix replacement order (again)
chipshort Nov 22, 2024
903f277
fix typo
omahs Nov 26, 2024
1087ee7
fix typo
omahs Nov 26, 2024
a0805f7
fix typo
omahs Nov 26, 2024
9f18a88
fix typos
omahs Nov 26, 2024
350f88e
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 26, 2024
b64f3f5
Fix typos in comment
conr2d Dec 8, 2024
e17ecc4
Merge pull request #2307 from conr2d/fix-typos
chipshort Dec 9, 2024
5f17acd
Add store_code to cache
chipshort Oct 25, 2024
5586190
Add unchecked flag
chipshort Oct 28, 2024
a1ea255
Fix docs and tests
chipshort Oct 28, 2024
c8154ed
Add test for store_code without persisting
chipshort Oct 28, 2024
3d251b3
Add changelog entry
chipshort Dec 10, 2024
dc26305
Only set unset `additionalProperties` fields to `false`
aumetra Dec 12, 2024
86c5223
I'm an expert. I'm allowed to do this
aumetra Dec 12, 2024
fa0f280
Revert "Add changelog entry"
chipshort Dec 16, 2024
d82119e
Revert "Support reference-types proposal"
chipshort Dec 16, 2024
2ea3a7b
Revert "Use upper Rust version to compile hackatom"
chipshort Dec 16, 2024
167fa87
Revert "Update Rust CI version"
chipshort Dec 16, 2024
325e379
Merge pull request #2318 from CosmWasm/co/revert-2288
chipshort Dec 16, 2024
4da538d
Merge pull request #2300 from CosmWasm/co/fix-pre-release-replacements
chipshort Dec 16, 2024
c8b633e
chore: Replies test contract (#2306)
kulikthebird Dec 20, 2024
55dce8f
typo fix addresses.rs
Hack666r Dec 31, 2024
9fa9ad3
typos conversion.rs
Marcofann Jan 4, 2025
32f1aa3
typo README.md
Marcofann Jan 4, 2025
7817073
typo README.md
Marcofann Jan 4, 2025
7f16760
typos msgpack.rs
Marcofann Jan 4, 2025
0aab1be
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 6, 2025
b8d3d72
Update contracts/reflect/README.md
chipshort Jan 6, 2025
27e9629
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 6, 2025
720370b
Merge pull request #2326 from Marcofann/fix/typos
chipshort Jan 6, 2025
123d414
Merge pull request #2325 from Hack666r/Fix-typo
chipshort Jan 6, 2025
a529f63
Fix typos
chipshort Jan 6, 2025
7c035e2
Merge pull request #2303 from omahs/patch-2
chipshort Jan 6, 2025
90193e6
Update CHANGELOG.md
aumetra Jan 6, 2025
a0f2cdf
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 6, 2025
c9220c2
Merge pull request #2310 from CosmWasm/aw/fix-additional-properties
chipshort Jan 6, 2025
354042c
Merge 2.2 changelog
chipshort Jan 6, 2025
49dc2e0
Add other release branch changelog entries to main
chipshort Jan 6, 2025
b90347a
Update SEMANTICS.md
samdotola Jan 7, 2025
1781e92
Update README.md
samdotola Jan 7, 2025
675034e
Update MIGRATING.md
samdotola Jan 7, 2025
6e98a68
Merge pull request #2328 from CosmWasm/co/merge-changelogs
chipshort Jan 7, 2025
2e23bfb
Merge pull request #2327 from CosmWasm/co/fix-typos
chipshort Jan 7, 2025
5ca0f71
Update MIGRATING.md
samdotola Jan 7, 2025
78ed6e2
Update README.md
samdotola Jan 7, 2025
c0a12a1
Update README.md
samdotola Jan 7, 2025
aacf4c0
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 8, 2025
17707be
Merge pull request #2330 from samdotola/main
chipshort Jan 8, 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,074 changes: 554 additions & 520 deletions .circleci/config.yml

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:

permissions:
contents: read

jobs:
autofix-text:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "oldstable"

- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Install npx (for prettier)
run: sudo apt install nodejs

- name: Format Markdown
run: ./devtools/format_md.sh
- name: Format YAML
run: ./devtools/format_yml.sh
- name: Format Shell
run: ./devtools/format_sh.sh

# Get latest version from https://autofix.ci/setup
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

autofix-schemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update schemas
run: ./devtools/update_schemas.sh

# Get latest version from https://autofix.ci/setup
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

autofix-toml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install taplo
run: |
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
- run: |
taplo fmt

# Get latest version from https://autofix.ci/setup
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml → .github/workflows/contract.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Contract Development
name: Contract

# Pushes to long living branches and all PRs
on:
Expand Down Expand Up @@ -29,14 +29,12 @@ jobs:
working-directory: ./contracts/hackatom
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.59.0
target: wasm32-unknown-unknown
profile: minimal
override: true
toolchain: 1.74.0
targets: wasm32-unknown-unknown
- name: Build hackatom wasm
run: cargo wasm --locked
- name: Unit Test hackatom
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/toml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "TOML checks"

on:
merge_group:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
fmt-check:
name: "Formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install taplo
run: |
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
- run: |
taplo fmt
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
exit 1
fi
19 changes: 19 additions & 0 deletions .github/workflows/typo-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check for typos

on:
merge_group:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
check-typos:
name: "Spell-check repository source"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run spell-check
uses: crate-ci/typos@master
43 changes: 43 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Workspace

# Check workspace build on merge commit of all PRs.
# Branches are checked better by CircleCI.
on:
pull_request:

env:
RUST_BACKTRACE: 1

jobs:
check-workspace:
name: Check workspace
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.74.0
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- name: "Cache build artifacts"
uses: Swatinem/rust-cache@v2
- name: Check workspace
run: ./devtools/check_workspace.sh

test-workspace:
name: Test workspace
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.74.0
components: rustfmt
- name: "Cache build artifacts"
uses: Swatinem/rust-cache@v2
- name: Test workspace
run: ./devtools/test_workspace.sh
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ target/
artifacts/

# IDEs
.vscode/
.idea/
*.iml

Expand All @@ -18,3 +17,4 @@ artifacts/

# Log files (e.g. memory profiling)
*.log
dhat-heap.json
44 changes: 33 additions & 11 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,49 @@ pull_request_rules:
- "#approved-reviews-by>=1"
- base=main
- label=automerge
- -draft
- label!=WIP
# We need to list them all individually. Here is why: https://doc.mergify.io/conditions.html#validating-all-status-check
- "status-success=ci/circleci: package_crypto"
- "status-success=ci/circleci: package_schema"
- "status-success=ci/circleci: package_std"
- "status-success=ci/circleci: package_storage"
- "status-success=ci/circleci: package_vm"
# We need to list them all individually. Here is why: https://docs.mergify.com/conditions/#validating-all-status-checks
# Also make sure to update this when the CI names change
- "status-success=macOS"
- "status-success=Windows"
- "status-success=ci/circleci: arm64"
- "status-success=ci/circleci: clippy-1.67.0"
- "status-success=ci/circleci: clippy-1.68.2"
- "status-success=ci/circleci: contract_burner"
- "status-success=ci/circleci: contract_crypto_verify"
- "status-success=ci/circleci: contract_cyberpunk"
- "status-success=ci/circleci: contract_floaty"
- "status-success=ci/circleci: contract_hackatom"
- "status-success=ci/circleci: contract_hackatom"
- "status-success=ci/circleci: contract_ibc_reflect"
- "status-success=ci/circleci: contract_ibc_reflect_send"
- "status-success=ci/circleci: contract_floaty"
- "status-success=ci/circleci: contract_queue"
- "status-success=ci/circleci: contract_reflect"
- "status-success=ci/circleci: contract_staking"
- "status-success=ci/circleci: contract_virus"
# disabled temporarily because Rust version is too low
# - "status-success=ci/circleci: coverage"
- "status-success=ci/circleci: fmt"
- "status-success=ci/circleci: clippy-1.54.0"
- "status-success=ci/circleci: clippy-1.58.1"
- "status-success=Windows"
- "status-success=macOS"
- "status-success=ci/circleci: fmt_extra"
- "status-success=ci/circleci: package_check"
- "status-success=ci/circleci: package_crypto"
- "status-success=ci/circleci: package_schema"
- "status-success=ci/circleci: package_schema_derive"
- "status-success=ci/circleci: package_std"
- "status-success=ci/circleci: package_vm"
- "status-success=ci/circleci: package_vm_windows"
actions:
merge:
method: merge
- name: backport PRs to minor version branch
conditions:
- base=main
- label=backport
actions:
backport:
branches:
# Update this when going to a new minor version
- "release/1.4"
assignees:
- "{{ author }}"
2 changes: 2 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[formatting]
indent_string = " "
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rust-analyzer.cargo.features": [
"abort",
"stargate",
"staking",
"cosmwasm_2_1"
]
}
Loading