Skip to content

Commit 1eee824

Browse files
Merged unbonding mirror
2 parents 8277d56 + 414034a commit 1eee824

File tree

23 files changed

+6190
-482
lines changed

23 files changed

+6190
-482
lines changed

.github/workflows/tests.yml

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
override: true
3838
- name: Install cargo-tarpaulin
3939
run: cargo install cargo-tarpaulin --version 0.29.1
40-
- run: cargo tarpaulin --verbose --exclude-files "packages/*" --exclude-files "*/proto/*"
40+
- run:
41+
cargo tarpaulin --exclude-files "packages/*" --exclude-files "*/proto/*"
4142
--exclude-files "contracts/price-provider/*" --exclude-files
4243
"contracts/auto-withdrawer/*" --exclude-files
4344
"contracts/hook-tester/*" --exclude-files
4445
"contracts/astroport-exchange-handler/*" --exclude-files
4546
"contracts/proposal-votes-poc/*" --exclude-files
4647
"contracts/rewards-manager/*" --exclude-files
47-
"contracts/puppeteer-authz/*" --exclude-files
4848
"contracts/validators-stats/*" --exclude-files
4949
"contracts/provider-proposals-poc/*" --exclude-files
5050
"contracts/redemption-rate-adapter/*" --exclude-files "*schema*" --out
@@ -55,7 +55,7 @@ jobs:
5555
path: ./cobertura.xml
5656
threshold: 45
5757
fail: true
58-
publish: false
58+
publish: true
5959
diff: false
6060
coverage-summary-title: Code Coverage Summary
6161
rustfmt:
@@ -153,6 +153,51 @@ jobs:
153153
with:
154154
path: artifacts
155155
key: ${{ runner.os }}-${{ github.sha }}
156+
test-unbonding-mirror:
157+
name: test:unbonding-mirror Integration Tests
158+
needs:
159+
- images-prepare
160+
- artifacts-prepare
161+
runs-on: ubicloud-standard-4
162+
steps:
163+
- name: Upgrade docker compose to use v2
164+
run: sudo curl -L
165+
"https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname
166+
-s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x
167+
/usr/local/bin/docker-compose
168+
- uses: actions/checkout@v4
169+
with:
170+
fetch-depth: 1
171+
- name: Setup node
172+
uses: actions/setup-node@v4
173+
with:
174+
node-version: 20.12.2
175+
- name: Install Yarn
176+
run: npm install -g yarn
177+
- name: Log in to Private Registry
178+
uses: docker/login-action@v3
179+
with:
180+
username: ${{ secrets.DOCKER_USER }}
181+
password: ${{ secrets.DOCKER_TOKEN }}
182+
- name: Clean volumes
183+
run: docker volume prune -f
184+
- name: Download images
185+
run: |
186+
cd integration_tests
187+
yarn build-images
188+
- name: Download artifacts
189+
uses: actions/cache@v4
190+
with:
191+
path: artifacts
192+
key: ${{ runner.os }}-${{ github.sha }}
193+
- name: Run test test:unbonding-mirror
194+
run: cd integration_tests && yarn && yarn test:unbonding-mirror
195+
- name: Cleanup resources
196+
if: always()
197+
run: |
198+
docker stop -t0 $(docker ps -a -q) || true
199+
docker container prune -f || true
200+
docker volume rm $(docker volume ls -q) || true
156201
test-core:
157202
name: test:core Integration Tests
158203
needs:
@@ -288,8 +333,8 @@ jobs:
288333
docker stop -t0 $(docker ps -a -q) || true
289334
docker container prune -f || true
290335
docker volume rm $(docker volume ls -q) || true
291-
test-mirror:
292-
name: test:mirror Integration Tests
336+
test-bond-mirror:
337+
name: test:bond-mirror Integration Tests
293338
needs:
294339
- images-prepare
295340
- artifacts-prepare
@@ -325,8 +370,8 @@ jobs:
325370
with:
326371
path: artifacts
327372
key: ${{ runner.os }}-${{ github.sha }}
328-
- name: Run test test:mirror
329-
run: cd integration_tests && yarn && yarn test:mirror
373+
- name: Run test test:bond-mirror
374+
run: cd integration_tests && yarn && yarn test:bond-mirror
330375
- name: Cleanup resources
331376
if: always()
332377
run: |

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[workspace]
22
resolver = "2"
33
members = [
4+
"contracts/unbonding-mirror",
45
"contracts/auto-withdrawer",
56
"contracts/core",
67
"contracts/distribution",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
schema = "run --bin drop-unbonding-mirror-schema"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[package]
2+
authors = ["Vladislav Vasilev <[email protected]>"]
3+
description = "Contract for unbonding mirror logic"
4+
edition = "2021"
5+
name = "drop-unbonding-mirror"
6+
version = "1.0.0"
7+
8+
[lib]
9+
crate-type = ["cdylib", "rlib"]
10+
11+
[features]
12+
library = []
13+
14+
[dependencies]
15+
cosmwasm-std = { workspace = true }
16+
neutron-sdk = { workspace = true }
17+
neutron-std = { workspace = true }
18+
drop-staking-base = { workspace = true }
19+
cw2 = { workspace = true }
20+
cw-ownable = { workspace = true }
21+
drop-helpers = { workspace = true }
22+
thiserror = { workspace = true }
23+
semver = { workspace = true }
24+
cw-storage-plus = { workspace = true }
25+
cosmwasm-schema = { workspace = true }
26+
cw-utils = { workspace = true }
27+
bech32 = { workspace = true }
28+
cw721 = { workspace = true }
29+
serde-json-wasm = { workspace = true }
30+
prost = { workspace = true }
31+
prost-types = { workspace = true }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Drop Unbonding Mirror
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use cosmwasm_schema::write_api;
2+
3+
use drop_unbonding_mirror::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};
4+
5+
fn main() {
6+
write_api! {
7+
instantiate: InstantiateMsg,
8+
query: QueryMsg,
9+
execute: ExecuteMsg,
10+
migrate: MigrateMsg
11+
}
12+
}

0 commit comments

Comments
 (0)