Skip to content

Commit

Permalink
feat: add standalone relayer commands (#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>
Former-commit-id: 80941cfa2a43df15e06176682748aa3967c63d87
  • Loading branch information
ilgooz and lumtis authored Feb 9, 2021
1 parent 7f8bd92 commit cbb0952
Show file tree
Hide file tree
Showing 52 changed files with 14,891 additions and 1,088 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 cbb0952

Please sign in to comment.