Skip to content

Conversation

@ruijialin-avalabs
Copy link
Contributor

@ruijialin-avalabs ruijialin-avalabs commented Oct 30, 2025

Description

Ticket: CP-12312

Please provide:

  • update account redux to include platform account (x/p chain accounts)
  • platform accounts are stored with key of walletId + networkVMType of AVM or PVM
  • balances for platform accounts are stored with key of walletId + networkVMType of AVM or PVM + address
  • update account selectors to select accounts without platform accounts
  • added a account selector to only include platform accounts by wallet Id
  • update balance slice to aggregate total token balance and total token balance in currency across accounts and platform accounts
  • *clicking the platform accounts currently takes user back to portfolio with updated balance header. the portoflio content will be updated to reflect platform account content in future ticket

Screenshots/Videos

Include relevant screenshots or screen recordings of iOS and Android.

Testing

Dev Testing (if applicable)

Mnemonic wallet

  • create wallet and verify the wallet is created with platform accounts and balance
  • import seed phrase and verify the new wallet is created with platform account and balances
  • import private key and verify the new imported account is created with platform account and balances
  • import ledger and verify the ledger wallet is created with platform account and balances

Seeldess wallet

  • login to seedless and verify the wallet is created with platform accounts and balance
  • import seed phrase and verify the new wallet is created with platform account and balances
  • import private key and verify the new imported account is created with platform account and balances
  • import ledger and verify the ledger wallet is created with platform account and balances

Keystone wallet

  • login to keystone and verify the wallet is created with platform accounts and balance
  • import seed phrase and verify the new wallet is created with platform account and balances
  • import private key and verify the new imported account is created with platform account and balances
  • import ledger and verify the ledger wallet is created with platform account and balances

QA Testing (if applicable)

  • Provide instructions for QA to test this feature thoroughly
  • State expected behavior / acceptance criteria

Checklist

Please check all that apply (if applicable)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have included screenshots / videos of android and ios
  • I have added testing steps
  • I have added/updated necessary unit tests
  • I have updated the documentation

@ruijialin-avalabs ruijialin-avalabs marked this pull request as ready for review October 31, 2025 14:58
} => {
const selectedRecentContacts = useSelector(selectRecentContacts)
const accountCollection = useSelector(selectAccounts)
const allAccounts = useSelector(selectAccounts)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will be adjusted in future platform account send flow ticket.

}: {
accounts: AccountCollection
accounts: Account[]
isTestnet: boolean
Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated this function, to avoid unnecessary conversion from Account[] <-> AccountCollection

@ruijialin-avalabs ruijialin-avalabs marked this pull request as draft November 3, 2025 15:54
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