Skip to content

feat(statics): extend the PoX-5 test-contract allowance through month end (2026-12-01) - #10242

Merged
Doddanna17 merged 1 commit into
masterfrom
SI-2644-pox5-allowance-extend
Nov 25, 2026
Merged

Doddanna17 merged 1 commit into
masterfrom
SI-2644-pox5-allowance-extend

Conversation

@Doddanna17

@Doddanna17 Doddanna17 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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:

// modules/statics/src/networks.ts
allowedStakingContracts = [
  { name: 'pox-5', address: 'SP3JVSE4ZB5GMDJP5XBPX7ZB1BG3QDFW7RCEQJDMY', expiresAt: '2026-11-02' },
];

Once expired, contractBuilder.ts:68-71 / pox5Builder.ts:175 drop the pair via isExpired(...), so:

  • buildContractTransaction rejects the address with Invalid contract address — wallet-platform cannot build register-for-bond, and
  • the vault re-parse path passes no caller allowlist (same as every Wallet Platform rehydration path), so the same tx cannot be signed.

Net 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'

expiresAt is a UTC midnight cutoff (isExpired is Date.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-5 name and this address, so canonical SP000000000000000000002Q6VF78.pox-5 and every other contract name (pox-4, send-many-memo, …) are unaffected. Canonical traffic never consults the allowance — it short-circuits earlier in isContractPairValid / isValidContractCall.

Still time-boxed by design: the entry must be removed with the test contract (the existing @obligation on the block, SI-2089).

Verification

  • modules/statics: tsc --noEmit clean
  • No test pins the date: statics tests don't assert it; sdk-coin-stx tests use their own expiresAt: '2999-01-01' pairs (deliberately clock-independent); wallet-platform's stx.pox5RegisterForBond.ts asserts only that the pair exists and carries an expiresAt, and its build→re-parse round-trip skips while expired, so it simply resumes with this change

Follow-ups (not in this PR)

  1. Publish @bitgo-beta/statics.
  2. Bump wallet-platform — @bitgo-beta/statics (packages/wallet-platform/package.json:75) and @bitgo-beta/sdk-coin-stx (:471) — alongside #64805 (pox5StakingContractAddress, gated by stxPox5TestContract).
  3. Bump offline-vault-console — @bitgo-beta/statics at app/frontend/package.json:125 and :264, plus @bitgo-beta/sdk-coin-stx at :105. One OVC release covers both contracts: canonical is always allowed, the dummy only until the expiry.
  4. Also on the hotfix line: staking-service fix: surface error details in sendAccountConsolidations failure array #8634 (dummy contract address + 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, never allowedStakingContracts.

Revert

Reverting SS/WP to canonical needs no SDK work: canonical is validated against network.stakingContractAddress before 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

@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

SI-2644

@Doddanna17
Doddanna17 marked this pull request as ready for review November 25, 2026 13:27
@Doddanna17
Doddanna17 requested a review from a team as a code owner November 25, 2026 13:27

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Compatibility checks are failing on Node.js 27-nightly (experimental, non-blocking). This does not block merge, but it signals an incompatibility to fix before this release becomes supported.

View run

Gautam2305
Gautam2305 previously approved these changes Nov 25, 2026
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
Doddanna17 force-pushed the SI-2644-pox5-allowance-extend branch from 573b76f to f63654a Compare November 25, 2026 15:39
@Doddanna17 Doddanna17 changed the title feat(statics): extend the PoX-5 test-contract allowance to 2027-01-10 (SI-2644) feat(statics): extend the PoX-5 test-contract allowance through month end (2026-12-01) Nov 25, 2026

@Gautam2305 Gautam2305 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Doddanna17
Doddanna17 merged commit 2ee31b1 into master Nov 25, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants