Skip to content

Commit

Permalink
GET_PEER
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 7, 2024
1 parent fbe772b commit e393f4a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions local-interchain/bash/source.bash
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,14 @@ QUERY() {

# todo: info request curl -G -d "chain_id=localjuno-1" -d "request=peer" http://127.0.0.1:8080/info

GET_PEER() {
API=$1
CHAIN_ID=$2

if [[ $API != */info ]]; then
API="$API/info"
fi

curl -G -d "chain_id=$CHAIN_ID" -d "request=peer" $API
}

9 changes: 6 additions & 3 deletions local-interchain/bash/test.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
source ./source.bash
# source <(curl -s https://github.com/strangelove-ventures/interchaintest/tree/main/local-interchain/bash/source.bash)

QUERY http://127.0.0.1:8080/ "localjuno-1" "bank total"
# QUERY http://127.0.0.1:8080/ "localjuno-1" "bank total"
# MAKE_REQUEST http://127.0.0.1:8080 "localjuno-1" "q" "bank total"


FAUCET_REQUEST "http://localhost:8080" "localjuno-1" "7" "juno10r39fueph9fq7a6lgswu4zdsg8t3gxlq670lt0"
QUERY http://127.0.0.1:8080/ "localjuno-1" "bank balances juno10r39fueph9fq7a6lgswu4zdsg8t3gxlq670lt0"
# FAUCET_REQUEST "http://localhost:8080" "localjuno-1" "7" "juno10r39fueph9fq7a6lgswu4zdsg8t3gxlq670lt0"
# QUERY http://127.0.0.1:8080/ "localjuno-1" "bank balances juno10r39fueph9fq7a6lgswu4zdsg8t3gxlq670lt0"


GET_PEER http://127.0.0.1:8080 "localjuno-1"

0 comments on commit e393f4a

Please sign in to comment.