Skip to content

Commit

Permalink
setup-grest.sh: Bump koios release version to v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jan 6, 2025
1 parent 9661833 commit d5e27bd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set TESTING
id: set_testing
run: |
echo "testing=${{ github.event_name == 'push' && (steps.vars.outputs.branch != 'master' || needs.set_environment_vars.outputs.guild_deploy_branch == 'docker-alpha') || github.event.inputs.testing }}" >> $GITHUB_OUTPUT
echo "testing=${{ github.event_name == 'push' && (steps.vars.outputs.branch != 'master') || github.event.inputs.testing }}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
with:
ref: ${{ steps.set_guild_deploy_branch.outputs.guild_deploy_branch }}
Expand All @@ -55,7 +55,7 @@ jobs:
echo "cnversion=$(cat files/docker/node/release-versions/cardano-node-latest.txt)" >> $GITHUB_OUTPUT
build_production:
needs: set_environment_vars
if: needs.set_environment_vars.outputs.testing == 'false' && (needs.set_environment_vars.outputs.guild_deploy_branch == 'master' || needs.set_environment_vars.outputs.guild_deploy_branch == 'docker-alpha')
if: needs.set_environment_vars.outputs.testing == 'false' && (needs.set_environment_vars.outputs.guild_deploy_branch == 'master')
env:
REGISTRY: docker.io
runs-on: ubuntu-latest
Expand Down
24 changes: 24 additions & 0 deletions docs/Build/grest-changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Koios gRest Changelog


## [1.3.1] - For all networks.

This is a minor value-addition patch release over v1.3.0, addressing feedback from community from initial exposure to Conway functionality. There arent any breaking changes, but there are two new endpoints alongwith addition of fields to existing ones.

## New endpoints added:
- `/block_tx_cbor` - Get Raw transactions in CBOR format for given block hashes [#319]
- `/drep_history` - Get history for dreps voting power distribution [#319]

### Data Input/Output Changes:
- Output - `/totals` - Add new fields `fees`, `deposits_stake`, `deposits_dreps` and `deposits_proposals` [#319]
- Output - `/proposal_summary` - Add new fields `drep_active_yes_vote_power`, `drep_active_no_vote_power`, `drep_active_abstain_vote_power`, `drep_always_abstain_vote_power`, `pool_active_yes_vote_power`, `pool_active_no_vote_power`, `pool_active_abstain_vote_power` [#319]

### Deprecations:
- `block_tx_info` - Wasnt optimal for resources (and worked around payload limit for `tx_info`), use `block_tx_cbor` is much more scalable and non-breaking [#319]

### Retirements:
- None

### Chores:
- Fix for drep_info regarding active state (was missing by 1) [#319]
- Fix Typo in API Specs (Preferred => Prefer) [#319]
- Return is_valid field as-is from dbsync, current behaviour of showing true was invalid [#319]

## [1.3.0] - For all networks.

This release adds support for cardano db sync 13.6.0.2, alongwith underlying components supporting Conway HF. The major chunk of work for this release is behind the scenes, with minor value additions to input/output schema.
Expand Down
4 changes: 2 additions & 2 deletions scripts/grest-helper-scripts/grest-poll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function chk_upd() {
curr_hour=$(date +%H)
if [[ ! -f "${PARENT}"/.last_grest_poll ]]; then
echo "${curr_hour}" > "${PARENT}"/.last_grest_poll
curl -sfkL "${API_STRUCT_DEFINITION}" -o "${LOCAL_SPEC}" 2>/dev/null
curl -m 2 -sfkL "${API_STRUCT_DEFINITION}" -o "${LOCAL_SPEC}" 2>/dev/null
else
last_hour=$(cat "${PARENT}"/.last_grest_poll)
[[ "${curr_hour}" == "${last_hour}" ]] && SKIP_UPDATE=Y || echo "${curr_hour}" > "${PARENT}"/.last_grest_poll
Expand All @@ -55,7 +55,7 @@ function chk_upd() {
exit 1
fi

curl -sfkL "${API_STRUCT_DEFINITION}" -o "${LOCAL_SPEC}" 2>/dev/null
curl -m 2 -sfkL "${API_STRUCT_DEFINITION}" -o "${LOCAL_SPEC}" 2>/dev/null

checkUpdate "${PARENT}"/grest-poll.sh Y N N grest-helper-scripts
[[ "$?" == "2" ]] && echo "ERROR: checkUpdate Failed" && exit 1
Expand Down
4 changes: 2 additions & 2 deletions scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Do NOT modify code below #
######################################

SGVERSION=v1.3.0
SGVERSION=v1.3.1

######## Functions ########
usage() {
Expand Down Expand Up @@ -233,7 +233,7 @@ SGVERSION=v1.3.0
grep "^ /" "${CNODE_HOME}"/files/koiosapi.yaml | grep -v -e submittx -e "#RPC" | sed -e 's#^ /#/#' | cut -d: -f1 | sort > "${CNODE_HOME}"/files/grestrpcs 2>/dev/null
echo "/control_table" >> "${CNODE_HOME}"/files/grestrpcs 2>/dev/null
checkUpdate grest-poll.sh Y N N grest-helper-scripts >/dev/null
sed -i "s# API_STRUCT_DEFINITION=\"https://api.koios.rest/koiosapi.yaml\"# API_STRUCT_DEFINITION=\"https://${KOIOS_SRV}/koiosapi.yaml\"#g" grest-poll.sh
sed -i "s|^#API_STRUCT_DEFINITION=\"https://api.koios.rest/koiosapi.yaml\"|API_STRUCT_DEFINITION=\"https://${KOIOS_SRV}/koiosapi.yaml\"|g" grest-poll.sh
checkUpdate checkstatus.sh Y N N grest-helper-scripts >/dev/null
checkUpdate getmetrics.sh Y N N grest-helper-scripts >/dev/null
}
Expand Down

0 comments on commit d5e27bd

Please sign in to comment.