feat(arbitrum-adapter): scaffold @txkit/arbitrum-adapter (Buildathon Week 1)#18
Merged
Merged
Conversation
Skeleton package for the Arbitrum Open House London Buildathon Week 1 deliverable. Bridges Arbitrum specifics and the ERC-8265 PreparedTransaction Envelope via four additive `meta.arbitrum.*` sub-keys plus an Arbitrum-aware calldata decoder seed. Surface: - attach/extract/isBridgeIntent (canonical / Hop / Across / Stargate + open string) - attach/extract/isRetryableHints (l2Gas, l2GasPriceBid, maxSubmissionCost, refunds) - attach/extract/isSequencerFeePreview (L1 calldata + L2 compute split, Nova compression flag) - previewSequencerFee (stub; viem-driven precompile reads land in alpha.1) - decodeArbitrumCall + KNOWN_ARBITRUM_ADDRESSES (precompiles, Delayed Inbox, Hop / Across L1 entrypoints) 18 vitest tests pass. tsc --noEmit clean. tsup build: 4.86 KB ESM / 5.26 KB CJS / 9.98 KB DTS. Apache-2.0. Zero React or wagmi deps. Mirrors @txkit/x402-adapter and @txkit/ows-adapter structure.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…ards - New `Publish @txkit/arbitrum-adapter` step before the @txkit/react step (the only consumer of the cohort with internal deps, kept last). - Each publish step now wraps `pnpm publish` in a `npm view ... >/dev/null 2>&1` check so cohort releases ship only the packages whose package.json version is not yet on the registry. A v* tag can add a new package without forcing a synchronized cohort bump for the seven existing ones (alpha.3 will stay alpha.3, arbitrum-adapter alpha.0 publishes cleanly). - Behaviour for the documented synchronized-cohort path is unchanged: bump everyone's version, tag v0.1.0-alpha.N, all eight publish.
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.
Summary
@txkit/arbitrum-adapterskeleton package for the Arbitrum Open House London Buildathon (Week 1 deliverable, originally due 2026-05-28).@txkit/x402-adapterand@txkit/ows-adapter: typed shape on aPreparedEnvelope.meta.arbitrumslot, zero React or wagmi deps, Apache-2.0.What's in the package
src/types.tsArbitrumChainId,L1ToL2BridgeIntent,L1ToL2BridgeProvider,RetryableTicketHints,SequencerFeePreview,ArbitrumMeta,EnvelopeWithArbitrum,ArbitrumDecodedCallsrc/bridge.tsattachBridgeIntent/extractBridgeIntent/isBridgeIntentsrc/retryable.tsattachRetryableHints/extractRetryableHints/isRetryableHintssrc/sequencer.tsattachSequencerFeePreview/extractSequencerFeePreview/isSequencerFeePreview/previewSequencerFee(stub) /NOVA_USES_COMPRESSED_CALLDATAsrc/decoder.tsdecodeArbitrumCall+KNOWN_ARBITRUM_ADDRESSESregistrysrc/__tests__/arbitrum.spec.tsSkeleton vs full implementation
previewSequencerFeenull)ArbGasInfo+NodeInterface.gasEstimateL1ComponentreadscreateRetryableTicket,ArbSys.sendTxToL1,ArbSys.withdrawEth)@txkit/tx-decoderVerification
Test plan
pnpm --filter @txkit/arbitrum-adapter typecheckgreenpnpm --filter @txkit/arbitrum-adapter test18/18 passpnpm --filter @txkit/arbitrum-adapter buildproduces ESM + CJS + DTSlicense: "Apache-2.0"in package.json@txkit/x402-adapterand@txkit/ows-adapterconventions)Out of scope (intentionally)
previewSequencerFeebody (viem dep would inflate alpha.0 footprint; deferred to alpha.1)@txkit/tx-decoder)size-limitconfig + addition to rootpnpm sizescript (alpha.0 not publish-bound, can land in alpha.1)Forum post draft (out-of-tree, Mike review)
Companion draft for the Builder's Block forum outreach lives at
~/WebstormProjects/claude/wiki/projects/txkit-erc-draft/buildathon-week1-forum-2026-05-29.md(~340 words, intentionally tighter than the 2026-05-28 ERC-composition draft; leads with this adapter as the artifact).Related
~/WebstormProjects/claude/wiki/projects/txkit-erc-draft/arbitrum-buildathon-strategy-2026-05-21.md