Repository navigation
v0.8.0
·
4 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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_contractanddeploy_and_verifyverify 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 (VerificationErrorand subclasses). Alsoload_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_FAILEDon a status-0 receipt).- Verification details:
chain_idis optional (sent aschainidon the submission and every
status call only when given, ascitrate 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 byExplorerResponseError.transient; not-indexed
resubmissions wait at leastrate_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_intervalis at leastMIN_POLL_INTERVAL(5 ms), sopoll_interval=0no longer retries in
a tight loop andpoll_interval=0.0withtransient_backoff_max=0.0can no longer raise
OverflowErrorafter 1024 consecutive transient errors.