|
| 1 | +# DIPS Testing |
| 2 | + |
| 3 | +Test docs for Direct Indexer Payments (DIPS). Two plans, by audience: |
| 4 | + |
| 5 | +- **[TestnetIndexerGuide.md](./TestnetIndexerGuide.md)** — for **indexers** running a DIPS-enabled stack (indexer-service + indexer-agent) on **testnet**. Verify your stack accepts agreements, collects, and handles cancellation. You do not run the payer services. |
| 6 | +- **[LocalNetworkTestPlan.md](./LocalNetworkTestPlan.md)** — for **developers** exercising the **full pipeline** on **local-network**, including the payer side (`iisa`/`dipper`), proposal injection, and chain time-travel. |
| 7 | + |
| 8 | +> ⚠️ DIPS is deployed on **Arbitrum Sepolia**, **mainnet-pending** (`RecurringCollector` not yet on Arbitrum One). |
| 9 | +
|
| 10 | +## Quick start |
| 11 | + |
| 12 | +**Indexer (testnet):** |
| 13 | +1. Read [TestnetIndexerGuide.md](./TestnetIndexerGuide.md) and load testnet addresses from [TestnetDetails](./TestnetDetails.md). |
| 14 | +2. Run a DIPS-enabled stack and pre-allocate per the guide's setup. |
| 15 | +3. Track progress → [support/Tracker.csv](./support/Tracker.csv) (import to Notion/Sheets; one column per runner). |
| 16 | + |
| 17 | +**Developer (local-network):** |
| 18 | +1. Bring up the `indexing-payments` recipe → [LocalNetworkDetails](./LocalNetworkDetails.md). |
| 19 | +2. Run [LocalNetworkTestPlan.md](./LocalNetworkTestPlan.md) top to bottom. |
| 20 | + |
| 21 | +## Documents |
| 22 | + |
| 23 | +| Document | Audience | Purpose | |
| 24 | +| --- | --- | --- | |
| 25 | +| [TestnetIndexerGuide.md](./TestnetIndexerGuide.md) | Indexers | Testnet runbook — receive/accept, sizing, recurring collection, protection, cancellation (T-1 – T-5) | |
| 26 | +| [LocalNetworkTestPlan.md](./LocalNetworkTestPlan.md) | Developers | Full-pipeline plan — cycles, edge cases, negative checks (34 tests) | |
| 27 | +| [TestnetDetails.md](./TestnetDetails.md) | both | Arbitrum Sepolia — addresses, params, RPC | |
| 28 | +| [MainnetDetails.md](./MainnetDetails.md) | both | Arbitrum One — addresses (DIPS mainnet-pending) | |
| 29 | +| [LocalNetworkDetails.md](./LocalNetworkDetails.md) | Developers | local-network — services, dynamic addresses, full pipeline | |
| 30 | +| [support/Tracker.csv](./support/Tracker.csv) | Indexers | Per-runner status tracker (follows the TestnetIndexerGuide) | |
| 31 | + |
| 32 | +Feature reference (in the [indexer repo](https://github.com/graphprotocol/indexer)): [DIPS indexer guide](https://github.com/graphprotocol/indexer/blob/main/docs/dips/dips-indexer-guide.md), [quick reference](https://github.com/graphprotocol/indexer/blob/main/docs/dips/dips-quick-reference.md), [common errors](https://github.com/graphprotocol/indexer/blob/main/docs/dips/dips-common-errors.md). _(TODO: fix links)_ |
| 33 | + |
| 34 | +## Test coverage |
| 35 | + |
| 36 | +**TestnetIndexerGuide — indexer-facing** |
| 37 | + |
| 38 | +| Set | Area | Tests | |
| 39 | +| --- | --- | --- | |
| 40 | +| T-1 | Receive and accept (existing / new allocation) | T-1.1 – T-1.2 | |
| 41 | +| T-2 | Allocation sizing (reward / denied) | T-2.1 – T-2.2 | |
| 42 | +| T-3 | Recurring collection | T-3.1 – T-3.3 | |
| 43 | +| T-4 | Long-lived allocation protection | T-4.1 – T-4.2 | |
| 44 | +| T-5 | Cancellation (opt-out / observe payer cancel) | T-5.1 – T-5.2 | |
| 45 | + |
| 46 | +**LocalNetworkTestPlan — full pipeline** |
| 47 | + |
| 48 | +- Lifecycle cycles D-1 – D-8 (23 tests): readiness, proposal origination, acceptance, sizing, indexing/reconcile, recurring collection, protection, cancellation. |
| 49 | +- Edge cases E-1 – E-4; negative checks N-1 – N-7. See the plan's [Coverage map](./LocalNetworkTestPlan.md#coverage-map). |
| 50 | + |
| 51 | +## Network configuration |
| 52 | + |
| 53 | +- [Arbitrum Sepolia (testnet)](./TestnetDetails.md) — indexer target; DIPS contracts deployed |
| 54 | +- [Arbitrum One (mainnet)](./MainnetDetails.md) — DIPS pending |
| 55 | +- [local-network](./LocalNetworkDetails.md) — full pipeline for developer runs; dynamic addresses |
| 56 | + |
| 57 | +> **GraphQL note**: addresses in subgraph queries must be lowercase. |
| 58 | +
|
| 59 | +## Testing approach |
| 60 | + |
| 61 | +1. **Audience-split** — indexers verify their own stack on testnet; developers drive the full pipeline (including payer services) on local-network. |
| 62 | +2. **Happy-path first** — prove documented behaviors, then edge and negative cases (developer plan). |
| 63 | +3. **Trackable** — one row per test in the CSV tracker, one column per runner. |
0 commit comments