Skip to content

[Bug]: Network subgraph has incorrect data for #12

@madumas

Description

@madumas

Indexer address

0xe0922a3bfb9fde977ad9da1dc7e56bfab3b6226e

Operator address

0xC7816ca618DED9A1F894f1Ca961C45C5C1023Bec

Indexer agent version

v0.25.0-rc.7

Indexer service version

v1.7.0

TAP agent version

v1.11.0

Description

The network subgraph (QmbYMUj9zw2nk6AzKJiSVFnxbEcNwEYFhziLyPz7tytukx) has data that doesn't match the cli tool

I would expect tokenCapacity to match tokensProvisioned, and availableStaketo be tokenCapacity - allocatedTokens

This is important for allocation management tools.

Relevant Logs

{
  "data": {
    "provisions": [
      {
        "geoHash": "f25dyh9uq",
        "id": "0xe0922a3bfb9fde977ad9da1dc7e56bfab3b6226e-0xc24a3dac5d06d771f657a48b20ce1a671b78f26b",
        "indexer": {
          "allocatedTokens": "32000000000000000000000",
          "availableStake": "209212143809538221051358",
          "id": "0xe0922a3bfb9fde977ad9da1dc7e56bfab3b6226e",
          "tokenCapacity": "271212143809538221051358"
        },
        "tokensProvisioned": "137500000000000000000000",
        "tokensThawing": "0",
        "url": "https://graph-test.ellipfra.com/"
      }
    ]
  }
}


graph indexer provision get --network=arbitrum-sepolia
✔ Provisions
┌────────────────────────────────────────────┬──────────────────┬───────────────────┬─────────────────┬───────────────┬────────────────┬───────────────┐
│ dataService                                │ protocolNetwork  │ tokensProvisioned │ tokensAllocated │ tokensThawing │ maxVerifierCut │ thawingPeriod │
├────────────────────────────────────────────┼──────────────────┼───────────────────┼─────────────────┼───────────────┼────────────────┼───────────────┤
│ 0xc24a3dac5d06d771f657a48b20ce1a671b78f26b │ arbitrum-sepolia │ 137,500.0         │ 32,000.0        │ 0.0           │ 50.0           │ 28800         │
└────────────────────────────────────────────┴──────────────────┴───────────────────┴─────────────────┴───────────────┴────────────────┴───────────────┘

Indexer's idle stake: 77,198.707947871549510122 GRT
To add this stake to the Subgraph Service provision, run 'graph indexer provision add <amount>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions