Commit 4fc329e
Feature/changes and improvements (#52)
* Feature - Integrate MoonPay SDK for buy/sell functionality in web app (#47) (#50)
* Feature - Integrate MoonPay SDK for buy/sell functionality in web app
* Update src/popup/components/MoonPaySDKWidget.tsx
* Update Withdraw.tsx
* Fix MoonPay extension documentation to reflect new tab implementation (#48)
* Initial plan
* Update MoonPayWidget documentation to reflect new tab approach
---------
* Fix MoonPay widget documentation to reflect new tab implementation (#49)
* Initial plan
* Update MoonPay integration documentation to reflect new tab behavior
---------
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
* feat: add BIP32 and BIP84 derivation tests for Bitcoin addresses
- Implemented BIP32 derivation logic in test-bip32.cjs for generating child keys and addresses.
- Added BIP84 path derivation for native SegWit addresses in test-bip32.cjs.
- Created test-keplr-path.cjs to validate Keplr-compatible derivation paths for Bitcoin.
- Introduced comprehensive tests for UTXO transactions in transaction.test.ts, covering fee estimation, transaction building, and error handling.
- Enhanced crypto tests to validate Bitcoin key derivation and address generation in keyring.test.ts.
- Updated chainRegistry tests to mock cosmos-registry module for better isolation.
* feat: implement IBC transfer functionality and modal in the dashboard
* Add fee validation for sweepAll transactions to prevent excessive fees (#53)
* Fix memory safety in deriveBitcoinKeyPairFromSeed key cleanup (#55)
* Secure pubKey cleanup in BIP32 child key derivation (#54)
* Update transaction.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update bitcoin.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update encrypted-storage.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update transaction.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update walletStore.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update ibc-connections.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update IBCTransferModal.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update IBCTransferModal.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update IBCTransferModal.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update IBCTransferModal.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update Dashboard.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update chainRegistry.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update transaction.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Simplify secureZero function in evm.ts to remove ineffective random overwrite (#56)
* Add BIP32 hardened derivation indicator documentation (#57)
* Fix memory leak in EVM BIP32 child key derivation (#58)
* Use actual UTXO count for Bitcoin max amount fee estimation (#59)
* Remove forceReDerive parameter from address derivation (#60)
* Refactor IBC connections to use pre-bundled data; remove runtime fetching and caching logic
- Updated `fetchIBCConnections` to utilize `getIBCChannelsForChainId` for fetching IBC connections.
- Removed caching mechanism and related functions for IBC connections.
- Re-exported `IBCChannel` type for backward compatibility.
- Cleaned up code and comments for clarity.
- Updated Cosmos registry file with new formatting and removed unnecessary comments.
* Optimize address caching with two-level structure to persist across network switches (#63)
* Initial plan
* Implement two-level cache for Bitcoin and EVM addresses
- Change cache structure from Map<cosmosAddress, address> to Map<cosmosAddress, Map<networkId, address>>
- Addresses now persist across network switches
- Only clear display state on network change, not the entire cache
- Check cache before re-deriving addresses to avoid redundant work
- Improves efficiency for users switching between networks
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Fix infinite loop in cache dependency arrays
- Remove cache state from useEffect dependencies to prevent infinite loops
- Use functional state updates to access previous cache state
- Separate cache checking and updating into distinct phases
- Maintains cache persistence while avoiding re-render cycles
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Refactor cache to use useRef instead of setState for reads
- Replace useState cache with useRef to avoid anti-pattern
- Use trigger state to force re-renders when cache updates
- Read directly from ref without needing setState callbacks
- Cleaner code that follows React best practices
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Add runtime Buffer polyfill checks to prevent initialization order issues (#62)
* Initial plan
* Add runtime Buffer availability checks to prevent initialization order issues
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Refactor: Extract ensureBuffer to shared utility module
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Optimize Buffer checks: call ensureBuffer once at module level
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
* Add documentation explaining defensive Buffer check in ensureBuffer
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Corey-Code <37006206+Corey-Code@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>1 parent f8e3d12 commit 4fc329e
File tree
25 files changed
+9613
-3850
lines changed- scripts
- src
- lib
- assets
- bitcoin
- cosmos
- crypto
- networks
- storage
- popup
- components
- pages
- store
- tests/lib
- assets
- bitcoin
- crypto
25 files changed
+9613
-3850
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
161 | 208 | | |
162 | 209 | | |
163 | 210 | | |
| |||
224 | 271 | | |
225 | 272 | | |
226 | 273 | | |
227 | | - | |
| 274 | + | |
228 | 275 | | |
229 | 276 | | |
230 | 277 | | |
231 | 278 | | |
232 | 279 | | |
233 | | - | |
| 280 | + | |
| 281 | + | |
234 | 282 | | |
235 | 283 | | |
236 | 284 | | |
| |||
239 | 287 | | |
240 | 288 | | |
241 | 289 | | |
242 | | - | |
| 290 | + | |
243 | 291 | | |
244 | | - | |
| 292 | + | |
| 293 | + | |
245 | 294 | | |
246 | 295 | | |
247 | 296 | | |
| |||
424 | 473 | | |
425 | 474 | | |
426 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
427 | 627 | | |
428 | 628 | | |
429 | 629 | | |
| |||
471 | 671 | | |
472 | 672 | | |
473 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
474 | 682 | | |
475 | 683 | | |
476 | 684 | | |
| 685 | + | |
477 | 686 | | |
478 | 687 | | |
479 | 688 | | |
| |||
484 | 693 | | |
485 | 694 | | |
486 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
487 | 699 | | |
488 | 700 | | |
489 | 701 | | |
| |||
0 commit comments