Skip to content

Sub-Issue 4: Hook and UI Behavior Updates #205

@Andre-Diamond

Description

@Andre-Diamond

Problem: Hooks and UI assume MultisigWallet exists and expose staking/governance features incorrectly.

Tasks:

  • Update src/hooks/useWalletBalances.ts to use the new Summon-derived address when present.
  • Update src/hooks/useMultisigWallet.ts and src/hooks/useAppWallet.ts to expose capability metadata for Summon wallets.
  • Update src/hooks/useUserWallets.ts to ensure Summon wallets carry computed capability fields.
  • Update src/components/pages/homepage/wallets/index.tsx and src/components/pages/homepage/wallets/new-wallet-flow/ready/index.tsx to render Summon addresses from capability data (not MultisigWallet).
  • Update src/components/pages/wallet/info/card-info.tsx and src/components/pages/wallet/info/inspect-script.tsx to display stake details only when Summon staking is supported.
  • Update src/components/pages/wallet/staking/StakingActions/stake.tsx to source stake script and reward address from Summon capability data when present.

Affected files:

  • src/hooks/useWalletBalances.ts
  • src/hooks/useMultisigWallet.ts
  • src/hooks/useAppWallet.ts
  • src/hooks/useUserWallets.ts
  • src/components/pages/homepage/wallets/index.tsx
  • src/components/pages/homepage/wallets/new-wallet-flow/ready/index.tsx
  • src/components/pages/wallet/info/card-info.tsx
  • src/components/pages/wallet/info/inspect-script.tsx
  • src/components/pages/wallet/staking/StakingActions/stake.tsx

Acceptance:

  • Summon wallets render the correct address and (when applicable) stake address.
  • No runtime errors when wallet type is Summon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions