Skip to content

Commit

Permalink
feat: add standalone relayer commands (ignite#709)
Browse files Browse the repository at this point in the history
* feat: add standalone relayer commands

* fix linter errs + cosmetics

* rm good old relayer

* fix tests

* rm leftovers from the old relayer

* support Gitpod for faucet discovery

* scaffold: enable faucet by default

* fix Gitpod faucet discovery

* silence relayer so `relayer start` can link multiple chains in parallel
without getting their logs mixed with each other.

undo replace directive in go.mod after
cosmos/relayer#402 has merged.

* link chains in parallel in the relayer start cmd

* docs

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* rm faucet.coins_max

* use bob for the faucet

* back to cosmos/relayer

* add cancelation for start cmd

* refactor & add features: relayer commands

* rename `relayer connect` to `relayer configure`.
* rename `relayer start` to `relayer start`.
* auto relay packets between chains via `relayer start` command.
* improve logs/docs show account balances, port and channel ids.
* add gracefull command cancelation.
* only allow to print important relayer logs.
* link and start paths in parallel.

* fix test + lint

* attach original rly to 'starport relayer rly'

depends on cosmos/relayer#411.

* cmd docs

* upgrade relayer

* ensure secure rpc addr always has :443 attached

* rm path from rpc addr

* fix xurl.CleanPath

* fix config

* simplify errors

* inc timeout for integration tests

* fix conflicting statik

* rm parallelism from tests that serves an app

integration tests sometimes fails, this might be due to high cpu usage.
let's see if this will fix it.

* fix install script

* docs

* docs+cosmetics

* add conf alias to config command

* fix docs

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
  • Loading branch information
ilgooz and lumtis committed Feb 9, 2021
1 parent 1357e47 commit e8e7a40
Show file tree
Hide file tree
Showing 51 changed files with 14,897 additions and 1,079 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
- name: Set up packr2
run: go get -u github.com/gobuffalo/packr/v2/packr2

- name: Set up relayer
run: git clone https://github.com/cosmos/relayer && cd relayer && git checkout ba17c4db185229d9354187a8b9723097ab527261 && make install

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/test-relayer.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ tasks:
mkdir -p $BIN_PATH
(cd /workspace/starport && ./scripts/install)
# install rly
(cd /tmp && git clone https://github.com/cosmos/relayer && cd relayer && git checkout ba17c4db185229d9354187a8b9723097ab527261 && make -C /tmp/relayer install)
command: |
export VUE_APP_CUSTOM_URL=$(gp url)
export CHISEL_ADDR=$(gp url 7575)
Expand Down
24 changes: 11 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ require (
github.com/Pallinder/go-randomdata v1.2.0
github.com/briandowns/spinner v1.11.1
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/cosmos/cosmos-sdk v0.40.0-rc3
github.com/cosmos/go-bip39 v0.0.0-20200817134856-d632e0d11689
github.com/cosmos/cosmos-sdk v0.41.0
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/relayer v1.0.0-rc1.0.20210205103857-f4b56856caeb
github.com/dariubs/percent v0.0.0-20200128140941-b7801cf1c7e2
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/fatih/color v1.9.0
github.com/fatih/color v1.10.0
github.com/gertd/go-pluralize v0.1.7
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/go-git/go-git/v5 v5.1.0
Expand All @@ -20,8 +21,7 @@ require (
github.com/gobuffalo/plush v3.8.3+incompatible
github.com/gobuffalo/plushgen v0.1.2
github.com/goccy/go-yaml v1.8.0
github.com/google/go-cmp v0.5.2 // indirect
github.com/gookit/color v1.2.7
github.com/gookit/color v1.3.6
github.com/gorilla/mux v1.8.0
github.com/grpc-ecosystem/go-grpc-middleware v1.2.2
github.com/imdario/mergo v0.3.11
Expand All @@ -32,7 +32,7 @@ require (
github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76
github.com/olekukonko/tablewriter v0.0.4
github.com/otiai10/copy v1.4.2
github.com/pelletier/go-toml v1.8.0
github.com/pelletier/go-toml v1.8.1
github.com/pkg/errors v0.9.1
github.com/radovskyb/watcher v1.0.7
github.com/rakyll/statik v0.1.7
Expand All @@ -41,18 +41,16 @@ require (
github.com/rs/cors v1.7.0
github.com/spf13/cobra v1.1.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.7.0
github.com/tendermint/spn v0.0.0-20201215081711-b9ec9286ed83
github.com/tendermint/tendermint v0.34.0-rc6
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
github.com/tendermint/tendermint v0.34.3
golang.org/x/mod v0.4.1
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf // indirect
google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154 // indirect
google.golang.org/grpc v1.33.0
gopkg.in/yaml.v2 v2.3.0
google.golang.org/grpc v1.35.0
)

replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4

replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4
Loading

0 comments on commit e8e7a40

Please sign in to comment.