Skip to content

Changes from upstream #2

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

Open
wants to merge 2,712 commits into
base: secret
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2712 commits
Select commit Hold shift + click to select a range
078b853
Extend BLS12-381 documentation a bit
aumetra Feb 10, 2025
05d2da0
Move ProposalValidator outside of function
chipshort Feb 10, 2025
8b9697e
Merge pull request #2375 from CosmWasm/aw/bls12_381-docs
aumetra Feb 10, 2025
4fe18ab
Add changelog entry
chipshort Feb 10, 2025
f93e5aa
Merge pull request #2374 from CosmWasm/co/wasmer-update
chipshort Feb 10, 2025
7a04eee
Add compiler error for incorrect entry_point macro usage
chipshort Feb 11, 2025
f5e7223
Improve comment and error message
chipshort Feb 11, 2025
dcc7b16
Update test
chipshort Feb 11, 2025
27f5835
Merge pull request #2376 from CosmWasm/co/add-migrate-error
chipshort Feb 11, 2025
5bfbf5c
cargo update
chipshort Feb 12, 2025
fc71716
Fix tests
chipshort Feb 12, 2025
e7c5e77
Merge pull request #2377 from CosmWasm/co/cargo-update
chipshort Feb 12, 2025
f0bbcac
Add gas cost
chipshort Jan 23, 2025
415702e
Add gas cost for write_region
chipshort Feb 4, 2025
5349bbc
Fix tests
chipshort Feb 5, 2025
4c5e28b
Add changelog entries
chipshort Feb 13, 2025
95600bc
Merge pull request #2378 from CosmWasm/co/patch-on-main
chipshort Feb 13, 2025
1f40410
Add section length test
chipshort Sep 9, 2024
55290a1
Merge pull request #2379 from CosmWasm/co/cwa-2024-008-test
chipshort Feb 14, 2025
7af2aa4
Simplify cpu loop
chipshort Aug 1, 2024
bffd254
Add cpu loop benchmark
chipshort Aug 1, 2024
d27b25c
Fix clippy lints
chipshort Aug 2, 2024
cb1f0e0
Add cost function docs
chipshort Feb 14, 2025
804e113
Merge pull request #2380 from CosmWasm/co/metering-benchmark
chipshort Feb 14, 2025
583a37b
Implement downcasting for `Api` trait
chipshort Feb 18, 2025
0ccabc7
Update contract lockfiles
chipshort Feb 18, 2025
74f2680
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 18, 2025
40ec41d
Add changelog entry
chipshort Feb 19, 2025
1ca93a4
Merge pull request #2383 from CosmWasm/co/downcast-api
chipshort Feb 19, 2025
9f5651c
Add EurekaPort to ContractInfoResponse
jawoznia Feb 19, 2025
cd490f4
Ensure make_compiler_config returns singlepass
webmaster128 Feb 19, 2025
1f90ec6
Remove cranelift feature
webmaster128 Feb 19, 2025
0ff2e21
Merge pull request #2387 from CosmWasm/bye-cranelift
webmaster128 Feb 19, 2025
fad74c5
Remove outdated schema files
webmaster128 Feb 19, 2025
64876bd
Merge pull request #2388 from CosmWasm/cleanup-json
webmaster128 Feb 20, 2025
91fb36e
Fix typos
chipshort Feb 20, 2025
ac8339a
Merge pull request #2389 from CosmWasm/co/fix-typos
chipshort Feb 20, 2025
176d70d
Update CHANGELOG
jawoznia Feb 20, 2025
a2d85bf
Add missing link to CHANGELOG
jawoznia Feb 20, 2025
5b2480d
Fix field name in changelog
chipshort Feb 20, 2025
961bdd8
Merge pull request #2386 from CosmWasm/contract-info-eureka-port
chipshort Feb 20, 2025
3d42638
Remove from_slice, from_binary, to_vec and to_binary
webmaster128 Feb 20, 2025
85f74a5
Use to_json_string instead of to_json_vec for easier equality check
webmaster128 Feb 21, 2025
616cff4
Merge pull request #2392 from CosmWasm/rm-deprecated
chipshort Feb 21, 2025
86d0d88
Update MIGRATING.md
rnkrtt Feb 27, 2025
87f6b8c
Fix spelling errors in multiple files (#2396)
vipocenka Feb 28, 2025
df00fb7
Add missing wasm-debug alias to nested-contracts
webmaster128 Feb 19, 2025
0bbb324
Remove schemars dependency from cosmwasm-vm
webmaster128 Mar 3, 2025
03e23ee
Update contract lockfiles
webmaster128 Feb 19, 2025
d2edbc1
Remove JsonSchema requirement from CustomMsg
webmaster128 Feb 19, 2025
33902cb
Use schemars::JsonSchema consistently
webmaster128 Feb 19, 2025
739317b
Merge pull request #2385 from CosmWasm/optional-schemars
webmaster128 Mar 3, 2025
e195817
Fix coverage job
chipshort Feb 20, 2025
b352db0
Update MIGRATING.md
rnkrtt Mar 4, 2025
dd6ad3c
Merge pull request #2397 from Guayaba221/patch-1
webmaster128 Mar 4, 2025
3d55e51
Fix
chipshort Mar 3, 2025
2041b60
Fix flags
chipshort Mar 4, 2025
da133ba
Merge pull request #2391 from CosmWasm/co/fix-coverage
chipshort Mar 6, 2025
8ce31d1
Let Int256::new take an i128 argument
webmaster128 Mar 3, 2025
bb326f8
Let Int512::new take an i128 argument
webmaster128 Mar 3, 2025
9029248
Let Uint256::new take an u128 argument
webmaster128 Mar 3, 2025
5558178
Let Uint512::new take an u128 argument
webmaster128 Mar 3, 2025
0e66e9d
Add links to ticket #2367
webmaster128 Mar 3, 2025
aebbf97
Add example to Decimal::new / Decimal256::new using the new Uint256::new
webmaster128 Mar 4, 2025
cf27b32
Also adds #[inline] to the trivial decimal constructors
webmaster128 Mar 4, 2025
0978e4c
Add example for SignedDecimal::new and SignedDecimal256::new
webmaster128 Mar 4, 2025
a9aadf7
Deprecate {Decimal,Decimal256,SignedDecimal,SignedDecimal256}::raw
webmaster128 Mar 4, 2025
8538b9c
Use grow_be_int to write sign extension code more compact
webmaster128 Mar 6, 2025
497d75b
Add #[must_use] to constructors
webmaster128 Mar 6, 2025
77661a2
Deprecate Uint256::from_u128 and Int256::from_i128
webmaster128 Mar 6, 2025
adad747
Merge pull request #2399 from CosmWasm/new-argument
chipshort Mar 6, 2025
fcc2d41
Update Cargo.toml
VolodymyrBg Mar 8, 2025
be9a7e5
Update README.md
VolodymyrBg Mar 8, 2025
e240f16
feat: IBCv2 receive packet entrypoint (#2403)
kulikthebird Mar 11, 2025
036107b
Add info about ibc_v2 entrypoint to AnalysisReport (#2401)
jawoznia Mar 6, 2025
8d12645
Rename ibcv2 to ibc2
jawoznia Mar 11, 2025
2a9ee69
Update CHANGELOG-pre1.0.0.md
rnkrtt Mar 11, 2025
e50d39d
Merge pull request #2402 from CosmWasm/jawoznia/feat/ibcv2_analysis_r…
jawoznia Mar 11, 2025
ea62466
Move `MemoryStorage` to `cosmwasm_std::testing::MockStorage`
webmaster128 Mar 11, 2025
a66c0b6
Merge pull request #2407 from Guayaba221/patch-1
webmaster128 Mar 11, 2025
039795d
Merge pull request #2405 from VolodymyrBg/BT1899AE
webmaster128 Mar 17, 2025
55c5e8c
Merge pull request #2408 from CosmWasm/memory-to-mock
webmaster128 Mar 17, 2025
39b6bcf
Remove unused env from coins example code
webmaster128 Mar 12, 2025
c116ddb
Remove mock_info
webmaster128 Mar 17, 2025
4a38542
Merge pull request #2409 from CosmWasm/rm-mock_info
webmaster128 Mar 17, 2025
0390607
Remove abort feature
webmaster128 Mar 17, 2025
161628c
Merge pull request #2410 from CosmWasm/rm-abort-feature
webmaster128 Mar 17, 2025
206d886
Use serde_json instead of serde_json_wasm
webmaster128 Mar 17, 2025
1d05880
Bump serde_json to latest version 1.0.140
webmaster128 Mar 17, 2025
d712de9
Update contracts
webmaster128 Mar 17, 2025
82102c3
Add CHANGELOG entry Replace dependency `serde-json-wasm` with `serde_…
webmaster128 Mar 17, 2025
aeb4b59
Update floaty too
webmaster128 Mar 17, 2025
fec43fd
Fix expected gas value
webmaster128 Mar 17, 2025
195d35f
Bump minimum CW version to 1.5 in CI
aumetra Mar 17, 2025
19a22c2
Merge pull request #2420 from CosmWasm/avoid-serde_json_wasm
webmaster128 Mar 17, 2025
92b2bdb
Make `GovMsg` `#[non_exhaustive]` for consistency
webmaster128 Mar 18, 2025
914a716
Update MIGRATING.md
Pronoss Mar 18, 2025
802c737
Update cosmos_msg.rs
Pronoss Mar 18, 2025
f8e3373
Merge pull request #2426 from CosmWasm/GovMsg-non_exhaustive
webmaster128 Mar 18, 2025
9328a0d
Remove `serde-json-wasm` mention from README.md
aumetra Mar 18, 2025
56c3164
Merge pull request #2429 from CosmWasm/aw/remove-serde-json-wasm
aumetra Mar 18, 2025
5947710
Upgrade ark-* dependencies to 0.5.0
webmaster128 Mar 20, 2025
dc70bf3
Merge pull request #2432 from CosmWasm/ark-0.5
webmaster128 Mar 20, 2025
f68e4d3
Rename contract variables to the name of the contract and make them s…
webmaster128 Mar 24, 2025
75e1301
Merge pull request #2436 from CosmWasm/rename-contracts
webmaster128 Mar 24, 2025
57c9ee0
Add ibc callbacks entrypoints to enum
chipshort Mar 24, 2025
ec3b4e4
Test call_migrate and call_migrate_with_info against old hackatom
webmaster128 Mar 24, 2025
b0f16ae
Change testdata/hackatom.wasm from link to copy
webmaster128 Mar 24, 2025
76a267a
Add changelog entry
chipshort Mar 25, 2025
d665ac9
Merge pull request #2438 from CosmWasm/co/ibc-callbacks-entrypoint-enum
chipshort Mar 25, 2025
d9f14f8
Merge pull request #2437 from CosmWasm/migrate-with-old-hackatom
webmaster128 Mar 25, 2025
5b036c3
Disable core coverage for now
aumetra Mar 25, 2025
5a89c21
Fix CI config
aumetra Mar 25, 2025
bd9a788
Merge pull request #2439 from CosmWasm/aw/disable-core-coverage
aumetra Mar 25, 2025
7403247
Editorconfig: use 4 spaces for .toml indent
webmaster128 Mar 25, 2025
3f0ee5c
Update burner contract to take a list of denoms
webmaster128 Mar 20, 2025
960fc2c
Remove BankQuery::AllBalances, AllBalanceResponse and query_all_balances
webmaster128 Mar 20, 2025
a26befa
Remove usage of BankQuery::AllBalances from reflect test
webmaster128 Mar 20, 2025
f9f3feb
Avoid the all_balances query in hackathon
webmaster128 Mar 20, 2025
8e8471b
Remove usage of query_all_balances from ibc-reflect
webmaster128 Mar 20, 2025
8d864e8
Update build instructions for VM testdata
webmaster128 Mar 25, 2025
3c4fea4
Unlink ibc_reflect.wasm and hackatom.wasm; recompile them
webmaster128 Mar 25, 2025
6e3dcd1
Adapt tests to new realities
webmaster128 Mar 24, 2025
ff9533c
Adaot gas values to recompiled contract
webmaster128 Mar 25, 2025
d1bd2b2
Add CHANGELOG entry
webmaster128 Mar 25, 2025
22458ad
Add cosmwasm capabilities to --available-capabilities in custom_capab…
webmaster128 Mar 25, 2025
23f6870
Adapt example code
webmaster128 Mar 25, 2025
dd69623
Ignore files from typecheck in CI
webmaster128 Mar 25, 2025
56157cf
Merge pull request #2440 from CosmWasm/toml-indent_size
webmaster128 Mar 25, 2025
c4fe2fb
Use contains instead of any in compatibility check
Fallengirl Apr 1, 2025
34702fe
Add raw entrypoint and message definition
aumetra Apr 7, 2025
9ffe156
Format code
chipshort Apr 7, 2025
6c602d1
Merge pull request #2444 from Fallengirl/main
chipshort Apr 7, 2025
102b07a
[autofix.ci] apply automated fixes
autofix-ci[bot] Apr 8, 2025
784ebdc
Merge pull request #2427 from Pronoss/fix/update
chipshort Apr 8, 2025
740439d
feat(query): Introduce non-breaking changes to handle nullable data s…
BigtoC Mar 14, 2025
021e495
chore(fmt): Code formatting
BigtoC Mar 14, 2025
7b45e5a
doc(comment): Add code comments
BigtoC Mar 15, 2025
ccd6b3e
chore(crate): Fix struct imports
BigtoC Mar 15, 2025
93a793b
Rollback changes
BigtoC Mar 28, 2025
ad98e4b
refactor(metadata): Add deserializer for denom_units and aliases to h…
BigtoC Mar 28, 2025
6feefbc
feat(metadata): Add test
BigtoC Mar 28, 2025
c3e6a69
chore(fmt): Fix code format
BigtoC Mar 28, 2025
1da7920
chore(Cargo): Downgrade Cargo.lock version from 4 to 3
BigtoC Mar 28, 2025
05f03c4
Rollback cyberpunk test related codes
BigtoC Mar 29, 2025
ae4d13a
feat(metadata): add unit and integration tests for DenomMetadata hand…
BigtoC Mar 29, 2025
7894e62
fix(metadata): update test comments to reflect error handling for mis…
BigtoC Apr 7, 2025
e38227b
Delete redundant test
BigtoC Apr 7, 2025
baa1026
Delete redundant test
BigtoC Apr 7, 2025
526ed26
Delete redundant test
BigtoC Apr 7, 2025
f8d8a81
Delete redundant test
BigtoC Apr 7, 2025
caa093d
chore(test): Move all unit tests to test module
BigtoC Apr 8, 2025
58c57b2
Add changelog entry
chipshort Apr 9, 2025
f3236ad
Merge pull request #2445 from CosmWasm/feature/nullable-denom-metadat…
chipshort Apr 9, 2025
84ba4d2
Send `Ibc2Msg::SendPacket` in ibc2 contract (#2418)
jawoznia Mar 14, 2025
97329bf
Review fixes
jawoznia Apr 10, 2025
69cb551
chore: fix some comments (#2404)
laterlaugh Apr 10, 2025
5a3998d
Merge pull request #2428 from CosmWasm/jawoznia/test/ibc2-send-packet…
jawoznia Apr 10, 2025
6d635bf
feat: Add WriteAcknowledgement to Ibc2Msg (#2425)
kulikthebird Apr 11, 2025
526b24f
fix: Remove the workaround (#2449)
kulikthebird Apr 14, 2025
c5b7e57
hand out bumps ot the cosmwasm crew
faddat Apr 17, 2025
5c4a893
Update cosmos_msg.rs (#2452)
zeroprooff Apr 18, 2025
a5deb27
chore: source_client instead of channel_id in IBCv2 (#2450)
kulikthebird Apr 18, 2025
12c927d
Merge pull request #2433 from CosmWasm/all-balances
chipshort Apr 23, 2025
f3b840a
Fix benchmark capabilities
chipshort Apr 23, 2025
6a13fe5
Remove non-existant capability
chipshort Apr 23, 2025
6118854
Add cosmwasm_2_2 description
chipshort Apr 23, 2025
5912134
Merge pull request #2455 from CosmWasm/co/fix-benchmark
chipshort Apr 23, 2025
8985e54
Merge pull request #2451 from faddat/faddat/bumps
chipshort Apr 24, 2025
5ce24c7
Replace downcast-rs with Rust 1.86 casting
chipshort Apr 24, 2025
2214822
Adjust changelog entries
chipshort Apr 24, 2025
c8e9314
Remove downcasting helper
chipshort Apr 24, 2025
520004e
Merge pull request #2457 from CosmWasm/co/downcast_api
chipshort Apr 24, 2025
b394ad6
Use Uint256 for Coin amount
chipshort Apr 10, 2025
f11c063
Fix staking contract
chipshort Apr 25, 2025
3cc434a
Update schemas
chipshort Apr 25, 2025
cca9d7f
Fix doctests
chipshort Apr 25, 2025
b1ddb79
Fix go-gen
chipshort Apr 25, 2025
4d88475
[autofix.ci] apply automated fixes
autofix-ci[bot] Apr 25, 2025
1870e16
Add changelog entry
chipshort Apr 25, 2025
649dd84
Update ed25519.rs
davidjsonn Apr 26, 2025
b249170
Remove comment
chipshort Apr 28, 2025
c44ce2b
Copy doctests for contains_only
chipshort Apr 28, 2025
f89d63b
Merge pull request #2459 from davidjsonn/main
chipshort Apr 28, 2025
d6527b0
Merge pull request #2458 from CosmWasm/co/uint256-coin
chipshort Apr 28, 2025
14287eb
feat: Add IBCv2 timeout entrypoint (#2454)
kulikthebird Apr 29, 2025
ce7212a
chore: remove HasIBC2EntryPoints
ThanhNhann Apr 30, 2025
3a6f753
make cargo fmt feel better
ThanhNhann Apr 30, 2025
2dee287
chore: Update CHANGELOG (#2464)
kulikthebird Apr 30, 2025
985b6f4
Merge branch 'main' into aw/ibcv2-ack-recv
aumetra Apr 30, 2025
e15a624
chore: update check response
ThanhNhann May 2, 2025
62eb64a
Undo unnecessary type annotation
chipshort May 2, 2025
63cc0b6
Merge pull request #2465 from ThanhNhann/remove_HasIBC2EntryPoints
chipshort May 2, 2025
9e016c7
Test all values of mock_env
webmaster128 Apr 7, 2025
b8500ca
Create `Envs`, a factory for making mock `Env`s
webmaster128 Mar 26, 2025
4e78fa6
Make block_time variable and iterate until overflow
webmaster128 Apr 7, 2025
473a163
Add EnvsOptions to make block_time, initial_height, initial_time, cha…
webmaster128 Apr 7, 2025
613033d
Make EnvsOptions fields pub
webmaster128 Apr 7, 2025
9e92648
Remove unnecessary envs_produced
webmaster128 Apr 30, 2025
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
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,167 changes: 635 additions & 532 deletions .circleci/config.yml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ insert_final_newline = true
[*.rs]
indent_size = 4

[*.toml]
indent_size = 4 # For compliance with our taplo config

[*.py]
indent_size = 4
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.81.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
28 changes: 28 additions & 0 deletions .github/workflows/typo-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
- id: files
uses: tj-actions/changed-files@v46
with:
files_ignore: |
contracts/**/schema/**
packages/crypto/**/*.json
packages/vm/**/*.wasm
- name: Run spell-check
uses: crate-ci/typos@master
with:
files: ${{ steps.files.outputs.all_changed_files }}
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.81.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.81.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
45 changes: 34 additions & 11 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,50 @@ 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_ibc2"
- "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": [
"ibc2",
"stargate",
"staking",
"cosmwasm_2_1"
]
}
Loading