Skip to content

Fix Bulletin allowance parsing#138

Merged
charlesHetterich merged 1 commit intomainfrom
fix/bulletin-allowance
May 7, 2026
Merged

Fix Bulletin allowance parsing#138
charlesHetterich merged 1 commit intomainfrom
fix/bulletin-allowance

Conversation

@charlesHetterich
Copy link
Copy Markdown
Collaborator

@charlesHetterich charlesHetterich commented May 7, 2026

Summary

  • parse current Bulletin authorization extent fields as allowance - used remaining quota
  • use the normalized remaining quota in deploy preflight and init attestation display
  • add direct unit coverage for current transactions_allowance / bytes_allowance semantics, zero-usage allowance, over-consumed clamp, and rejecting legacy-shaped extents
  • add a patch changeset

Verification

  • pnpm vitest run src/utils/account/authorizationExtent.test.ts src/utils/account/allowance.test.ts src/utils/account/attestation.test.ts
  • npx tsc --noEmit
  • pnpm test
  • pnpm format:check

Context

The current Bulletin runtime reports transactions / bytes as used quota and transactions_allowance / bytes_allowance as the granted totals. The CLI was treating the used counters as remaining quota, which caused active authorizations with zero usage to look exhausted during deploy preflight. This PR intentionally targets the current runtime shape only.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Dev build ready — try this branch:

curl -fsSL https://raw.githubusercontent.com/paritytech/playground-cli/main/install.sh | VERSION=dev/fix/bulletin-allowance bash

@charlesHetterich charlesHetterich force-pushed the fix/bulletin-allowance branch from 01d19a6 to e3c587f Compare May 7, 2026 03:59
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

E2E Test Pass · ✅ PASS

Tag: e2e-ci-pr · Branch: fix/bulletin-allowance · Commit: cc05428 · Run logs

Cell Result Time
pr-init-session ✅ PASS 1m48s
${{ matrix.cell }} ⏭️ SKIP -17m-40s
${{ matrix.cell }} ⏭️ SKIP -17m-40s
pr-deploy-foundry ✅ PASS 2m37s
pr-preflight ✅ PASS 2m36s
pr-deploy-frontend ✅ PASS 8m52s
pr-install ✅ PASS 0m48s
pr-mod ✅ PASS 1m32s
pr-deploy-cdm ✅ PASS 3m34s

Sentry traces: view spans for this run

@charlesHetterich charlesHetterich merged commit 8f3f7b6 into main May 7, 2026
29 of 30 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.

1 participant