Skip to content

Commit

Permalink
update reference to yui-relayer, and add yrly query in handshake test
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Kanda <[email protected]>
  • Loading branch information
dai1975 committed Aug 13, 2024
1 parent 1ecf9c0 commit 352a35f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ replace (
require (
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.8
github.com/datachainlab/ibc-hd-signer v0.1.0
github.com/hyperledger-labs/yui-relayer v0.5.5
github.com/hyperledger-labs/yui-relayer v0.5.6
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,8 @@ github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXM
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
github.com/hyperledger-labs/yui-relayer v0.5.5 h1:nllPganMKibTbPyVP6aflpoQyEXKCCNR14SHeZhL5MM=
github.com/hyperledger-labs/yui-relayer v0.5.5/go.mod h1:GeCb1dtZjtQdkBNw1L9+LAUHzNQQhQK+kkoOnZYffw0=
github.com/hyperledger-labs/yui-relayer v0.5.6 h1:AG0mIhi56o2MkY/HAgCQDCCymAnSEK2QaS5S04Iytyc=
github.com/hyperledger-labs/yui-relayer v0.5.6/go.mod h1:GeCb1dtZjtQdkBNw1L9+LAUHzNQQhQK+kkoOnZYffw0=
github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI=
github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
Expand Down
11 changes: 11 additions & 0 deletions tests/cases/eth2eth/scripts/handshake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ source ${SCRIPT_DIR}/util/relayer-util
# handshake
set -x
$RLY tx clients $PATH_NAME
$RLY query client $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query client $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

$RLY tx update-clients $PATH_NAME
$RLY query client $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query client $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

$RLY tx connection $PATH_NAME
$RLY query connection $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query connection $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

$RLY tx channel $PATH_NAME
$RLY query channel $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query channel $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'
set +x
8 changes: 8 additions & 0 deletions tests/cases/tm2tm/scripts/handshake
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,13 @@ retry 5 $RLY tendermint light init $CHAINID_TWO -f
$RLY paths add $CHAINID_ONE $CHAINID_TWO $PATH_NAME --file=./configs/path.json

retry 5 $RLY tx clients $PATH_NAME
$RLY query client $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query client $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

retry 5 $RLY tx connection $PATH_NAME
$RLY query connection $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query connection $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

retry 5 $RLY tx channel $PATH_NAME
$RLY query channel $PATH_NAME $CHAINID_ONE 2>/dev/null | jq -Rs 'fromjson'
$RLY query channel $PATH_NAME $CHAINID_TWO 2>/dev/null | jq -Rs 'fromjson'

0 comments on commit 352a35f

Please sign in to comment.