Skip to content

Commit 0b1dd6d

Browse files
authored
chore: rename Service Quality to Rewards Eligibility (#50)
* chore: rename service quality to rewards eligibility * chore: complete file rename and fix unit tests - Rename src/models/service_quality_oracle.py to rewards_eligibility_oracle.py - Update technical-design.md to reference new module name - Apply code formatting via ruff - All 199 tests passing with 89% coverage
1 parent 2d32fd5 commit 0b1dd6d

35 files changed

+106
-106
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CODEOWNERS file for service-quality-oracle
1+
# CODEOWNERS file for rewards-eligibility-oracle
22
# This file defines who will be requested for review when someone opens a pull request
33

44
# Default owners for everything in the repo

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
echo "Or use docker-compose:"
182182
echo '```yaml'
183183
echo "services:"
184-
echo " service-quality-oracle:"
184+
echo " rewards-eligibility-oracle:"
185185
echo " image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.version.outputs.version }}"
186186
echo '```'
187187
} > release_notes.md

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ jobs:
132132

133133
- name: Build and test Docker image
134134
run: |
135-
docker build -t service-quality-oracle:test .
136-
docker create --name test-container service-quality-oracle:test
135+
docker build -t rewards-eligibility-oracle:test .
136+
docker create --name test-container rewards-eligibility-oracle:test
137137
docker rm test-container
138138
139139
- name: Validate Docker Compose

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- uses: google-github-actions/release-please-action@v4
1717
with:
1818
release-type: python
19-
package-name: service-quality-oracle
19+
package-name: rewards-eligibility-oracle

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ jobs:
105105
uses: actions/checkout@v5
106106

107107
- name: Build and scan image
108-
run: docker build -t service-quality-oracle:security-scan .
108+
run: docker build -t rewards-eligibility-oracle:security-scan .
109109

110110
- name: Run vulnerability scan
111111
uses: aquasecurity/trivy-action@master
112112
with:
113-
image-ref: 'service-quality-oracle:security-scan'
113+
image-ref: 'rewards-eligibility-oracle:security-scan'
114114
format: 'table'

.release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": {
33
".": {
44
"release-type": "python",
5-
"package-name": "service-quality-oracle",
5+
"package-name": "rewards-eligibility-oracle",
66
"changelog-path": "CHANGELOG.md",
77
"bump-minor-pre-major": true,
88
"bump-patch-for-minor-pre-major": true,

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to the Service Quality Oracle project will be documented in this file.
3+
All notable changes to the Rewards Eligibility Oracle project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
@@ -43,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343

4444
- Improved Google Cloud credential handling with better error messages (#42)
4545
- Renamed contract from IssuanceEligibilityOracle to RewardsEligibilityOracle (#39)
46-
- Updated contract ABI to match deployed ServiceQualityOracle (#24)
46+
- Updated contract ABI to match deployed RewardsEligibilityOracle (#24)
4747
- Updated to production Docker image configuration (#16, #25)
4848
- Python upgraded from 3.11-slim to 3.13.7-slim (#30)
4949

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project Overview
66

7-
Service Quality Oracle is a Python-based Docker containerized service that:
7+
Rewards Eligibility Oracle is a Python-based Docker containerized service that:
88

99
- Fetches indexer performance data from Google BigQuery daily at 10:00 UTC
1010
- Processes data to determine indexer issuance rewards eligibility based on threshold algorithms
@@ -79,7 +79,7 @@ The system follows a clear data pipeline with daily scheduled execution:
7979

8080
1. **Scheduler (src/models/scheduler.py)**: Main entry point that runs daily at configured time, manages catch-up runs for missed days, and handles the application lifecycle.
8181

82-
2. **Orchestrator (src/models/service_quality_oracle.py)**: Coordinates the end-to-end oracle run process by managing the flow between components.
82+
2. **Orchestrator (src/models/rewards_eligibility_oracle.py)**: Coordinates the end-to-end oracle run process by managing the flow between components.
8383

8484
3. **BigQuery Provider (src/models/bigquery_provider.py)**: Executes SQL queries against BigQuery to fetch indexer performance metrics.
8585

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dockerfile to create a clean, lightweight Docker Image for the Service Quality Oracle
1+
# Dockerfile to create a clean, lightweight Docker Image for the Rewards Eligibility Oracle
22

33
# Use Python 3.13.7 slim as the base image for a lightweight container
44
FROM python:3.13.7-slim
@@ -7,7 +7,7 @@ FROM python:3.13.7-slim
77
ARG VERSION=dev
88

99
# Add metadata labels
10-
LABEL description="Service Quality Oracle" \
10+
LABEL description="Rewards Eligibility Oracle" \
1111
version="${VERSION}"
1212

1313
# Set working directory

ELIGIBILITY_CRITERIA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document defines the requirements an Indexer must meet to be eligible for i
66

77
## Upcoming Eligibility Criteria
88

9-
**We will announce changes to the eligibility criteria in the table below.** Once the change goes live, it will be reflected in the [Active Eligibility Criteria](https://github.com/graphprotocol/service-quality-oracle/blob/main/ELIGIBILITY_CRITERIA.md#active-eligibility-criteria) section of this document.
9+
**We will announce changes to the eligibility criteria in the table below.** Once the change goes live, it will be reflected in the [Active Eligibility Criteria](https://github.com/graphprotocol/rewards-eligibility-oracle/blob/main/ELIGIBILITY_CRITERIA.md#active-eligibility-criteria) section of this document.
1010

1111
| Upcoming Requirement | Justification | Date Requirement Will Be Updated/Introduced (YYYY-MM-DD) |
1212
|----------------------|---------------|----------------------------------------------------------|

0 commit comments

Comments
 (0)