Skip to content

feat: frontend ACT balance tracking and display #2713

@baktun14

Description

@baktun14

Context

Part of AEP-76 BME migration. The frontend needs to display ACT balances and support ACT as a deployment denom for managed wallets.

Tasks

Balance Tracking

  • Update apps/deploy-web/src/hooks/useWalletBalance.ts:
    • Add balanceUACT, totalUACT fields to balance types
    • Add case "uact": to useDenomData switch
    • ACT-to-USD conversion is 1:1 (ACT is USD-pegged)

Denom Hooks

  • Update apps/deploy-web/src/hooks/useManagedWalletDenom.ts:
    • Support "uact" as a managed wallet denom option
  • Update apps/deploy-web/src/hooks/useDenom.ts:
    • Add ACT entry to useSdlDenoms(): { id: "uact", label: "uACT", tokenLabel: "ACT", value: "uact" }

Price & Conversion Utils

  • Update apps/deploy-web/src/utils/priceUtils.ts:
    • Handle uact in coinToUDenom/coinToDenom

Transaction Support

  • Update apps/deploy-web/src/context/WalletProvider/WalletProvider.tsx:
    • Add BME message types to MESSAGE_STATES (if new tx types are needed)
  • apps/deploy-web/src/utils/TransactionMessageData.ts:
    • Already uses [Source.grant, Source.balance] — verify compatible with uact
    • Update labels/comments if needed

Acceptance Criteria

  • Managed wallet users see ACT balance displayed as USD equivalent
  • SDL editor allows selecting uact as a denom
  • Deployment creation works with uact denom in the UI
  • Balance displays show correct amounts for ACT-funded deployments

Milestone

AEP-76: BME Migration — Phase 3 (Frontend)

Reference

  • docs/aep-76-bme-migration-plan.md

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions