Skip to content

feat: add GetVerificationKeyUpdates - #1

Merged
dkijania merged 1 commit into
mainfrom
feat/verification-key-updates
Sep 2, 2026
Merged

feat: add GetVerificationKeyUpdates#1
dkijania merged 1 commit into
mainfrom
feat/verification-key-updates

Conversation

@dkijania

@dkijania dkijania commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

What & why

Archive-Node-API 1.0.0 adds a verificationKeyUpdates root field — applied account updates that set a given verification key, over a required block range (o1-labs/Archive-Node-API#225). This SDK could not reach it, and its vendored schema.graphql predated it by three types.

The schema delta is purely additiveVerificationKeyUpdateFilterInput, VerificationKeyUpdate, and the root field. Nothing existing was removed, renamed or retyped, so this is a new capability, not a migration.

Changes

  • schema.graphql refreshed from upstream main. check_schema_drift.sh reports in sync again.
  • queryVerificationKeyUpdates selects the full type, matching the field-coverage convention the other four documents follow.
  • Client.GetVerificationKeyUpdates(ctx, in) sits beside the existing query methods: same retry path, same missing-field error when the server returns a null field.
  • VerificationKeyUpdateFilterInput types From and To as plain int, not the *int the optional filters use, because the schema requires them: the server bounds the span by its configured BLOCK_RANGE_SIZE. Only Status is omitted from the variables when unset.
  • README API table gains a row.

Testing

  • go build ./..., go vet ./..., gofmt -s -l . — all clean
  • go test -race -count=1 ./...25 tests pass, 0 failures: a happy path over an httptest server, and one capturing the request body to pin that the required range is sent and status is omitted when unset
  • integration_test.go gains a VerificationKeyUpdates subtest querying the single verification key present in the upstream sample dump
  • scripts/check_schema_drift.sh — in sync

go mod tidy was not re-run: go.mod requires Go 1.21 and the local toolchain is 1.19. Neither go.mod nor go.sum is touched by this change.

Note on the drift guard

This repo's weekly Schema Drift workflow had been switched off by GitHub (disabled_inactivity) after 60 days without a commit, which is why the new query went unnoticed — the same had happened in all three archive SDKs. It has been re-enabled; merging this commit also resets the inactivity clock.

🤖 Generated with Claude Code

https://claude.ai/code/session_012LtdRKTkaKRAuTkEEpgPcc

Archive-Node-API 1.0.0 adds a `verificationKeyUpdates` query — applied
account updates that set a given verification key, bounded by a required
block range (o1-labs/Archive-Node-API#225). This SDK had no way to reach
it, and its vendored schema predated it.

- schema.graphql refreshed from upstream main; the drift check is green
  again. The delta is purely additive.
- queryVerificationKeyUpdates selects the full type, matching the
  field-coverage convention of the other four documents.
- GetVerificationKeyUpdates follows GetEvents/GetActions: same retry
  path, same MissingFieldError on a null field.
- VerificationKeyUpdateFilterInput takes From and To as plain ints rather
  than the *int used by the optional filters, because the schema requires
  them — the server bounds the span by its BLOCK_RANGE_SIZE. Only Status
  is omitted from the variables when unset.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012LtdRKTkaKRAuTkEEpgPcc
@dkijania
dkijania merged commit f0a826a into main Sep 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant