Skip to content

v0.8.0

Choose a tag to compare

@SaulBuilds SaulBuilds released this 09 Nov 15:52
· 4 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.8.0
82eaa0b

Minor release: new API only, nothing removed or changed in an incompatible way. Publish once the
CitrateScan verify API (v2) serves verifysourcecode / checkverifystatus at
DEFAULT_EXPLORER_URL.

Added

  • citrate_sdk.verify: verify_contract and deploy_and_verify verify Solidity source on
    CitrateScan through its Etherscan-compatible API (verifysourcecode, checkverifystatus) from
    forge or hardhat build-info, a hardhat artifact, or a standard JSON input, with polling and typed
    errors (VerificationError and subclasses). Also load_build_info, parse_build_info,
    prepare_standard_json, check_verify_status, wait_for_verification.
  • CitrateClient.deploy_contract(data, value=0, gas_limit=None, receipt_timeout=120): sign and
    send a contract-creation transaction (same genesis and chain-id checks) and wait for the receipt
    (DEPLOY_FAILED on a status-0 receipt).
  • Verification details: chain_id is optional (sent as chainid on the submission and every
    status call only when given, as citrate contract verify --chain-id); transient explorer errors
    (transport, timeout, HTTP 5xx and 429) are retried while waiting, with a backoff capped by
    transient_backoff_max, and flagged by ExplorerResponseError.transient; not-indexed
    resubmissions wait at least rate_limit_backoff; transport-error messages never include the API
    key or the request's query string.

Fixed (review follow-up on #21)

  • wait_for_verification: the transient backoff exponent is clamped (transient_backoff) and
    poll_interval is at least MIN_POLL_INTERVAL (5 ms), so poll_interval=0 no longer retries in
    a tight loop and poll_interval=0.0 with transient_backoff_max=0.0 can no longer raise
    OverflowError after 1024 consecutive transient errors.