Skip to content

fix(frontend): regenerate gql/graphql.ts to include ScheduledDistributor* types #523

@yu23ki14

Description

@yu23ki14

One-liner

v3 で追加された ScheduledDistributor 系のエンティティ型が pkgs/frontend/gql/graphql.ts に未生成。Goldsky 上の subgraph 再デプロイ前は /scheduled 系ルートが runtime で 500 になる。

Description

pkgs/subgraph/schema.graphql には以下が定義されているが、pkgs/frontend/gql/graphql.ts には対応する生成型が存在しない:

  • ScheduledDistributor
  • ScheduledDistributorDeposit
  • ScheduledDistributorTokenBalance
  • SplitsCreatorWorkspace

useScheduledDistributor.ts@apollo/client/core から raw gql を import しているので typecheck では落ちないが、deployed Goldsky subgraph (toban-sepolia/1.0.3 / toban-base/0.0.1) が v3 schema で再デプロイされていない場合、ランタイムで Type "Query" has no field "scheduledDistributors" が返り、/scheduled 系のページが全てエラー画面になる。

Requirements

  • Goldsky 上の subgraph を v3 schema で再デプロイ(Sepolia, Base 両方)
  • pnpm frontend codegen を実行して pkgs/frontend/gql/graphql.ts を再生成
  • 該当の型が含まれることを git diff で確認
  • useScheduledDistributor の query 群を生成型ベースに移行することを検討(任意)

Supplements

関連ファイル:

  • pkgs/frontend/gql/graphql.ts
  • pkgs/frontend/codegen.ts
  • pkgs/subgraph/schema.graphql
  • pkgs/frontend/hooks/useScheduledDistributor.ts

出典: v3 code-review (/code-review ultra-high effort, 2026-05-27)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    MiddlePriority MiddlebugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions