@dodoex/wallet-web3-react 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/babel.config.js +9 -9
  2. package/dist/cjs/index.cjs +4 -13
  3. package/dist/cjs/locales/en.js +1 -1
  4. package/dist/cjs/locales/zh.js +1 -1
  5. package/dist/index.js +4 -13
  6. package/dist/locales/en.js +1 -1
  7. package/dist/locales/zh.js +1 -1
  8. package/dist/types/ClientProvider.d.ts +1 -1
  9. package/dist/types/LangProvider.d.ts +1 -1
  10. package/dist/types/WalletConnect/AccountPage.d.ts +1 -1
  11. package/dist/types/WalletConnect/ActivityList.d.ts +5 -4
  12. package/dist/types/WalletConnect/ConnectAlchemy/index.d.ts +2 -1
  13. package/dist/types/WalletConnect/ConnectDialog.d.ts +2 -1
  14. package/dist/types/WalletConnect/ConnectLedger/ErrorDialog.d.ts +1 -1
  15. package/dist/types/WalletConnect/ConnectLedger/LoadingDialog.d.ts +1 -1
  16. package/dist/types/WalletConnect/ConnectLedger/LockedDialog.d.ts +1 -1
  17. package/dist/types/WalletConnect/ConnectLedger/ProtocolDialog.d.ts +1 -1
  18. package/dist/types/WalletConnect/ConnectLedger/SelectAddressDialog.d.ts +1 -1
  19. package/dist/types/WalletConnect/ConnectLedger/SelectPathDialog.d.ts +1 -1
  20. package/dist/types/WalletConnect/ConnectLedger/index.d.ts +1 -1
  21. package/dist/types/WalletConnect/ConnectPage.d.ts +1 -1
  22. package/dist/types/WalletConnect/HasBalanceTokenList.d.ts +1 -1
  23. package/dist/types/WalletConnect/ReceiveTokenPage.d.ts +2 -1
  24. package/dist/types/WalletConnect/SendTokenPage.d.ts +2 -1
  25. package/dist/types/WalletConnect/WalletDialog.d.ts +2 -1
  26. package/dist/types/WalletConnectProvider.d.ts +2 -2
  27. package/dist/types/components/AddressWithLinkAndCopy.d.ts +2 -2
  28. package/dist/types/components/Dialog.d.ts +3 -3
  29. package/dist/types/components/WalletTag.d.ts +1 -1
  30. package/lingui.config.ts +13 -13
  31. package/package.json +90 -90
  32. package/rollup.config.mjs +106 -103
  33. package/src/ClientProvider.tsx +17 -17
  34. package/src/LangProvider.tsx +36 -36
  35. package/src/WalletConnect/AccountPage.tsx +498 -498
  36. package/src/WalletConnect/ActivityList.tsx +606 -606
  37. package/src/WalletConnect/ConnectAlchemy/index.tsx +248 -248
  38. package/src/WalletConnect/ConnectAlchemy/useConnectAlchemy.ts +105 -105
  39. package/src/WalletConnect/ConnectDialog.tsx +35 -35
  40. package/src/WalletConnect/ConnectLedger/ErrorDialog.tsx +61 -61
  41. package/src/WalletConnect/ConnectLedger/LockedDialog.tsx +54 -54
  42. package/src/WalletConnect/ConnectLedger/helper.ts +14 -14
  43. package/src/WalletConnect/ConnectPage.tsx +508 -508
  44. package/src/WalletConnect/HasBalanceTokenList.tsx +202 -202
  45. package/src/WalletConnect/ReceiveTokenPage.tsx +145 -145
  46. package/src/WalletConnect/SendTokenPage.tsx +251 -251
  47. package/src/WalletConnect/WalletDialog.tsx +80 -80
  48. package/src/WalletConnectProvider.tsx +57 -57
  49. package/src/components/AddressWithLinkAndCopy.tsx +202 -202
  50. package/src/components/Dialog.tsx +158 -158
  51. package/src/components/TokenLogo.tsx +167 -167
  52. package/src/components/WalletTag.tsx +117 -117
  53. package/src/constants/localstorage.ts +24 -24
  54. package/src/hooks/useConnectWallet.ts +150 -150
  55. package/src/hooks/useFetchFiatPrice.ts +53 -53
  56. package/src/hooks/useFetchTokensBalance.ts +53 -53
  57. package/src/hooks/useHasBalanceTokenList.ts +95 -95
  58. package/src/hooks/useTransactionList.ts +89 -89
  59. package/src/index.tsx +7 -7
  60. package/src/locales/en.js +1 -1
  61. package/src/locales/en.po +8 -8
  62. package/src/locales/zh.js +1 -1
  63. package/src/locales/zh.po +4 -4
  64. package/src/react19-types.d.ts +12 -0
  65. package/src/utils/formatter.ts +102 -102
  66. package/src/utils/time.ts +21 -21
  67. package/src/utils/utils.ts +8 -8
  68. package/tsconfig.json +22 -22
