Repository navigation
Conversation
The /sdk reference was a hand-vendored TypeDoc export of @obolnetwork/obol-sdk v2.11.8. Regenerate it from v2.16.1 (cf0106c) with a new script, scripts/update-sdk-reference.mjs, which runs the SDK's TypeDoc config in a checkout and writes docs/sdk, its copy in the latest versioned docs and the SDK sidebar categories. 106 pages (53 new, none removed, no URL changes): the typed error classes, ENR, deposit and BLS helpers, RecombineExitBlobsOptions, EXIT_NETWORKS and other constants. Exit.recombineExitBlobs now shows its options and verification. Tables on the SDK pages scroll on their own, as the error classes' seven-column tables otherwise widen the page.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
The SDK reference at
/sdkwas a hand-vendored TypeDoc export of@obolnetwork/obol-sdkv2.11.8. This regenerates it from v2.16.1 (tagv2.16.1,cf0106c) and adds the script that does it.scripts/update-sdk-reference.mjs <path-to-obol-sdk>: runs the SDK's own TypeDoc config in the checkout, then writesdocs/sdk/andversioned_docs/version-v1.11/sdk/(identical copies), and theitemsof the six SDK categories insidebars.jsandversioned_sidebars/version-v1.11-sidebars.json. It keeps existing front matter (so slugs do not move), addssidebar_label/slugto new pages, sets the**SDK Version:**line, points the README'sdocs.obol.orglinks at pages of this site, removes pages of exports that no longer exist, and fails on broken relative links, slug collisions or local paths in the output. One line in the README documents it.ENR,ObolApiError,ObolSdkErrorand the typed errors (ValidationError,UnauthorizedError,NotFoundError,RateLimitError,ConflictError,RequestTimeoutError,SignerRequiredError,UnsupportedChainError,ChainMismatchError,DefinitionVerificationError,NotAnOperatorError,IncentivesPreflightError,PayloadValidationError,InvalidArgumentError,ExitRecombineError,InvalidBaseUrlError,ClusterLockValidationTimeoutError,ClusterLockValidationBusyError,TransactionSubmissionError)builderBlsCheck,depositBlsCheck,getWithdrawalRequestFee,hasUniqueDistributedKeys,isSupportedClusterVersion,resolveWithdrawalFee,validateDepositDataStructureExitNetwork,ObolApiErrorInit,RecombineExitBlobsOptionsBlsSignatureCheck,DepositKind,ExitRecombineErrorCode,GetDepositDataOptions,LockDepositData,PreflightIssue,PreflightResult,TransactionSentInfo,ValidatorDeposit,WriteOptionsALLOWED_OBOL_API_BASE_URLS,CONFLICT_ERROR_MSG,DEFAULT_REQUEST_TIMEOUT_MS,EXIT_NETWORKS,MERKLE_DISTRIBUTOR_RUNTIME,MIN_SUPPORTED_CLUSTER_VERSION,OBOL_TOKEN_ADDRESS,SUPPORTED_CHAIN_IDS,SUPPORTED_DEFINITION_VERSIONS,TERMS_ACCEPTED_MSG,WITHDRAWAL_REQUEST_CONTRACT_ADDRESSclient.exit.recombineExitBlobs(exitBlob, options?)and its verification,client.getDepositData,claimIncentiveswith a Safe signer, the error classes.src/css/custom.css: one rule scoped to the/sdkpages so the generated tables scroll on their own (Infima's defaultdisplay: block; overflow-x: auto); tables that fit no longer stretch to the full content width. The error classes have seven-column property tables that otherwise widen the page by up to 320 px at 1440 px (/sdk/interfaces/clusterdefinitionalready overflows on the live site).How to review
Everything under
docs/sdk/andversioned_docs/version-v1.11/sdk/is generated: review the script, the sidebar diffs (insertions only) and the CSS rule, and spot-check/sdk/index,/sdk/classes/exit,/sdk/classes/exitrecombineerror.To reproduce: check out obol-sdk at
v2.16.1,yarn install --frozen-lockfile --ignore-scripts, thennode scripts/update-sdk-reference.mjs <that checkout>; the result is byte-identical.Verification
yarn typecheckandyarn build(onBrokenLinks: 'throw') pass./sdkpages loaded in headless Chromium at 1440 px: none overflows horizontally, no dead in-page anchors.Not in this PR