Repository navigation
feat(statics): extend the PoX-5 test-contract allowance through month end (2026-12-01) - #10242
Merged
Merged
Conversation
Contributor
Doddanna17
marked this pull request as ready for review
November 25, 2026 13:27
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
|
|
Gautam2305
previously approved these changes
Nov 25, 2026
Doddanna17
force-pushed
the
SI-2644-pox5-allowance-extend
branch
from
November 25, 2026 15:14
fd2298f to
573b76f
Compare
The mainnet PoX-5 dummy-contract test is still in progress, but the pinned allowedStakingContracts pair for SP3JVSE4ZB... expired 2026-11-02. From then on buildContractTransaction rejects the address with 'Invalid contract address', and the vault re-parse path (which passes no allowlist) refuses the same tx, so register-for-bond cannot be built or signed end to end. Set the expiry to 2026-12-01, which is a UTC midnight cutoff and therefore keeps the pair usable through Nov 30 inclusive (month end). Still scoped to the pox-5 name and this address, and still time-boxed: remove the entry with the test contract (SI-2089). Ticket: SI-2644
Doddanna17
force-pushed
the
SI-2644-pox5-allowance-extend
branch
from
November 25, 2026 15:39
573b76f to
f63654a
Compare
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.
Context
The mainnet PoX-5 dummy-contract test (SI-2644) needs the pinned test-contract allowance in the
Stx(mainnet) network statics, but that pin expired on 2026-11-02:Once expired,
contractBuilder.ts:68-71/pox5Builder.ts:175drop the pair viaisExpired(...), so:buildContractTransactionrejects the address withInvalid contract address— wallet-platform cannot buildregister-for-bond, andNet effect: a stake can lock BTC and then be unable to register against the dummy contract — the failure this PR unblocks.
Change
One value plus its comment in
modules/statics/src/networks.ts:expiresAt: '2026-11-02'→expiresAt: '2026-12-01'expiresAtis a UTC midnight cutoff (isExpiredisDate.now() > Date.parse(expiresAt)), so this keeps the pair usable through 2026-11-30 inclusive — month end.Nothing else moves: the pair stays scoped to the
pox-5name and this address, so canonicalSP000000000000000000002Q6VF78.pox-5and every other contract name (pox-4,send-many-memo, …) are unaffected. Canonical traffic never consults the allowance — it short-circuits earlier inisContractPairValid/isValidContractCall.Still time-boxed by design: the entry must be removed with the test contract (the existing
@obligationon the block, SI-2089).Verification
modules/statics:tsc --noEmitcleanstaticstests don't assert it;sdk-coin-stxtests use their ownexpiresAt: '2999-01-01'pairs (deliberately clock-independent); wallet-platform'sstx.pox5RegisterForBond.tsasserts only that the pair exists and carries anexpiresAt, and its build→re-parse round-trip skips while expired, so it simply resumes with this changeFollow-ups (not in this PR)
@bitgo-beta/statics.@bitgo-beta/statics(packages/wallet-platform/package.json:75) and@bitgo-beta/sdk-coin-stx(:471) — alongside #64805 (pox5StakingContractAddress, gated bystxPox5TestContract).@bitgo-beta/staticsatapp/frontend/package.json:125and:264, plus@bitgo-beta/sdk-coin-stxat:105. One OVC release covers both contracts: canonical is always allowed, the dummy only until the expiry.BOND_READ_SOURCE=CONTRACT+ mainnet cosigner), Flipt fix(abstract-eth): skip derived address validation for v5 forwarder #5337.Not needed:
bitgo-retail— it consumes statics only for coin/token metadata and coin registration, neverallowedStakingContracts.Revert
Reverting SS/WP to canonical needs no SDK work: canonical is validated against
network.stakingContractAddressbefore the allowance lookup, so an expired (or removed) pair is inert. Drain any in-flight dummy register approvals before the date passes, or those pending transactions become unsignable.Related
SI-2644, SI-2089 (removal ticket), SI-2405 / SI-2621 (retail), WP #64805, SS #8627 + #8634 (hotfix), Flipt #5337