Skip to content

Commit

Permalink
chore: release v0.2.0 (#195)
Browse files Browse the repository at this point in the history
* Support nearcore 1.37 (#194)

* Support nearcore 1.37

* fmt

* runtime config

* protocol config

* delete unused deps

* requests methods

* rpc methods 1.37

* add near rpc client with supports nearcore 1.37

* rebase from main

* rebase from main

* rebase from main

* Enhance state-indexer compatibility with NEAR Lake and NEAR Indexer Framework  (#196)

* add near-state-indexer

* solve compilation problem

* improvements

* add readme

* Implement support for optimistic block finality (#197)

* add optimistic handler

* handle optimistic block

* update nearcore

* optimistiv block handle

* add redis client clone

* reffactoring

* run with optimistic improvement

* naming improvement

* update changelog

* Create GitHub Action to build a binary for `near-state-indexer` (#201)

* Improvements for near-state-indexer and rpc-server (#202)

* 1. Improvement builds for near-state-indexer and rpc-server
2. Umprovement metrics for near-state-indexer

* update nearcore to 1.38.0-rc.2 (#203)

* chore: release v0.2.0-rc.1

* set feature near_state_indexer_disabled as a default (#204)
  • Loading branch information
kobayurii authored Mar 15, 2024
1 parent 403e48c commit ea2478c
Show file tree
Hide file tree
Showing 70 changed files with 5,906 additions and 2,002 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
NEARCORE_VERSION = "1.38.0-rc.2"
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release NearStateIndexer Workflow

on:
release:
types: [created, published]

jobs:
build-and-release:
permissions:
contents: write
runs-on: ubuntu-22.04
if: >
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'release' && github.event.action == 'created')
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
run: |
rustup update stable
rustup default stable
- name: Build release binary
run: |
cargo build --release --package near-state-indexer --verbose
strip target/release/near-state-indexer
cp target/release/near-state-indexer near-state-indexer
- name: Determine UPLOAD_URL
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
TAG_NAME=${GITHUB_REF#refs/tags/}
RELEASE_RESPONSE=$(curl -s -X GET -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG_NAME")
UPLOAD_URL=$(echo "$RELEASE_RESPONSE" | jq -r .upload_url)
echo "UPLOAD_URL=$UPLOAD_URL" >> $GITHUB_ENV
else
echo "UPLOAD_URL=${{ github.event.release.upload_url }}" >> $GITHUB_ENV
fi
- name: Upload release asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ./near-state-indexer/near-state-indexer
asset_name: near-state-indexer
asset_content_type: application/octet-stream

10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/near/read-rpc/compare/v0.1.0...HEAD)
## [Unreleased](https://github.com/near/read-rpc/compare/0.2.0-rc.1...HEAD)

## [0.2.0-rc.1](https://github.com/near/read-rpc/releases/tag/0.2.0-rc.1)

### Supported Nearcore Version
- nearcore v.38.0-rc.2
- rust v1.76.0

### Added
- Added support for `SyncCheckpoint` in the `block` method for better block handling and synchronization.
- Added support for `OptimisticBlock` in the `block` method for better block handling and synchronization.
- Added `ARCHIVAL_PROXY_QUERY_VIEW_STATE_WITH_INCLUDE_PROOFS` metric to track the number of archival proxy requests for view state with include proofs.
- Added `TOTAL_REQUESTS_COUNTER` metric to counting total rpc requests.
- Added `GET /health` for the healthcheck of rpc-server.
- Implemented the `status` method to accommodate `near_primitives::views::StatusResponse`.
- Implemented the `health` method. Health includes the info about the syncing state of the node of `rpc-server`.
- Implemented near-state-indexer to index the state of the nearcore node.

### Changed
- Enhanced the tx method to show in-progress transaction status, avoiding `UNKNOWN_TRANSACTION` responses and providing more accurate feedback.
Expand Down
Loading

0 comments on commit ea2478c

Please sign in to comment.