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

feat: add polytone #169

Merged
merged 14 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ ibc-hooks:
- modules/ibc-hooks/**

packet-forward-middleware:
- middleware/packet-forward-middleware/**
- middleware/packet-forward-middleware/**

polytone:
- cosmwasm/polytone/**
92 changes: 92 additions & 0 deletions .github/workflows/polytone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: polytone
on:
pull_request:
paths:
- 'cosmwasm/polytone/**'
- '.github/workflows/polytone.yml'

env:
WORKING_DIRECTORY: cosmwasm/polytone
JUST_VERSION: 1.25.2
GO_VERSION: 1.19

jobs:
clippy_check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ${{env.WORKING_DIRECTORY}}/Cargo.toml

# This utility formats all bin and lib files of the current crate using rustfmt.
rust_fmt:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
- name: Run cargo fmt
run: cargo fmt --all -- --check

build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Get cached just
uses: actions/cache@v3
with:
path: ~/.cargo/bin/just
key: ${{ runner.os }}-just-${{ env.JUST_VERSION }}

- name: Install just
run: cargo install just || true

- name: simulation tests
run: just simtest

test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path ${{env.WORKING_DIRECTORY}}/Cargo.toml
5 changes: 5 additions & 0 deletions cosmwasm/polytone/.cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[advisories]
# Ignoring two advisories that are introduced by cw-orchestrator.
# They are safe to ignore as cw-orch is excluded from the binary as it's feature flagged.
# Deps that triggered the audit: [tungstenite, webpki]
ignore = ["RUSTSEC-2023-0065","RUSTSEC-2023-0052"]
36 changes: 36 additions & 0 deletions cosmwasm/polytone/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# macOS
.DS_Store

# Text file backups
**/*.rs.bk

# Build results
target/

# IDEs
.vscode/
.idea/
*.iml
**/.editorconfig

# Auto-gen
.cargo-ok

# Build artifacts
*.wasm
hash.txt
contracts.txt
artifacts/

# code coverage
tarpaulin-report.*

# integration tests
gas_reports/
ci/configs/cosm-orc/local.yaml

contracts/**/Cargo.lock
packages/**/Cargo.lock

# Private env file
.env
Loading
Loading