Skip to content

@odatano/nightgate 0.37.0

Choose a tag to compare

@maxalexweber1 maxalexweber1 released this 25 Oct 11:45
· 27 commits to main since this release
1a979a0

@odatano/nightgate 0.37.0

Fewer calls per sponsored transaction and clearer transaction IDs. No schema or circuit changes.

  • getJobStatus: new transactionId (ledger identifier, same as txHash) and transactionHash (explorer hash, null until indexed).
  • getJobStatus(…, waitMs): waits up to 25 s for succeeded, failed,, or reconciliation_required; no connection held while waiting, at most 100 waiting calls.
  • GET /zk-config/<contract>: lists circuits and served files instead of 404.
  • ContractStates/stateAt: NIGHTGATE_STATE_AT_INDEXER_RATE (default 2 per second); equal requests share one indexer read; 503 while the indexer has not reached the contract's newest action.
  • @odatano/nightgate-tx 0.15.0: long-poll in waitForJob (longPollMs, default 20000; old servers are polled), transactionHash in the job result, stateAt retries on 503 and 429 (stateRetryMs, default 30000), one temporary file per prover-key writer.
  • @odatano/nightgate-tx 0.15.0: example/anchor.mjs without an indexer and with keyless verify, example/self-funded.mjs requires INDEXER_HTTP_URL, README examples on oda_ keys and attestation-vault-32.
  • Docs: map-size rule for batches (docs/txbuilder.md), identifier and explorer hash (docs/actions.md), link to the hosted quickstart.

Full Changelog: v0.36.2...v0.37.0