Skip to content

v0.1.1

Latest

Choose a tag to compare

@dkijania dkijania released this 27 May 22:38
2b29901

Bug fixes

  • Fix GET_ACCOUNT_WITH_TOKEN token-arg type: the daemon expects TokenId, not UInt64. Any call to client.get_account_with_token() with a non-empty token now succeeds against current Mina daemons. (#26)
  • Refresh src/mina_sdk/schema/graphql_schema.json snapshot against devnet (49 normalization diffs; no SDK behavior change). (#26)

Tooling

  • Two-layer GraphQL schema-drift checker (scripts/check_schema_drift.py):
    • Layer 1: introspect the live daemon and diff against the checked-in schema. Detects added/removed types, field-type changes, argument-type changes (the exact bug above), and inputField-type changes.
    • Layer 2: parses src/mina_sdk/daemon/queries.py, sends each operation with sentinel variables, classifies GraphQL errors. Connection errors are bucketed as infrastructure failures (always exit 1); unknown-sentinel-type ops fail in --strict. The classifier prefers structural drift patterns over the path-based runtime fallback (Mina attaches path to many validation errors). (#27)