Skip to content

[frontend] scripts/export-abis.ts: Foundry out/ → packages/shared/abi.ts automation #46

@ozpool

Description

@ozpool

Context

Script that reads Foundry out/ and writes typed ABI constants into shared. Run after every forge build.

Ref: PRISM_PRD_v1.0.html §Day 1.

Scope

In scope:

  • scripts/export-abis.ts
  • Wired into Turborepo build task so it runs post-forge-build
  • Outputs typed as const ABI objects

Out of scope:

  • Manual ABI editing

Acceptance Criteria

  • pnpm build regenerates shared ABIs
  • All tx states rendered (idle/pending/success/error/wrong-network)
  • wagmi v2 + viem v2 (not ethers)
  • ABIs from packages/shared (never hand-maintained)
  • Keyboard navigable; semantic HTML; WCAG AA contrast
  • Responsive at 320 / 768 / 1280
  • pnpm typecheck && pnpm lint && pnpm test pass

Dependencies

References

  • N/A

Estimate

S

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions