Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v0.2.0 #195

Merged
merged 8 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading