Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
eeaed69
refactor(dips): replace off-chain epoch vouchers with on-chain Signed…
MoonBoi9001 Feb 17, 2026
b52b3fe
feat(dips): improve config ergonomics with GRT pricing and explicit n…
MoonBoi9001 Feb 18, 2026
ed1d476
feat(dips): make RCA storage idempotent for safe retries (#948)
MoonBoi9001 Feb 18, 2026
1189d75
feat(dips): add `/dips/info` endpoint and indexing agreement rejectio…
MoonBoi9001 Feb 24, 2026
41feb8c
refactor: use GRT per billion entities instead of per million (#959)
MoonBoi9001 Mar 4, 2026
df80934
build: add docker-compose.yml and build-image just target
RembrandtK Apr 14, 2026
c25add9
chore: ignore .claude/ local agent config
RembrandtK Apr 12, 2026
ad67f05
ci(containers): multi-arch images + workflow_dispatch for main-dips (…
RembrandtK May 5, 2026
809bcc0
fix: use version 0 for IndexingAgreementVersion.V1 in metadata valida…
MoonBoi9001 May 8, 2026
afc859a
feat: improve DIPs observability for indexer operators (#1032)
MoonBoi9001 May 8, 2026
c38c397
Merge remote-tracking branch 'origin/main' into main-dips-rebased
MoonBoi9001 May 27, 2026
f1dd81b
chore(deps): reconcile Cargo.lock after merging main
MoonBoi9001 May 27, 2026
1a82d7c
fix(service): drop unused Horizon check and side escrow connection
MoonBoi9001 May 27, 2026
0ab9ca8
fix(service): restore v2_watcher clone so the second use compiles
MoonBoi9001 May 27, 2026
a1192e9
feat: switch to on-chain offer-based authorization (#1009)
MoonBoi9001 May 27, 2026
29b2997
refactor: remove dead DIPs cancel and collect endpoints (#1036)
MoonBoi9001 May 27, 2026
2d646e4
fix: check allocation closed status instead of redeem transactions (#…
Maikol May 28, 2026
1a90fa3
refactor: drop misleading DIPs payer allowlist (#1039)
MoonBoi9001 May 28, 2026
8a46d33
feat(dips): separate accept and reject in the proposal response (#1041)
MoonBoi9001 Jun 8, 2026
103c7cc
feat: cap DIPs manifest download at Graph Node's default size (#1042)
MoonBoi9001 Jun 8, 2026
ff48699
feat: verify DIPs proposal manifest network is supported (#1043)
MoonBoi9001 Jun 8, 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
157 changes: 124 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,103 @@ jobs:
steps:
- name: Release please
id: release-please
uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4
uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}

builds-linux:
prepare:
runs-on: ubuntu-latest
needs: release-please
if: always() && (needs.release-please.result == 'success' || needs.release-please.result == 'skipped')
outputs:
targets: ${{ steps.set.outputs.targets }}
steps:
- id: set
run: echo 'targets=["indexer-service-rs","indexer-tap-agent"]' >> $GITHUB_OUTPUT

build:
name: Build ${{ matrix.target }} (${{ matrix.platform }})
needs: [prepare, release-please]
if: always() && needs.prepare.result == 'success' && (needs.release-please.result == 'success' || needs.release-please.result == 'skipped')
strategy:
fail-fast: false
matrix:
target: [indexer-service-rs, indexer-tap-agent]
target: ${{ fromJSON(needs.prepare.outputs.targets) }}
platform: [linux/amd64, linux/arm64]
include:
- platform: linux/amd64
runner: ubuntu-24.04
- platform: linux/arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
permissions:
packages: write
steps:
- name: Prepare platform pair
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

- name: Log in to the Container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker labels
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
with:
images: ${{ env.REGISTRY }}/${{ matrix.target }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: ./
file: Dockerfile.${{ matrix.target }}
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.target }}-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=max,scope=${{ matrix.target }}-${{ env.PLATFORM_PAIR }}
outputs: type=image,name=${{ env.REGISTRY }}/${{ matrix.target }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}

- name: Export digest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
run: |
mkdir -p ${{ runner.temp }}/digests
digest="${{ steps.build.outputs.digest }}"
touch "${{ runner.temp }}/digests/${digest#sha256:}"

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
with:
name: digests-${{ matrix.target }}-${{ env.PLATFORM_PAIR }}
path: ${{ runner.temp }}/digests/*
if-no-files-found: error
retention-days: 1

merge:
name: Merge ${{ matrix.target }} into multi-arch manifest
needs: [prepare, release-please, build]
if: |
!cancelled()
&& needs.build.result == 'success'
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
strategy:
fail-fast: false
matrix:
target: ${{ fromJSON(needs.prepare.outputs.targets) }}
runs-on: ubuntu-latest
permissions:
packages: write
steps:
# When release-please is skipped (workflow_dispatch, or no releasable commits) VERSION is empty;
# meta.outputs.version then falls back to the branch/sha tag, which is intentional.
- name: Extract version from tag
id: extract_version
run: |
Expand All @@ -54,40 +134,51 @@ jobs:
else
VERSION=""
fi
echo $VERSION
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Docker meta
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
images: |
${{ env.REGISTRY }}/${{matrix.target}}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern={{major}}.{{minor}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern={{major}}.{{minor}}.{{patch}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern={{major}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern=v{{version}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern=v{{major}}.{{minor}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}},value=${{steps.extract_version.outputs.version}}
type=semver,pattern=v{{major}},value=${{steps.extract_version.outputs.version}}
type=sha
path: ${{ runner.temp }}/digests
pattern: digests-${{ matrix.target }}-*
merge-multiple: true

- name: Log in to the Container registry
uses: docker/login-action@3227f5311cb93ffd14d13e65d8cc400d30f4dd8a # v4
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
- name: Docker tags
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
with:
context: ./
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
tags: ${{ steps.meta.outputs.tags }}
file: Dockerfile.${{ matrix.target }}
images: ${{ env.REGISTRY }}/${{ matrix.target }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern={{major}}.{{minor}}.{{patch}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern={{major}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern=v{{version}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern=v{{major}}.{{minor}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}},value=${{ steps.extract_version.outputs.version }}
type=semver,pattern=v{{major}},value=${{ steps.extract_version.outputs.version }}
# Forced on so workflow_dispatch from a non-default branch (no `latest`,
# no tag ref) still yields a populated meta.outputs.version for Inspect.
type=sha,enable=true

# Glob `*` expands to digest-named files written by the build job's Export digest step.
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests
run: |
docker buildx imagetools create \
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY }}/${{ matrix.target }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ matrix.target }}:${{ steps.meta.outputs.version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ indexer.toml
.vscode/
# migrations/
.helix
.claude/

# Node.js related files
crates/dips/node_modules/
Expand Down
6 changes: 2 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 113 additions & 7 deletions crates/config/maximal-config-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,123 @@ max_receipts_per_request = 10000
0xDDE4cfFd3D9052A9cb618fC05a1Cd02be1f2F467 = "https://tap-aggregator.network.thegraph.com"
0xDD6a6f76eb36B873C1C184e8b9b9e762FE216490 = "https://tap-aggregator-arbitrum-one.graphops.xyz"

# DIPS (Decentralized Indexing Payment System)
# DIPs (Direct Indexer Payments). Payer authorisation is verified
# on-chain at acceptance. GRT prices, not wei.
[dips]
host = "0.0.0.0"
port = "7601"
allowed_payers = ["0x3333333333333333333333333333333333333333"]

price_per_entity = "1000"
# Networks you explicitly support indexing.
# Proposals from the dipper for you to index networks that are not in the list below are rejected.
# See https://github.com/graphprotocol/networks-registry/blob/main/docs/networks-table.md
# e.g. supported_networks = ["mainnet", "arbitrum-one"]
supported_networks = []

[dips.price_per_epoch]
mainnet = "100"
hardhat = "100"
# Minimum payment you are willing to accept in order to accept indexing agreements
# (base price + entity-based price). Total payment = base price + (entities on sg * entity_rate)
#
# For reference: analysis of subgraphs indexed by the upgrade indexer in Q1 2025 found
# the average entity size to be ~0.759 KiB. At this size, 1 billion entities ≈ 0.707 TiB.
# Your own observations may differ - adjust pricing accordingly.
min_grt_per_billion_entities_per_30_days = "200" # entity-based component (global)

[dips.min_grt_per_30_days] # base rate component (per-network)
# arbitrum-one = "450"
# matic = "300"
# fantom = "300"
# avalanche = "225"
# bsc = "200"
# base = "80"
# gnosis = "45"
# near-mainnet = "45"
# fuji = "45"
# mainnet = "45"
# optimism = "30"
# xdai = "30"
# polygon-zkevm = "30"
# polygon-amoy = "30"
# xlayer-mainnet = "30"
# soneium = "30"
# abstract = "30"
# fantom-testnet = "30"
# lens = "30"
# rootstock-testnet = "30"
# kaia = "30"
# chiliz = "30"
# linea-sepolia = "30"
# joc-testnet = "30"
# etherlink-mainnet = "30"
# apechain = "30"
# ink = "30"
# unichain-testnet = "30"
# blast-testnet = "30"
# megaeth = "30"
# sei-atlantic = "30"
# zksync-era-sepolia = "30"
# arbitrum-nova = "30"
# hoodi = "30"
# celo-sepolia = "30"
# vana = "30"
# joc = "30"
# swellchain = "30"
# soneium-testnet = "30"
# zetachain = "30"
# hemi-sepolia = "30"
# megaeth-testnet = "30"
# iotex = "30"
# stable = "30"
# cronos = "30"
# ronin = "30"
# fraxtal = "30"
# kaia-testnet = "30"
# abstract-testnet = "30"
# neox-testnet = "30"
# fuse-testnet = "30"
# manta = "30"
# viction = "30"
# peaq = "30"
# boba-testnet = "30"
# hashkeychain = "30"
# vana-moksha = "30"
# botanix-testnet = "30"
# corn = "30"
# chiliz-testnet = "30"
# apechain-curtis = "30"
# megaeth-timothy = "30"
# status-sepolia = "30"
# etherlink-shadownet = "30"
# etherlink-testnet = "30"
# mint = "30"
# ink-sepolia = "30"
# iotex-testnet = "30"
# neox = "30"
# lumia = "30"
# mint-sepolia = "30"
# lens-testnet = "30"
# berachain = "30"
# sonic = "25"
# katana = "25"
# hemi = "20"
# zksync-era = "20"
# sei-mainnet = "20"
# scroll = "15"
# optimism-sepolia = "15"
# celo = "15"
# linea = "15"
# base-sepolia = "15"
# unichain = "15"
# monad-testnet = "10"
# monad = "10"
# fuse = "10"
# scroll-sepolia = "10"
# rootstock = "10"
# near-testnet = "10"
# moonriver = "10"
# chapel = "10"
# moonbeam = "10"
# blast-mainnet = "5"
# arbitrum-sepolia = "5"
# boba = "5"
# sepolia = "5"

[dips.additional_networks]
"eip155:1337" = "hardhat"
Loading
Loading