-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tilt: add ibc relayer which connects wormchain and terra2 to dev envi…
…ronment - updates terra2 devnet chain timeout_commit to "1s" since the timeout_commit of "0.5s" is too fast and leads to Terra2's clock going into the future. - updates terra2 devnet chain unbonding_time to "1814400s" which is the default value and translates to a valid trusting period for IBC connectivity.
- Loading branch information
Showing
12 changed files
with
153 additions
and
2 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 @@ | ||
notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius |
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,51 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: ibc-relayer | ||
name: ibc-relayer | ||
spec: | ||
ports: | ||
- name: rest | ||
port: 7597 | ||
protocol: TCP | ||
selector: | ||
app: ibc-relayer | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
labels: | ||
app: ibc-relayer | ||
name: ibc-relayer | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: ibc-relayer | ||
template: | ||
metadata: | ||
labels: | ||
app: ibc-relayer | ||
spec: | ||
containers: | ||
- name: ibc-relayer | ||
image: ibc-relayer-image | ||
command: | ||
- rly | ||
- transact | ||
- link-then-start | ||
- terra-wormchain | ||
- --debug-addr | ||
- localhost:7597 | ||
ports: | ||
- containerPort: 7597 | ||
name: rest | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
port: 7597 | ||
path: / | ||
periodSeconds: 1 | ||
restartPolicy: Always | ||
serviceName: ibc-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
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 @@ | ||
barrel eager leaf heart runway bridge crowd warm refuse anxiety blur rain desert good hill prison dune oyster abuse owner bless trash talk wheat |
1 change: 1 addition & 0 deletions
1
wormchain/build/keyring-test/ab160bb354a3f97d209831b9b383668db64f76ca.address
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 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMS0wNiAxNToyNzoxMS42MTQ4MDk0MDQgKzAwMDAgVVRDIG09KzAuMDg3MDY4NjYzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoicG42OVRJeE8wQ19aQkN1aiJ9.ZKxjML28R42dsEVy3QkGdTIqXYwtnwGINdZogK7CQSE6Hn1Rtxj1eA.3CgXMxCZ-nebt9GA.BuiYeWJnkRPRxLrJqFq5ZFsxksZ5A-YgvDxKK0g-ZwNzldrKT_gKV05s8TA1Qfq_bHLIAsK-iQRkbXln1IxgPhaX9PqN8Ov43pxlE3_xdk4gw2hkSlRDf1OdQ6G7XSM3Cdixc8slopC2ve58A82f5tBB1f94j7BhZ6hpqsabQNYzg-8JU_AaTyhjnv4YS35ANAdzxmCpHLCbq8CV4nx_DjFhiN5nDUltD9C02UTOuT5V82I0HLDeyaxh7jI7jA.UkodXyu2G6TDFxfE26z5Zw |
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 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMS0wNiAxNToyNzoxMS42MDcwMDIyNzYgKzAwMDAgVVRDIG09KzAuMDc5MjYxNTM1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibVdJWGd2aXpvd0FrSWhZdyJ9.E__rUpYMIWWoNwrz9qxjKaeeL-l51jS2C29z4i0rE5_aRfeE9F4p6Q.Q5JZRDmXqlBMRksv.rSrvtuNaVJYqo3zn3CL4gORPGZKmrCr07JCXMP2NlZ25MwTuU1Ct7tujgHEgI2_nBHHzIAlptMmhpRFChgaeoezl2DrLnDfj9eKlBd3TNZtrErwPBcSeRyda0JuHfeTSeqV0wcsyvNuhej4qjcMpHvCuabV-prFU7WsLxuXNAZzR3rwiBzMuADr0q6IiJm5kgqhYSCnQ0OBh7bttMaIPQ8lhrejK0HArYNOx1cRWiJjallqy6H_e7OLpcDltjdjgB0pSegwGENT8kQ9Q0U4orJeoL4x7SR75YJwEUdVS2-Ez-_1ZkhQYBncR4MkBGrGX5hAng21nOHbtZq7RMo9jnqdue8lUvUTho9ml2gH3bZzuqUnc8o8.E4GGzFAjRvZrciDXlWjZaA |
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 docker.io/golang:1.19.0@sha256:4c00329e17be6fedd8bd4412df454a205348da00f9e0e5d763380a29eb096b75 | ||
|
||
#used for a readiness probe | ||
RUN apt-get update | ||
RUN apt install -y netcat | ||
RUN apt install -y jq | ||
|
||
WORKDIR /app | ||
|
||
RUN curl -OL --ssl https://github.com/cosmos/relayer/archive/c30b8d9e0ba6b45f8a576f768cad0777de545cb3.tar.gz | ||
RUN printf '%s %s\n' "ede065997ee5873b6256748662fb93cd2652f45cb19937b7e6873ecc088109d9" "c30b8d9e0ba6b45f8a576f768cad0777de545cb3.tar.gz" | sha256sum --check | ||
RUN tar xzf c30b8d9e0ba6b45f8a576f768cad0777de545cb3.tar.gz | ||
WORKDIR relayer-c30b8d9e0ba6b45f8a576f768cad0777de545cb3 | ||
RUN make install | ||
|
||
COPY ./wormchain/ibc-relayer/chains /chains | ||
|
||
RUN rly config init | ||
RUN rly chains add-dir /chains | ||
RUN rly keys restore localterra default "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius" --coin-type 330 | ||
RUN rly keys restore wormchain default "barrel eager leaf heart runway bridge crowd warm refuse anxiety blur rain desert good hill prison dune oyster abuse owner bless trash talk wheat" | ||
RUN rly paths new localterra wormchain terra-wormchain | ||
|
||
EXPOSE 7597 |
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,16 @@ | ||
{ | ||
"type": "cosmos", | ||
"value": { | ||
"key": "default", | ||
"chain-id": "localterra", | ||
"rpc-addr": "http://terra2-terrad:26657", | ||
"account-prefix": "terra", | ||
"keyring-backend": "test", | ||
"gas-adjustment": 1.2, | ||
"gas-prices": "1uluna", | ||
"debug": true, | ||
"timeout": "20s", | ||
"output-format": "json", | ||
"sign-mode": "direct" | ||
} | ||
} |
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,16 @@ | ||
{ | ||
"type": "cosmos", | ||
"value": { | ||
"key": "default", | ||
"chain-id": "wormchain", | ||
"rpc-addr": "http://guardian-validator:26657", | ||
"account-prefix": "wormhole", | ||
"keyring-backend": "test", | ||
"gas-adjustment": 1.2, | ||
"gas-prices": "0.01utest", | ||
"debug": true, | ||
"timeout": "20s", | ||
"output-format": "json", | ||
"sign-mode": "direct" | ||
} | ||
} |