Skip to content

Commit

Permalink
add transfer token scripts to go-relayer and ts-relayer (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored Apr 3, 2024
1 parent 6256495 commit f0a544e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/devnet/templates/relayers/go-relayer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ spec:
DENOM="{{ $fullchain.denom }}"
RLY_ADDR=$(rly address "{{ $fullchain.name }}" | awk 'END{print}')
echo "Relayer address $RLY_ADDR on {{ $fullchain.name }} chain with denom $DENOM"
echo "Transfer tokens to address $RLY_ADDR"
bash -e /scripts/transfer-tokens.sh \
$RLY_ADDR \
$DENOM \
http://{{ $fullchain.hostname }}-genesis.$NAMESPACE.svc.cluster.local:8000/credit \
"{{ $fullchain.faucet.enabled }}" || true
{{- end }}
PATHEND="{{ index $relayer.chains 0 }}-{{ index $relayer.chains 1 }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/devnet/templates/relayers/ts-relayer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ spec:
DENOM="{{ $fullchain.denom }}"
RLY_ADDR=$(ibc-setup keys list | grep "{{ $fullchain.name }}" | awk '{print $2}')
echo "Relayer address $RLY_ADDR"
echo "Transfer tokens to address $RLY_ADDR"
bash -e /scripts/transfer-tokens.sh \
$RLY_ADDR \
$DENOM \
http://{{ $fullchain.hostname }}-genesis.$NAMESPACE.svc.cluster.local:8000/credit \
"{{ $fullchain.faucet.enabled }}" || true
{{- end }}
if [ $RLY_INDEX -eq 0 ]; then
Expand Down

0 comments on commit f0a544e

Please sign in to comment.