difftreelog
ci type package generation script
in: master
8 files changed
tests/scripts/functions.shdiffbeforeafterbothno changes
tests/scripts/generate_types_package.shdiffbeforeafterbothno changes
tests/scripts/types_template/.gitignorediffbeforeafterbothno changes
tests/scripts/types_template/.npmignorediffbeforeafterbothno changes
tests/scripts/types_template/README.mddiffbeforeafterbothno changes
tests/scripts/types_template/package.jsondiffbeforeafterbothno changes
tests/scripts/types_template/tsconfig.jsondiffbeforeafterbothno changes
tests/scripts/wait_for_first_block.shdiffbeforeafterboth1#!/usr/bin/env bash1#!/usr/bin/env bash223function do_rpc {3DIR=$(dirname "$0")4 curl -s --header "Content-Type: application/json" -XPOST --data "{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"$1\",\"params\":[$2]}" $RPC_URL45}5. $DIR/functions.sh667function is_started {7function is_started {8 block_hash_rpc=$(do_rpc chain_getFinalizedHead)9 echo Rpc response = $block_hash_rpc10 block_hash=$(echo $block_hash_rpc | jq -r .result)11 echo Head = $block_hash12 block_id_hex=$(do_rpc chain_getHeader "\"$block_hash\"" | jq -r .result.number)8 block_id_hex=$(do_rpc chain_getHeader | jq -r .result.number)13 block_id=$((${block_id_hex}))9 block_id=$((${block_id_hex}))14 echo Id = $block_id10 echo Id = $block_id15 if (( $block_id > 1 )); then11 if (( $block_id > 1 )); then