Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5c9c3c9
Merge develop into main (#105)
ImShady Oct 10, 2025
98adfd6
added new pipeline (#106)
Youssef-Boosted Oct 10, 2025
03bc932
Enable staging indexer (#108)
ImShady Oct 11, 2025
8080be8
Add staging hos contract and strictify filtering (#109)
ImShady Oct 11, 2025
5ed2f7c
Add support for contract prefix placeholders in views (#110)
ImShady Oct 11, 2025
ebf7517
Add remaining contract prefixes (#111)
ImShady Oct 11, 2025
f24e014
enable new prod indexing (#112)
ImShady Oct 11, 2025
d5619ea
auto dispatch new prod (#113)
ImShady Oct 11, 2025
f78ee28
Update voting_power_from_locks_unlocks CTE (#114)
jcarnide Oct 26, 2025
92fd78e
refactor(axb-xx): Preliminary Optimization of SQL Views (#115)
elai-boosted Oct 29, 2025
8d99337
fixed bug with missing registered voter and added additional optimiza…
elai-boosted Oct 31, 2025
7cfb281
Add on/off chain section to readme (#118)
corydickson Dec 17, 2025
3ce11c1
Add data layer yml
jefag Jan 21, 2026
0965903
Add debugging to fetch_secrets
jefag Jan 26, 2026
1845f81
Update lock
jefag Jan 26, 2026
1f74a8a
Bump 1.86 to 1.88
jefag Jan 26, 2026
d2c71d2
Complete bump to 0.34.2
jefag Jan 26, 2026
5969cc8
Add _ to skip warming on start_time
jefag Jan 26, 2026
3bc5705
Remove enable_r2_archive_sync
jefag Jan 26, 2026
eebc9ab
Change gas treatment
jefag Jan 26, 2026
2a42233
Fix num_lookahead_threads
jefag Jan 26, 2026
c1fa176
How to check container and logs
jefag Jan 26, 2026
0fbd848
fix: deduplicate proposals by validating approval snapshot (#121)
atomauro Feb 4, 2026
37932ff
Add unstake and withdraw events to user_activities (#119)
atomauro Feb 4, 2026
b518a0c
Deduplicate Registered Voters View (#122)
atomauro Feb 18, 2026
c49307d
Use on_lockup_deployed + storage_deposit instead of deploy_lockup + s…
pedrohasf Feb 23, 2026
f886ab5
Fix historical data indexing for delegation / Delta amounts and Check…
atomauro Mar 4, 2026
3a0af60
fix: add COALESCE fallback to near_amount for delegators without ft_b…
atomauro Mar 4, 2026
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
56 changes: 56 additions & 0 deletions .github/workflows/hos-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy HOS Dev

on:
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI

env:
PROJECT_NUMBER: "585357613426"
SERVICE_ACCOUNT_EMAIL: "[email protected]"
PROJECT_ID: "hos-gov-dev"
REGION: "us-west1"
DOCKER_IMAGE: "us-west1-docker.pkg.dev/hos-gov-dev/indexer/near-sink-service"

jobs:
deploy-dev:
runs-on: ubuntu-latest
environment:
name: hos-development

permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Authenticate to Google Cloud using OIDC
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/${{env.PROJECT_NUMBER}}/locations/global/workloadIdentityPools/github-identity-pool/providers/github
service_account: ${{env.SERVICE_ACCOUNT_EMAIL}}

- name: Configure gcloud
run: gcloud config set project ${{env.PROJECT_ID}}

- name: Login to Artifact Registry
run: gcloud auth configure-docker ${{env.REGION}}-docker.pkg.dev

- name: Build Docker image
run: docker build -t ${{env.DOCKER_IMAGE}} .

- name: Push Docker image to Artifact Registry
run: docker push ${{env.DOCKER_IMAGE}}

- name: Docker cleanup on VM
run: |
gcloud compute ssh indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}} \
--command="sudo docker system prune --all --force --volumes"

- name: Restart Compute Engine VM
run: |
gcloud compute instances reset indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}}
56 changes: 56 additions & 0 deletions .github/workflows/hos-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy HOS Production

on:
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI

env:
PROJECT_NUMBER: "940440977694"
SERVICE_ACCOUNT_EMAIL: "[email protected]"
PROJECT_ID: "hos-gov-prd"
REGION: "us-west1"
DOCKER_IMAGE: "us-west1-docker.pkg.dev/hos-gov-prd/indexer/near-sink-service"

jobs:
deploy-prod:
runs-on: ubuntu-latest
environment:
name: hos-production

permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Authenticate to Google Cloud using OIDC
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/${{env.PROJECT_NUMBER}}/locations/global/workloadIdentityPools/github-identity-pool/providers/github
service_account: ${{env.SERVICE_ACCOUNT_EMAIL}}

- name: Configure gcloud
run: gcloud config set project ${{env.PROJECT_ID}}

- name: Login to Artifact Registry
run: gcloud auth configure-docker ${{env.REGION}}-docker.pkg.dev

- name: Build Docker image
run: docker build -t ${{env.DOCKER_IMAGE}} .

- name: Push Docker image to Artifact Registry
run: docker push ${{env.DOCKER_IMAGE}}

- name: Docker cleanup on VM
run: |
gcloud compute ssh indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}} \
--command="sudo docker system prune --all --force --volumes"

- name: Restart Compute Engine VM
run: |
gcloud compute instances reset indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}}
56 changes: 56 additions & 0 deletions .github/workflows/hos-stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy HOS Staging

on:
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI

env:
PROJECT_NUMBER: "216712737016"
SERVICE_ACCOUNT_EMAIL: "[email protected]"
PROJECT_ID: "hos-gov-stg"
REGION: "us-west1"
DOCKER_IMAGE: "us-west1-docker.pkg.dev/hos-gov-stg/indexer/near-sink-service"

jobs:
deploy-staging:
runs-on: ubuntu-latest
environment:
name: hos-staging

permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Authenticate to Google Cloud using OIDC
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/${{env.PROJECT_NUMBER}}/locations/global/workloadIdentityPools/github-identity-pool/providers/github
service_account: ${{env.SERVICE_ACCOUNT_EMAIL}}

- name: Configure gcloud
run: gcloud config set project ${{env.PROJECT_ID}}

- name: Login to Artifact Registry
run: gcloud auth configure-docker ${{env.REGION}}-docker.pkg.dev

- name: Build Docker image
run: docker build -t ${{env.DOCKER_IMAGE}} .

- name: Push Docker image to Artifact Registry
run: docker push ${{env.DOCKER_IMAGE}}

- name: Docker cleanup on VM
run: |
gcloud compute ssh indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}} \
--command="sudo docker system prune --all --force --volumes"

- name: Restart Compute Engine VM
run: |
gcloud compute instances reset indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}}
59 changes: 59 additions & 0 deletions .github/workflows/prod-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy New Production

on:
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI
push:
branches:
- main

env:
PROJECT_NUMBER: "641188643433"
SERVICE_ACCOUNT_EMAIL: "[email protected]"
PROJECT_ID: "agora-near-25q4-prd"
REGION: "us-west1"
DOCKER_IMAGE: "us-west1-docker.pkg.dev/agora-near-25q4-prd/indexer/near-sink-service"

jobs:
deploy-prod:
runs-on: ubuntu-latest
environment:
name: production

permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Authenticate to Google Cloud using OIDC
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/${{env.PROJECT_NUMBER}}/locations/global/workloadIdentityPools/github-identity-pool/providers/github
service_account: ${{env.SERVICE_ACCOUNT_EMAIL}}

- name: Configure gcloud
run: gcloud config set project ${{env.PROJECT_ID}}

- name: Login to Artifact Registry
run: gcloud auth configure-docker ${{env.REGION}}-docker.pkg.dev

- name: Build Docker image
run: docker build -t ${{env.DOCKER_IMAGE}} .

- name: Push Docker image to Artifact Registry
run: docker push ${{env.DOCKER_IMAGE}}

- name: Docker cleanup on VM
run: |
gcloud compute ssh indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}} \
--command="sudo docker system prune --all --force --volumes"

- name: Restart Compute Engine VM
run: |
gcloud compute instances reset indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}}
10 changes: 5 additions & 5 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy Prod

on:
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI
push:
branches:
- main
# on:
# workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI
# push:
# branches:
# - main

env:
PROJECT_NUMBER: "237405837378"
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ jobs:
- name: Push Docker image to Artifact Registry
run: docker push ${{env.DOCKER_IMAGE}}

# Temp disabling
# - name: Docker cleanup on VM
# run: |
# gcloud compute ssh indexer-vm \
# --zone=${{env.REGION}}-a \
# --project=${{env.PROJECT_ID}} \
# --command="sudo docker system prune --all --force --volumes"

# - name: Restart Compute Engine VM
# run: |
# gcloud compute instances reset indexer-vm \
# --zone=${{env.REGION}}-a \
# --project=${{env.PROJECT_ID}}
- name: Docker cleanup on VM
run: |
gcloud compute ssh indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}} \
--command="sudo docker system prune --all --force --volumes"

- name: Restart Compute Engine VM
run: |
gcloud compute instances reset indexer-vm \
--zone=${{env.REGION}}-a \
--project=${{env.PROJECT_ID}}
Loading
Loading