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

Sync/feat substrate main merge #1016

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fcc70cd
Merge PR #919: Clean up and move scripts folder and dev-env
boojamya Aug 19, 2022
53eeddf
Use self-hosted runner for ibctest integration tests (#943)
agouin Aug 23, 2022
323e4b3
bugfix - intermittent channel handshake failure (#937)
agouin Aug 23, 2022
e4cabf9
Adding MinGasAmount (#940)
joeabbey Aug 24, 2022
ebcbfda
Merge PR #953: cosmos - begin and end block event parsing
agouin Aug 26, 2022
91182c9
Fix nil pointer for begin/end block events (#956)
agouin Aug 27, 2022
830b5b9
Fix bug with tracking processing channel msgs (#970)
jtieri Sep 4, 2022
ffc46dc
Merge PR #974: Clarify demo
boojamya Sep 7, 2022
aa8f256
Merge PR #963: Additional Metrics
joeabbey Sep 9, 2022
bf044c6
Merge PR #981: Update IBCdata struct
JeremyParish69 Sep 10, 2022
d8f7914
Fix flattening of events (#979)
agouin Sep 12, 2022
c3db790
Fix unnecessary retention of irrelevant messages (#980)
agouin Sep 12, 2022
e051649
Merge PR #987: Use config.lock file to guard access to config.yaml in…
agouin Sep 15, 2022
d020d3e
ignore recv packet with empty ack bytes (#985)
agouin Sep 15, 2022
1bcaef3
Relay multiple paths from the same process (#988)
agouin Sep 16, 2022
ef5a768
Default to events processor (#989)
agouin Sep 16, 2022
a4206f0
sort packet messages by sequence number (#992)
agouin Sep 19, 2022
2c2c6a7
path processor race (#995)
agouin Sep 20, 2022
be7e027
Use in process Relayer for race detection (#996)
agouin Sep 20, 2022
6a27190
Merge PR #999: Add ability to run all paths in config easil
jackzampolin Sep 23, 2022
15840b7
Merge PR #1005: Fix legacy race condition
agouin Sep 23, 2022
5db81ab
fix counterparty path filter (#1000)
agouin Sep 23, 2022
1d97390
dockerfile: move TARGET* args for fast workflow & ... (#993)
pratikbin Sep 26, 2022
5ac3f63
Respect the `override` flag upon client creation (#997)
jtieri Sep 27, 2022
66e260b
disable CountTotal (#1009)
agouin Sep 30, 2022
25897a2
Fix account sequence mismatch errors (#1007)
agouin Oct 3, 2022
4c38ee1
Keystore implementation for substrate chain (#922)
oshorefueled Aug 22, 2022
a9c366b
feat: add chain processor implementation (#924)
TxCorpi0x Aug 30, 2022
aca1cae
feature/ implement substrate event parser (#923)
TxCorpi0x Sep 14, 2022
3659244
fix: go.mod
TxCorpi0x Oct 11, 2022
8ab8669
Merge branch 'feat-substrate' into sync/feat-substrate-main-merge
TxCorpi0x Oct 11, 2022
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
48 changes: 45 additions & 3 deletions .github/workflows/ibctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
events:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
Expand All @@ -27,8 +27,50 @@ jobs:
${{ runner.os }}-go-

- name: ibctest
run: make ibctest-docker-events
run: make ibctest-events
legacy:
runs-on: self-hosted
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go

- name: checkout relayer
uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: ibctest
run: make ibctest-legacy
multiple-paths:
runs-on: self-hosted
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go

- name: checkout relayer
uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: ibctest
run: make ibctest-multiple
path-filter:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
Expand All @@ -48,4 +90,4 @@ jobs:
${{ runner.os }}-go-

- name: ibctest
run: make ibctest-docker-legacy
run: make ibctest-path-filter
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build/
data/
examples/demo/data
coverage.out
release.tar.gz
.env
Expand All @@ -15,6 +15,7 @@ test/keys/
_test/setup/valkeys/*.json
_test/keys/
.DS_Store
.vscode/

# Don't commit the vendor directory if anyone runs 'go mod vendor'.
/vendor
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [\#467](https://github.com/cosmos/relayer/pull/467) cli: UX cleanup for tx commands
* [\#466](https://github.com/cosmos/relayer/pull/466) Docs cleanup.
* [\#506](https://github.com/cosmos/relayer/pull/506) Fix Timeout Handling on Relayer restart
* [\#940](https://github.com/cosmos/relayer/pull/940) Add min-gas-amount parameter for chain configs, to workaround gas estimation failure.

## v0.9.3

Expand Down
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@ FROM --platform=$BUILDPLATFORM golang:1.18-alpine as BUILD

WORKDIR /relayer

ARG TARGETARCH
ARG TARGETOS

# Update and install needed deps prioir to installing the binary.
RUN apk update && \
apk --no-cache add make git build-base
apk --no-cache add make git build-base

# Copy go.mod and go.sum first and download for caching go modules
COPY go.mod go.mod
COPY go.sum go.sum
COPY go.mod go.sum ./

RUN go mod download

# Copy the files from host
COPY . .

RUN export GOOS=${TARGETOS} GOARCH=${TARGETARCH} && \
make install
ARG TARGETARCH TARGETOS
ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH}
RUN make install

FROM alpine:latest

Expand Down
36 changes: 13 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ ibctest-docker-events:
ibctest-docker-legacy:
cd ibctest && go test -race -v -run TestRelayerDockerLegacyProcessor .

ibctest-events:
cd ibctest && go test -race -v -run TestRelayerEventProcessor .

ibctest-legacy:
cd ibctest && go test -race -v -run TestRelayerLegacyProcessor .

ibctest-multiple:
cd ibctest && go test -race -v -run TestRelayerMultiplePathsSingleProcess .

ibctest-path-filter:
cd ibctest && go test -race -v -run TestPathFilter .

coverage:
@echo "viewing test coverage..."
@go tool cover --html=coverage.out
Expand All @@ -96,28 +108,6 @@ get-gaia:
@git clone --branch $(GAIA_VERSION) --depth=1 https://github.com/cosmos/gaia.git ./chain-code/gaia

build-gaia:
@./scripts/build-gaia

build-akash:
@./scripts/build-akash

get-akash:
@mkdir -p ./chain-code/
@git clone --branch $(AKASH_VERSION) [email protected]:ovrclk/akash.git ./chain-code/akash

get-chains: get-gaia get-akash get-wasmd

get-wasmd:
@mkdir -p ./chain-code/
@git clone --branch $(WASMD_VERSION) [email protected]:CosmWasm/wasmd.git ./chain-code/wasmd

build-wasmd:
@./scripts/build-wasmd

build-chains: build-akash build-gaia build-wasmd

delete-chains:
@echo "Removing the ./chain-code/ directory..."
@rm -rf ./chain-code
@./examples/demo/scripts/build-gaia

.PHONY: two-chains test test-integration ibctest install build lint coverage clean
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Additional information on how IBC works can be found [here](https://ibc.cosmos.n
```shell
$ rly paths list
$ rly start [path]
# Optionally you can omit the `path` argument to start all configured paths
$ rly start
```

You will need to start a separate shell instance for each path you wish to relay over.
Expand Down
Loading