mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* feat: Support multiple crypto wallets with same token Allows users to import multiple wallets containing the same cryptocurrency (e.g., ETH on different wallet addresses). Changes: - Add wallet_address column to coinstats_accounts - Update uniqueness validation to include wallet_address - Extract and store wallet address in WalletLinker - Add composite unique index on [item_id, account_id, wallet_address] - Add tests for multi-wallet support and backwards compatibility Users can now have: - ETH (0xAAA...) → "Ethereum (0xAA...AA)" - ETH (0xBBB...) → "Ethereum (0xBB...BB)" Backwards compatible: existing accounts with wallet_address: nil continue to work. * style: Fix array bracket spacing in migration * chore: Update schema.rb with wallet_address column and index Add the missing wallet_address column and composite unique index to db/schema.rb for CI compatibility with db:schema:load * test: Add test for wallet deletion with same token different addresses Verifies that deleting one wallet does not affect other wallets that share the same token but have different addresses. Addresses review comment from @EthanC via @jjmata --------- Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2.0 KiB
2.0 KiB