Skip to content

Commit

Permalink
v0.45.15-ics-onomy provider upgrade (#146)
Browse files Browse the repository at this point in the history
* Remove Gravity module

* Update go.mod

* go vendor and recheck

* fixes

* ignore onomyd binaries

* updates

* add provider module

* update to use github link

* Version 1.1.0

* Use evmos upgrade strategy

* fix chain upgrade problem

* remove old tests

* introduce super_orchestrator based test system

* Create .gitignore

* add ics_with_interchain_security_cd

* working without changes needed to consumer example

* use "native" token

* refactoring chain ids

* build consumer in dockerfile

* faster block times in tests

* Update ci.yml

* fix test on CI

* add chain_upgrade test

* Version 1.1.1

* Update chain_upgrade.rs

* add README

* add go unit tests to ci.yml

* go mod tidy

* use ICS v1.1.0-multiden

This is the version used on Gaia, we do not want to use a version without some fixes on the battle tested line.

* use v0.45.16-ics-onomy

* fmt
  • Loading branch information
AaronKutch committed Jun 15, 2023
1 parent d0cb6f2 commit cb18c9e
Show file tree
Hide file tree
Showing 79 changed files with 3,607 additions and 73,943 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
go-version: ^1.19
id: go

- name: Checkout code
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/bridge.yml

This file was deleted.

65 changes: 56 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ on:
branches:
- 'dev'
- 'main'

pull_request:
branches:
- 'dev'
- 'main'

jobs:
ci:
test_suite:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.19
id: go
- name: Install Rust components
run: |
rustup set profile minimal
rustup default stable
- name: Checkout
uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
Expand All @@ -28,6 +31,50 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: CI
- name: test suite
# TODO there is some unused stuff we need to fix or remove
# make all-in-docker
run: |
go test ./...
cargo r --bin onomyd_only
cargo r --bin ics_with_interchain_security_cd
cargo r --bin chain_upgrade
cargo r --bin clean
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Acquire the most recent nightly with a rustfmt component
- name: Install most recent Rustfmt
run: |
make all-in-docker
rustup set profile minimal
rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt)"
rustup component add rustfmt
- name: Run `cargo fmt`
run: |
cargo fmt -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Acquire the most recent nightly with a clippy component
- name: Install most recent Clippy
run: |
rustup set profile minimal
rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)"
rustup component add clippy
- name: Run `cargo clippy`
run: |
cargo clippy --all --all-targets --all-features -- -D clippy::all
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/[email protected]
with:
folder-path: "docs"
35 changes: 0 additions & 35 deletions .github/workflows/integration-tests.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/markdown-link.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/tm-load-test.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ release/
/.idea/
*.iml
*.tar.gz

onomyd
/tmp-swagger-gen/
/target
Cargo.lock
20 changes: 20 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# this was made for rustfmt 1.4.37-nightly (fdf65053 2021-09-07)

condense_wildcard_suffixes = true # better
error_on_line_overflow = true # be more strict
error_on_unformatted = true # be more strict
format_code_in_doc_comments = true # needed
format_macro_bodies = true # changed
format_macro_matchers = true # changed
format_strings = true # better
ignore = []
imports_granularity = "Crate" # changed
match_arm_blocks = true # needed
newline_style = "Unix" # prevents `\r\n` being accidentally introduced
overflow_delimited_expr = true # preferred
reorder_impl_items = true # better
group_imports = "StdExternalCrate" # promotes consistency
trailing_semicolon = false # the keyword is explicit enough
unstable_features = true
use_field_init_shorthand = true # better
wrap_comments = true # enforce the default comment_width
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[workspace]
resolver = "2"
members = [
"tests",
]

[patch.crates-io]
Loading

0 comments on commit cb18c9e

Please sign in to comment.