Skip to content

Commit 01a538e

Browse files
authored
Merge pull request #225 from timewave-computer/v2
Merge v2 branch into main
2 parents 65f26c4 + 8ad0b9a commit 01a538e

File tree

387 files changed

+59502
-5701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+59502
-5701
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
command: wasm
6969
args: --locked
7070
env:
71-
RUSTFLAGS: "-C link-arg=-s"
71+
RUSTFLAGS: "-C link-arg=-s"
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
name: interchaintest
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
pull_request:
8+
push:
9+
10+
env:
11+
GO_VERSION: 1.21
12+
13+
jobs:
14+
compile-contracts:
15+
name: compile wasm contract with workspace-optimizer
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: checkout sources
19+
uses: actions/checkout@v3
20+
21+
- name: install latest cargo nightly toolchain
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
profile: minimal
25+
toolchain: 1.71.0
26+
target: wasm32-unknown-unknown
27+
override: true
28+
29+
- uses: actions/setup-node@v3
30+
with:
31+
node-version: 18
32+
33+
- name: install tar for cache
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install tar
37+
38+
- name: set up cargo cache
39+
uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.cargo/registry/bin/
43+
~/.cargo/registry/index/
44+
~/.cargo/registry/cache/
45+
~/.cargo/git/db/
46+
target/
47+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
48+
49+
- name: build artifacts
50+
timeout-minutes: 40
51+
run: |
52+
docker run --rm -v "$(pwd)":/code \
53+
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
54+
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
55+
cosmwasm/workspace-optimizer:0.14.0
56+
57+
- name: upload contracts
58+
uses: actions/upload-artifact@v3
59+
with:
60+
name: contracts
61+
path: artifacts/
62+
63+
swap-covenant:
64+
needs: compile-contracts
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: checkout repository
68+
uses: actions/checkout@v3
69+
70+
- uses: actions/download-artifact@v3
71+
with:
72+
name: contracts
73+
path: artifacts/
74+
75+
- name: Set up Go ${{ env.GO_VERSION }}
76+
uses: actions/setup-go@v4
77+
with:
78+
go-version: ${{ env.GO_VERSION }}
79+
80+
- name: setup just
81+
uses: extractions/setup-just@v1
82+
83+
- name: swap covenant
84+
run: mkdir interchaintest/swap/wasms && cp -R artifacts/*.wasm interchaintest/swap/wasms && just local-e2e swap TestTokenSwap
85+
86+
# todo: figure out how to run ci with custom stride image
87+
# single-party-pol-covenant:
88+
# needs: compile-contracts
89+
# runs-on: ubuntu-latest
90+
# steps:
91+
# - name: checkout repository
92+
# uses: actions/checkout@v3
93+
94+
# - uses: actions/download-artifact@v3
95+
# with:
96+
# name: contracts
97+
# path: artifacts/
98+
99+
# - name: Set up Go ${{ env.GO_VERSION }}
100+
# uses: actions/setup-go@v4
101+
# with:
102+
# go-version: ${{ env.GO_VERSION }}
103+
104+
# - name: setup just
105+
# uses: extractions/setup-just@v1
106+
107+
# - name: single party pol covenant
108+
# run: mkdir interchaintest/single-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/single-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/single-party-pol/wasms && just local-e2e single-party-pol
109+
110+
111+
two-party-pol-covenant:
112+
needs: compile-contracts
113+
runs-on: ubuntu-latest
114+
steps:
115+
- name: checkout repository
116+
uses: actions/checkout@v3
117+
118+
- uses: actions/download-artifact@v3
119+
with:
120+
name: contracts
121+
path: artifacts/
122+
123+
- name: Set up Go ${{ env.GO_VERSION }}
124+
uses: actions/setup-go@v4
125+
with:
126+
go-version: ${{ env.GO_VERSION }}
127+
128+
- name: setup just
129+
uses: extractions/setup-just@v1
130+
131+
- name: two party POL native & interchain parties
132+
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyNativePartyPol
133+
134+
- name: two party POL two interchain parties
135+
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyPol
136+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ target/
1717
.cargo-ok
1818

1919
# Build artifacts
20-
*.wasm
2120
hash.txt
2221
contracts.txt
2322
artifacts/
23+
interchaintest/**/wasms/*.wasm
2424

2525
# code coverage
2626
tarpaulin-report.*

0 commit comments

Comments
 (0)