Skip to content

[DIPS] Cherry-pick old commits + contracts setup#1172

Open
Maikol wants to merge 6 commits intomain-dipsfrom
feat/dips-support
Open

[DIPS] Cherry-pick old commits + contracts setup#1172
Maikol wants to merge 6 commits intomain-dipsfrom
feat/dips-support

Conversation

@Maikol
Copy link
Member

@Maikol Maikol commented Feb 25, 2026

No description provided.

pcarranzav and others added 5 commits February 18, 2026 18:37
This squashed commit adds support for DIPs (Distributed Indexing Payments), which allows
indexers to receive indexing fees for indexing subgraphs requested via the DIPs system.

Key changes:
- Add 'dips' as a new IndexingDecisionBasis enum value
- Add indexing agreements model and database support
- Add DIPs client for interacting with the gateway DIPs service
- Support for matching DIPs agreements with allocations
- Allow actions on deployments that are not published yet (for DIPs)
- Update allocation management to handle DIPs-based allocations
- Add proper handling for cancelled agreements

Co-authored-by: Multiple contributors from the DIPs development team
- Updated all DIPs-related code to use ethers v6 API
- Migrated from BigNumberish to bigint for all numeric operations
- Fixed provider and signer initialization patterns
- Updated test suite to use new ethers v6 patterns
- Removed temporary migration documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add DipsReceipt model with snake_case fields matching database conventions
- Update DipsCollector to store Receipt IDs instead of TAP receipts
- Implement GetReceiptById polling in collectAllPayments method
- Update to @graphprotocol/dips-proto 0.3.0 for new proto definitions
- Remove TAP receipt dependencies from DIPs payment flow
- Add comprehensive logging for payment status transitions

This completes the indexer-agent implementation for the new DIPs Safe
payment system, replacing TAP receipts with an asynchronous Receipt ID
based approach.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
The third DIP commit changed tryCollectPayment to use receipt-based
responses (receiptId, amount) but the test still mocked the old
tapReceipt-based response shape. Also regenerates yarn.lock with
new DIP dependencies.
@github-project-automation github-project-automation bot moved this to 🗃️ Inbox in Indexer Feb 25, 2026
@MoonBoi9001
Copy link
Member

@Maikol, just seen this PR while setting up local-network and had a query about merge strategy. Are we merging to main-dips here instead of main?

@Maikol
Copy link
Member Author

Maikol commented Feb 26, 2026

@MoonBoi9001 yes, good point. I'll create a main-dips from main and change the base branch for this PR.

@Maikol Maikol changed the base branch from main to main-dips February 26, 2026 13:48
@Maikol Maikol changed the title [WIP] Indexing Payments support [DIPS] Cherry-pick old commits + contracts setup Feb 26, 2026
@Maikol Maikol marked this pull request as ready for review February 26, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🗃️ Inbox

Development

Successfully merging this pull request may close these issues.

3 participants