Skip to content

Commit e9201af

Browse files
authored
[capricorn] Upgrade to cosmwasm 1.0.0. beta (#48)
* chores: upgrade cosmwasm to v1.0.0-beta * chores: clippy fixes * fix tests, add compiled & optimized contract * feat: add back schema generation * chores: enable rust actions * chores: fix ghaction workdir * fix: ghaction workdir / clippy / fmt * fix: more clippy
1 parent d5c2fa2 commit e9201af

23 files changed

+1123
-578
lines changed

.cargo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./fetch/cosmwasm_contract/.cargo/
Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
48

59
name: Basic
610

711
jobs:
8-
912
test:
1013
name: Test Suite
1114
runs-on: ubuntu-latest
@@ -17,33 +20,28 @@ jobs:
1720
uses: actions-rs/toolchain@v1
1821
with:
1922
profile: minimal
20-
toolchain: 1.43.1
23+
toolchain: 1.56.0
2124
target: wasm32-unknown-unknown
2225
override: true
2326

2427
- name: Run unit tests
2528
uses: actions-rs/cargo@v1
2629
with:
2730
command: unit-test
28-
args: --locked
31+
args: --locked --manifest-path fetch/cosmwasm_contract/Cargo.toml
2932
env:
3033
RUST_BACKTRACE: 1
3134

35+
# this requires the .cargo symlink at project root on fetch/cosmwasm_contract/.cargo
36+
# to work.
3237
- name: Compile WASM contract
3338
uses: actions-rs/cargo@v1
3439
with:
3540
command: wasm
36-
args: --locked
41+
args: --locked --manifest-path fetch/cosmwasm_contract/Cargo.toml
3742
env:
3843
RUSTFLAGS: "-C link-arg=-s"
3944

40-
- name: Run integration tests
41-
uses: actions-rs/cargo@v1
42-
with:
43-
command: integration-test
44-
args: --locked
45-
46-
4745
lints:
4846
name: Lints
4947
runs-on: ubuntu-latest
@@ -55,21 +53,21 @@ jobs:
5553
uses: actions-rs/toolchain@v1
5654
with:
5755
profile: minimal
58-
toolchain: 1.43.1
56+
toolchain: 1.56.0
5957
override: true
6058
components: rustfmt, clippy
6159

6260
- name: Run cargo fmt
6361
uses: actions-rs/cargo@v1
6462
with:
6563
command: fmt
66-
args: --all -- --check
64+
args: --all --manifest-path fetch/cosmwasm_contract/Cargo.toml -- --check
6765

6866
- name: Run cargo clippy
6967
uses: actions-rs/cargo@v1
7068
with:
7169
command: clippy
72-
args: -- -D warnings
70+
args: --manifest-path fetch/cosmwasm_contract/Cargo.toml -- -D warnings
7371

7472
# TODO: we should check
7573
# CHANGES_IN_REPO=$(git status --porcelain)
@@ -78,4 +76,7 @@ jobs:
7876
uses: actions-rs/cargo@v1
7977
with:
8078
command: schema
81-
args: --locked
79+
args: --locked --manifest-path fetch/cosmwasm_contract/Cargo.toml
80+
81+
- name: Check for schema differences
82+
run: git diff --exit-code

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.DS_store
22
*.idea
33
.idea
4+
fetch/bridge.wasm

fetch/bridge.wasm

-273 KB
Binary file not shown.

0 commit comments

Comments
 (0)