[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[x] Other... Please describe: This PR provides the API and View to add time-locked Bitcoin addresses and display their balances on the home page
π Background
CoreDao has released the self-custody BTC staking function on https://stake.coredao.org/. However, after users stake their BTC to the CLTV script address, they cannot see any balance in Xverse. This PR provides an API to add the script address, allowing users to view the locked Bitcoin and the lock time in Xverse.
Issue Link: #[issue_number]
Context Link (if applicable):
π Changes
1) Add new API on RPC
2) Display locked Bitcoin balances on the home page
3) Implement confirmation modal for locked Bitcoin
4) Add a view for the locked Bitcoin list
5) Implement storage for saving information about locked Bitcoin
Impact:
Explain the broader impact of these changes.
How it improves performance, fixes bugs, adds functionality, etc.
Test Command: window.XverseProviders.LockedBitcoinProvider.addLockedBitcoin(JSON.stringify({address:'2N77umtu7SaNqxP7i7jJ16QG58eVA7kFAJ7',script:'044cfc4266b17576a9142f1123db7813ea56787ce149b79c117a312fd1ac88ac'})) (Please ensure the address and script originate from the staking transaction sent by the Xverse account)
πΌ Screenshot / πΉ Video
β Review checklist
Please ensure the following are true before merging:
[ ] Code Style is consistent with the project guidelines.
[ ] Code is readable and well-commented.
[ ] No unnecessary or debugging code has been added.
[ ] Security considerations have been taken into account.
[ ] The change has been manually tested and works as expected.
[ ] Breaking changes and their impacts have been considered and documented.
[ ] Code does not introduce new technical debt or issues.
π PR Type
What kind of change does this PR introduce?
π Background
CoreDao has released the self-custody BTC staking function on https://stake.coredao.org/. However, after users stake their BTC to the CLTV script address, they cannot see any balance in Xverse. This PR provides an API to add the script address, allowing users to view the locked Bitcoin and the lock time in Xverse.
Issue Link: #[issue_number] Context Link (if applicable):
π Changes
1) Add new API on RPC 2) Display locked Bitcoin balances on the home page 3) Implement confirmation modal for locked Bitcoin 4) Add a view for the locked Bitcoin list 5) Implement storage for saving information about locked Bitcoin
Impact:
πΌ Screenshot / πΉ Video
β Review checklist
Please ensure the following are true before merging: