Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Epoch and Blocknumber gives false information

Đang mở
#270 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
graphql, typescript
Lĩnh vực
backend, data

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện các truy vấn allocation trong issue và so sánh các giá trị createdAtBlockNumber, closedAtBlockNumber và epoch với các bản ghi Arbiscan được liên kết và các timestamp allocation. Theo dõi cách các trường này được lập chỉ mục trong subgraph này; công việc được xem là hoàn tất khi các giá trị block và epoch được truy vấn phản ánh chính xác các sự kiện allocation on-chain tương ứng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I ran this query
https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum-sepolia/graphql?query=query+MyQuery+%7B%0A++allocations%28where%3A+%7Bid%3A+%220x9b83a26cf9866c4832572325bfdbe9c15c383142%22%7D%29+%7B%0A++++id%0A++++closedAt%0A++++status%0A++++createdAtBlockNumber%0A++++closedAtBlockNumber%0A++++closedAtEpoch%0A++%7D%0A%7D

Which returned this data:

{
  "data": {
    "allocations": [
      {
        "id": "0x9b83a26cf9866c4832572325bfdbe9c15c383142",
        "closedAt": 1712870496,
        "status": "Closed",
        "createdAtBlockNumber": 5635607,
        "closedAtBlockNumber": 5677434,
        "closedAtEpoch": 2208
      }
    ]
  }
}

This is weird since if you go look up for that block number
https://sepolia.arbiscan.io/txs?block=5677434
This tx wont appear there, and its no where to be found

The real txn block can be found here (tho dont ask em which one is it cause I couldn't figure out which one of the multicall txns it correspond to )
https://sepolia.arbiscan.io/address/0x1007f1E9c2271e7d44C04aFA56239150D3a546dA

Also in the same boat as this if you can see epoch it was closed at is 2208
And if you look for latest epoch it is also 2208

In theory it should have advanced since I closed the allocation
As it should advance with those kind of transactions

I also opened an allocation after closing that one, which should have made the epoch advance too

{
  "data": {
    "allocations": [
      {
        "id": "0x2345cd0b8b6937fa88ca9e67a1f52b432f1976a8",
        "closedAt": null,
        "status": "Active",
        "createdAtBlockNumber": 5682784,
        "closedAtBlockNumber": null,
        "closedAtEpoch": null,
        "createdAt": 1712935475
      }
    ]
  }
}

This allocation was opened after closing that one, you can see this by checking the createdAt timestamp which is after the closedAtTimestamp from the other allocation

Ngôn ngữ chính
TypeScript
Star
82
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của graphprotocol/graph-network-subgraph

Tất cả issue của graphprotocol/graph-network-subgraph

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.