@@ -1 +1 @@
1
- /*eslint-disable*/module.exports={messages:JSON.parse("{\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"AeXO77\":\"Account\",\"XJOV1Y\":\"Activity\",\"OBdohg\":\"Add Liquidity\",\"Du6bPw\":\"Address\",\"Z7ZXbT\":\"Approve\",\"vN+hAq\":\"Available Ledger Account\",\"fsBGk0\":\"Balance\",\"E/yE9x\":\"Before proceeding make sure\",\"3UCJ3e\":\"Check your email and click the link to complete login\",\"Mlg3Ds\":\"Choose existing passkey\",\"zXCpR0\":\"Claim Rewards\",\"RETKSh\":\"Connect Alchemy\",\"CtByM7\":\"Connect Wallet\",\"QHcLEN\":\"Connected\",\"9zb2WA\":\"Connecting\",\"xGVfLh\":\"Continue\",\"6V3Ea3\":\"Copied\",\"gCNLBV\":\"Copy wallet address\",\"14s9LL\":\"Create Liquidity Mining\",\"OzjK0A\":\"Create new passkey\",\"WZRsOg\":\"End mining\\\\n\",\"6KnyG0\":\"Enter email\",\"7Bj3x9\":\"Failed\",\"sr0UJD\":\"Go Back\",\"S0kLOH\":\"ID\",\"9ow2PX\":\"Installed Wallet\",\"B2Tpo0\":\"Invalid email\",\"rwC96V\":\"Invalid wallet address\",\"xHr8Pp\":\"Last connection\",\"EYDfo2\":\"Loading more\",\"Z3FXyt\":\"Loading...\",\"6Ui8nZ\":\"Log in with your email\",\"3y6FjD\":\"Log in with your email or a passkey\",\"yN5k0R\":\"More Wallets\",\"JE8mMQ\":\"No tokens\",\"zga9sT\":\"OK\",\"U8oDGg\":\"On-chain transaction records\",\"BzEFor\":\"or\",\"UbRKMZ\":\"Pending\",\"8OiU8L\":\"Pool Creation\",\"lDgVWA\":\"Receive\",\"pkRuyd\":\"Receiver address\",\"3XBvkd\":\"Remove Liquidity\",\"OfhWJH\":\"Reset\",\"JlFcis\":\"Send\",\"JYKRJS\":\"Stake\",\"hQRttt\":\"Submit\",\"KAbcm2\":\"Succeeded\",\"vH2C/2\":\"Swap\",\"kdetxi\":\"The Ledger Device is locked\\nPlease unlock from the device\",\"FzJ11V\":\"This is empty\",\"TP9/K5\":\"Token\",\"zPGNJm\":\"Transfer\",\"LobdAW\":\"Unknown Error\"}")};
1
+ /*eslint-disable*/module.exports={messages:JSON.parse("{\"14s9LL\":[\"Create Liquidity Mining\"],\"3UCJ3e\":[\"Check your email and click the link to complete login\"],\"3XBvkd\":[\"Remove Liquidity\"],\"3y6FjD\":[\"Log in with your email or a passkey\"],\"6KnyG0\":[\"Enter email\"],\"6Ui8nZ\":[\"Log in with your email\"],\"6V3Ea3\":[\"Copied\"],\"7Bj3x9\":[\"Failed\"],\"8OiU8L\":[\"Pool Creation\"],\"9ow2PX\":[\"Installed Wallet\"],\"9zb2WA\":[\"Connecting\"],\"AeXO77\":[\"Account\"],\"B2Tpo0\":[\"Invalid email\"],\"BzEFor\":[\"or\"],\"CtByM7\":[\"Connect Wallet\"],\"Du6bPw\":[\"Address\"],\"E/yE9x\":[\"Before proceeding make sure\"],\"EYDfo2\":[\"Loading more\"],\"FzJ11V\":[\"This is empty\"],\"JE8mMQ\":[\"No tokens\"],\"JYKRJS\":[\"Stake\"],\"JlFcis\":[\"Send\"],\"KAbcm2\":[\"Succeeded\"],\"LobdAW\":[\"Unknown Error\"],\"Mlg3Ds\":[\"Choose existing passkey\"],\"OBdohg\":[\"Add Liquidity\"],\"OfhWJH\":[\"Reset\"],\"OzjK0A\":[\"Create new passkey\"],\"QHcLEN\":[\"Connected\"],\"RETKSh\":[\"Connect Alchemy\"],\"S0kLOH\":[\"ID\"],\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"TP9/K5\":[\"Token\"],\"U8oDGg\":[\"On-chain transaction records\"],\"UbRKMZ\":[\"Pending\"],\"XJOV1Y\":[\"Activity\"],\"Z3FXyt\":[\"Loading...\"],\"Z7ZXbT\":[\"Approve\"],\"fsBGk0\":[\"Balance\"],\"gCNLBV\":[\"Copy wallet address\"],\"gPbbTL\":[\"The Ledger Device is locked\\\\nPlease unlock from the device\"],\"hQRttt\":[\"Submit\"],\"lDgVWA\":[\"Receive\"],\"pkRuyd\":[\"Receiver address\"],\"rwC96V\":[\"Invalid wallet address\"],\"sr0UJD\":[\"Go Back\"],\"vH2C/2\":[\"Swap\"],\"vN+hAq\":[\"Available Ledger Account\"],\"xGVfLh\":[\"Continue\"],\"xHr8Pp\":[\"Last connection\"],\"yN5k0R\":[\"More Wallets\"],\"z5vMiF\":[\"End mining\\n\"],\"zPGNJm\":[\"Transfer\"],\"zXCpR0\":[\"Claim Rewards\"],\"zga9sT\":[\"OK\"]}")};
@@ -1 +1 @@
1
- /*eslint-disable*/module.exports={messages:JSON.parse("{\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"AeXO77\":\"Account\",\"XJOV1Y\":\"Activity\",\"OBdohg\":\"Add Liquidity\",\"Du6bPw\":\"Address\",\"Z7ZXbT\":\"Approve\",\"vN+hAq\":\"Available Ledger Account\",\"fsBGk0\":\"Balance\",\"E/yE9x\":\"Before proceeding make sure\",\"3UCJ3e\":\"Check your email and click the link to complete login\",\"Mlg3Ds\":\"Choose existing passkey\",\"zXCpR0\":\"Claim Rewards\",\"RETKSh\":\"Connect Alchemy\",\"CtByM7\":\"Connect Wallet\",\"QHcLEN\":\"Connected\",\"9zb2WA\":\"Connecting\",\"xGVfLh\":\"Continue\",\"6V3Ea3\":\"Copied\",\"gCNLBV\":\"Copy wallet address\",\"14s9LL\":\"Create Liquidity Mining\",\"OzjK0A\":\"Create new passkey\",\"WZRsOg\":\"End mining\\\\n\",\"6KnyG0\":\"Enter email\",\"7Bj3x9\":\"Failed\",\"sr0UJD\":\"Go Back\",\"S0kLOH\":\"ID\",\"9ow2PX\":\"Installed Wallet\",\"B2Tpo0\":\"Invalid email\",\"rwC96V\":\"Invalid wallet address\",\"xHr8Pp\":\"Last connection\",\"EYDfo2\":\"Loading more\",\"Z3FXyt\":\"Loading...\",\"6Ui8nZ\":\"Log in with your email\",\"3y6FjD\":\"Log in with your email or a passkey\",\"yN5k0R\":\"More Wallets\",\"JE8mMQ\":\"No tokens\",\"zga9sT\":\"OK\",\"U8oDGg\":\"On-chain transaction records\",\"BzEFor\":\"or\",\"UbRKMZ\":\"Pending\",\"8OiU8L\":\"Pool Creation\",\"lDgVWA\":\"Receive\",\"pkRuyd\":\"Receiver address\",\"3XBvkd\":\"Remove Liquidity\",\"OfhWJH\":\"Reset\",\"JlFcis\":\"Send\",\"JYKRJS\":\"Stake\",\"hQRttt\":\"Submit\",\"KAbcm2\":\"Succeeded\",\"vH2C/2\":\"Swap\",\"kdetxi\":\"The Ledger Device is locked\\nPlease unlock from the device\",\"FzJ11V\":\"This is empty\",\"TP9/K5\":\"Token\",\"zPGNJm\":\"Transfer\",\"LobdAW\":\"Unknown Error\"}")};
1
+ /*eslint-disable*/module.exports={messages:JSON.parse("{\"14s9LL\":[\"Create Liquidity Mining\"],\"3UCJ3e\":[\"Check your email and click the link to complete login\"],\"3XBvkd\":[\"Remove Liquidity\"],\"3y6FjD\":[\"Log in with your email or a passkey\"],\"6KnyG0\":[\"Enter email\"],\"6Ui8nZ\":[\"Log in with your email\"],\"6V3Ea3\":[\"Copied\"],\"7Bj3x9\":[\"Failed\"],\"8OiU8L\":[\"Pool Creation\"],\"9ow2PX\":[\"Installed Wallet\"],\"9zb2WA\":[\"Connecting\"],\"AeXO77\":[\"Account\"],\"B2Tpo0\":[\"Invalid email\"],\"BzEFor\":[\"or\"],\"CtByM7\":[\"Connect Wallet\"],\"Du6bPw\":[\"Address\"],\"E/yE9x\":[\"Before proceeding make sure\"],\"EYDfo2\":[\"Loading more\"],\"FzJ11V\":[\"This is empty\"],\"JE8mMQ\":[\"No tokens\"],\"JYKRJS\":[\"Stake\"],\"JlFcis\":[\"Send\"],\"KAbcm2\":[\"Succeeded\"],\"LobdAW\":[\"Unknown Error\"],\"Mlg3Ds\":[\"Choose existing passkey\"],\"OBdohg\":[\"Add Liquidity\"],\"OfhWJH\":[\"Reset\"],\"OzjK0A\":[\"Create new passkey\"],\"QHcLEN\":[\"Connected\"],\"RETKSh\":[\"Connect Alchemy\"],\"S0kLOH\":[\"ID\"],\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"TP9/K5\":[\"Token\"],\"U8oDGg\":[\"On-chain transaction records\"],\"UbRKMZ\":[\"Pending\"],\"XJOV1Y\":[\"Activity\"],\"Z3FXyt\":[\"Loading...\"],\"Z7ZXbT\":[\"Approve\"],\"fsBGk0\":[\"Balance\"],\"gCNLBV\":[\"Copy wallet address\"],\"gPbbTL\":[\"The Ledger Device is locked\\\\nPlease unlock from the device\"],\"hQRttt\":[\"Submit\"],\"lDgVWA\":[\"Receive\"],\"pkRuyd\":[\"Receiver address\"],\"rwC96V\":[\"Invalid wallet address\"],\"sr0UJD\":[\"Go Back\"],\"vH2C/2\":[\"Swap\"],\"vN+hAq\":[\"Available Ledger Account\"],\"xGVfLh\":[\"Continue\"],\"xHr8Pp\":[\"Last connection\"],\"yN5k0R\":[\"More Wallets\"],\"z5vMiF\":[\"End mining\\n\"],\"zPGNJm\":[\"Transfer\"],\"zXCpR0\":[\"Claim Rewards\"],\"zga9sT\":[\"OK\"]}")};