forked from scalalang2/cosmfaucet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: set up for 2 chains with relayer
- Loading branch information
1 parent
8ad3717
commit 047f78e
Showing
7 changed files
with
111 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.19-alpine3.15 AS builder | ||
|
||
WORKDIR /src/ | ||
|
||
ENV BRANCH=v2.0.0-rc3 | ||
|
||
RUN apk add --update git make gcc linux-headers libc-dev eudev-dev | ||
RUN git clone https://github.com/cosmos/relayer.git \ | ||
&& cd relayer \ | ||
&& git checkout $BRANCH \ | ||
&& make install | ||
|
||
FROM alpine:3.15 | ||
COPY --from=builder /go/bin/rly /usr/local/bin/ | ||
|
||
RUN apk add bash vim \ | ||
&& addgroup -g 1000 relayer \ | ||
&& adduser -S -h /home/relayer -D relayer -u 1000 -G relayer | ||
|
||
RUN mkdir -p /home/relayer/.relayer \ | ||
&& chown -R relayer:relayer /home/relayer | ||
|
||
USER 1000 | ||
WORKDIR /home/relayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
global: | ||
api-listen-addr: :5183 | ||
timeout: 10s | ||
memo: "" | ||
light-cache-size: 20 | ||
chains: | ||
cosmos: | ||
type: cosmos | ||
value: | ||
key: gaia-key | ||
chain-id: gaia | ||
rpc-addr: http://testchain-1:26657/ | ||
account-prefix: cosmos | ||
keyring-backend: test | ||
gas-adjustment: 1.2 | ||
gas-prices: 0.01uatom | ||
debug: false | ||
timeout: 20s | ||
output-format: json | ||
sign-mode: direct | ||
juno: | ||
type: cosmos | ||
value: | ||
key: juno-key | ||
chain-id: juno | ||
rpc-addr: http://testchain-2:26657/ | ||
account-prefix: cosmos | ||
keyring-backend: test | ||
gas-adjustment: 1.2 | ||
gas-prices: 0.01ujuno | ||
debug: false | ||
timeout: 20s | ||
output-format: json | ||
sign-mode: direct | ||
paths: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# restore keys | ||
rly keys restore cosmos gaia-key "reopen throw concert garment wash slab jump company habit father below stage float attitude achieve net charge bulb mouse mind fat net hello vague" | ||
rly keys restore juno juno-key "predict lonely oxygen category agent wait legend quarter often six liquid search panic panther chuckle glow alone detail bike below dust marriage throw pause" | ||
|
||
# create client, connection and transfer channels | ||
rly paths new gaia juno test_path | ||
rly transact link test_path | ||
|
||
# start relayer | ||
rly start test_path -p events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters