@dynamic-labs/multi-wallet 0.17.0-RC.9 → 0.17.0

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 (101) hide show
  1. package/CHANGELOG.md +323 -0
  2. package/package.json +10 -23
  3. package/src/index.cjs +0 -7
  4. package/src/index.d.ts +0 -3
  5. package/src/index.js +0 -4
  6. package/src/multi-wallet.cjs +18 -67
  7. package/src/multi-wallet.d.ts +1 -2
  8. package/src/multi-wallet.js +20 -69
  9. package/src/types.d.ts +4 -2
  10. package/src/utils/getApiProviders.d.ts +10 -3
  11. package/src/polyfills.cjs +0 -16
  12. package/src/polyfills.d.ts +0 -1
  13. package/src/polyfills.js +0 -14
  14. package/src/utils/convertors.cjs +0 -43
  15. package/src/utils/convertors.d.ts +0 -3
  16. package/src/utils/convertors.js +0 -38
  17. package/src/utils/extractNonce.cjs +0 -13
  18. package/src/utils/extractNonce.d.ts +0 -1
  19. package/src/utils/extractNonce.js +0 -9
  20. package/src/utils/localStorageAsync.cjs +0 -28
  21. package/src/utils/localStorageAsync.d.ts +0 -3
  22. package/src/utils/localStorageAsync.js +0 -22
  23. package/src/wallets/algorand/MyAlgoWalletConnector.cjs +0 -149
  24. package/src/wallets/algorand/MyAlgoWalletConnector.d.ts +0 -21
  25. package/src/wallets/algorand/MyAlgoWalletConnector.js +0 -143
  26. package/src/wallets/algorand/myalgoSigner.cjs +0 -24
  27. package/src/wallets/algorand/myalgoSigner.d.ts +0 -21
  28. package/src/wallets/algorand/myalgoSigner.js +0 -20
  29. package/src/wallets/constants.cjs +0 -14
  30. package/src/wallets/constants.d.ts +0 -4
  31. package/src/wallets/constants.js +0 -9
  32. package/src/wallets/cosmos/KeplrWalletConnect.cjs +0 -196
  33. package/src/wallets/cosmos/KeplrWalletConnect.d.ts +0 -50
  34. package/src/wallets/cosmos/KeplrWalletConnect.js +0 -194
  35. package/src/wallets/cosmos/KeplrWalletConnector.cjs +0 -208
  36. package/src/wallets/cosmos/KeplrWalletConnector.d.ts +0 -74
  37. package/src/wallets/cosmos/KeplrWalletConnector.js +0 -204
  38. package/src/wallets/cosmos/index.d.ts +0 -1
  39. package/src/wallets/cosmos/utils/indexDB.cjs +0 -97
  40. package/src/wallets/cosmos/utils/indexDB.d.ts +0 -18
  41. package/src/wallets/cosmos/utils/indexDB.js +0 -93
  42. package/src/wallets/cosmos/wcClient.cjs +0 -333
  43. package/src/wallets/cosmos/wcClient.d.ts +0 -104
  44. package/src/wallets/cosmos/wcClient.js +0 -325
  45. package/src/wallets/cosmos/wcClient.lib.cjs +0 -141
  46. package/src/wallets/cosmos/wcClient.lib.d.ts +0 -20
  47. package/src/wallets/cosmos/wcClient.lib.js +0 -126
  48. package/src/wallets/flow/FlowWalletConnector.cjs +0 -162
  49. package/src/wallets/flow/FlowWalletConnector.d.ts +0 -29
  50. package/src/wallets/flow/FlowWalletConnector.js +0 -157
  51. package/src/wallets/flow/blocto.cjs +0 -22
  52. package/src/wallets/flow/blocto.d.ts +0 -7
  53. package/src/wallets/flow/blocto.js +0 -20
  54. package/src/wallets/flow/dapper.cjs +0 -22
  55. package/src/wallets/flow/dapper.d.ts +0 -7
  56. package/src/wallets/flow/dapper.js +0 -20
  57. package/src/wallets/flow/lilico.cjs +0 -42
  58. package/src/wallets/flow/lilico.d.ts +0 -8
  59. package/src/wallets/flow/lilico.js +0 -40
  60. package/src/wallets/solana/CoinbaseSolana.cjs +0 -51
  61. package/src/wallets/solana/CoinbaseSolana.d.ts +0 -15
  62. package/src/wallets/solana/CoinbaseSolana.js +0 -49
  63. package/src/wallets/solana/glow.cjs +0 -48
  64. package/src/wallets/solana/glow.d.ts +0 -14
  65. package/src/wallets/solana/glow.js +0 -46
  66. package/src/wallets/solana/injected/BraveSol.cjs +0 -19
  67. package/src/wallets/solana/injected/BraveSol.d.ts +0 -6
  68. package/src/wallets/solana/injected/BraveSol.js +0 -17
  69. package/src/wallets/solana/injected/ExodusSol.cjs +0 -12
  70. package/src/wallets/solana/injected/ExodusSol.d.ts +0 -5
  71. package/src/wallets/solana/injected/ExodusSol.js +0 -10
  72. package/src/wallets/solana/phantom-ledger.cjs +0 -71
  73. package/src/wallets/solana/phantom-ledger.d.ts +0 -16
  74. package/src/wallets/solana/phantom-ledger.js +0 -65
  75. package/src/wallets/solana/phantom.cjs +0 -70
  76. package/src/wallets/solana/phantom.d.ts +0 -15
  77. package/src/wallets/solana/phantom.js +0 -68
  78. package/src/wallets/solana/slope.cjs +0 -96
  79. package/src/wallets/solana/slope.d.ts +0 -27
  80. package/src/wallets/solana/slope.js +0 -94
  81. package/src/wallets/solana/solProviderHelper.cjs +0 -162
  82. package/src/wallets/solana/solProviderHelper.d.ts +0 -29
  83. package/src/wallets/solana/solProviderHelper.js +0 -158
  84. package/src/wallets/solana/solWalletConnector.cjs +0 -75
  85. package/src/wallets/solana/solWalletConnector.d.ts +0 -21
  86. package/src/wallets/solana/solWalletConnector.js +0 -71
  87. package/src/wallets/solana/solflare.cjs +0 -64
  88. package/src/wallets/solana/solflare.d.ts +0 -12
  89. package/src/wallets/solana/solflare.js +0 -62
  90. package/src/wallets/starknet/argentx.cjs +0 -20
  91. package/src/wallets/starknet/argentx.d.ts +0 -7
  92. package/src/wallets/starknet/argentx.js +0 -18
  93. package/src/wallets/starknet/braavos.cjs +0 -33
  94. package/src/wallets/starknet/braavos.d.ts +0 -7
  95. package/src/wallets/starknet/braavos.js +0 -31
  96. package/src/wallets/starknet/ethereumContractAbi.cjs +0 -357
  97. package/src/wallets/starknet/ethereumContractAbi.js +0 -355
  98. package/src/wallets/starknet/starknetWalletConnector.cjs +0 -170
  99. package/src/wallets/starknet/starknetWalletConnector.d.ts +0 -34
  100. package/src/wallets/starknet/starknetWalletConnector.js +0 -168
  101. package/src/wallets/window.d.ts +0 -83
package/CHANGELOG.md CHANGED
@@ -1,4 +1,327 @@
1
1
 
2
+ ## [0.17.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.33...v0.17.0) (2023-06-13)
3
+
4
+ Dynamic is excited to announce our most amazing SDK update yet (at least since 0.16.0 :-))!
5
+ We have some great things in this version, here are the highlights:
6
+
7
+ ### Breaking Changes
8
+ - In favor of supporting MagicLink Wallets we removed the support for Fortmatic.
9
+
10
+ ### Deprecations
11
+ - `chainName` on EvmNetwork is deprecated in favor of `name`. If you're passing `evmNetworks` to `DynamicContextProvider` or `DynamicWagmiConnector`, you should update your code like so:
12
+ ```ts
13
+ <DynamicContextProvider
14
+ settings={{
15
+ environmentId: 'YOUR_ENV_ID',
16
+ evmNetworks: [
17
+ {
18
+ blockExplorerUrls: [],
19
+ chainId: 1,
20
+ iconUrls: [],
21
+ - chainName: 'Ethereum',
22
+ + name: 'Ethereum',
23
+ nativeCurrency: {
24
+ decimals: 18,
25
+ name: 'Ether',
26
+ symbol: 'ETH',
27
+ },
28
+ networkId: 1,
29
+ rpcUrls: [],
30
+ },
31
+ ],
32
+ }}
33
+ >
34
+ <HomePage />
35
+ </DynamicContextProvider>
36
+ ```
37
+ - the `multiWallet` prop on DynamicContextProvider is deprecated in favor of the Dashboard settings. See [here](https://docs.dynamic.xyz/docs/multi-wallet#setup) for more info
38
+
39
+ ### Highlighted Features
40
+ - Package splitting. You asked for it, and here it is!
41
+ If you want to reduce your package size to include only the chains and the wallets that your app needs, you now have the option to customize your build [See instructions](https://docs.dynamic.xyz/docs/reduce-bundle-size-with-modular-sdk)
42
+
43
+ - Two cool features for Magic Wallets:
44
+ - Support for [social login](https://docs.dynamic.xyz/docs/magic#enable-social-sign-in)
45
+ - Modal for supporting [send balance](https://docs.dynamic.xyz/docs/send-balance-ui).
46
+
47
+
48
+ - Generic types on various connector methods. For example, if you know you are working with an EVM network, you can typecast with `walletConnector.getNetwork<number>()` to work nicely in typescript.
49
+
50
+ - [onRamp with Banxa](https://docs.dynamic.xyz/docs/onramps) (please reach out to us to enable the feature)
51
+
52
+ - Ability to support multiple RPCs with fallbacks when providing the URL to network prop.
53
+
54
+ - Added suffix to the local storage key, in case you are testing multiple local environments locally at the same time.
55
+
56
+ - We have a new global loading state that you can now easily use to tell when the SDK completed loading (`sdkHasLoaded`)
57
+
58
+ And many other minor improvements and bug fixes.
59
+
60
+ Enjoy!
61
+
62
+ ### Features
63
+
64
+ * Add suffix to local storage ([#2227](https://github.com/dynamic-labs/DynamicAuth/issues/2227)) ([b901b9b](https://github.com/dynamic-labs/DynamicAuth/commit/b901b9b43a3eaa80706b9ec0679f668a7b8b2507))
65
+ * Block Self Service so users have to schedule a demo ([#2286](https://github.com/dynamic-labs/DynamicAuth/issues/2286)) ([8a2f19a](https://github.com/dynamic-labs/DynamicAuth/commit/8a2f19a13a91ef0d9b860ff5164d61f6f7664426))
66
+ * dyn 2486 Add support for superb ([#2271](https://github.com/dynamic-labs/DynamicAuth/issues/2271)) ([8ea51e9](https://github.com/dynamic-labs/DynamicAuth/commit/8ea51e93c5d74d02efd47877042d7af05ca55f5c))
67
+ * pass icon theme variant to usages of SocialIcon ([#2303](https://github.com/dynamic-labs/DynamicAuth/issues/2303)) ([da59d6f](https://github.com/dynamic-labs/DynamicAuth/commit/da59d6f22e7ec49cb8cff757baada3cb1e737b99))
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * brief red error message as the KYC screen loads ([#2240](https://github.com/dynamic-labs/DynamicAuth/issues/2240)) ([1155e8b](https://github.com/dynamic-labs/DynamicAuth/commit/1155e8bd66ffdc96ae3f9d88f027793217c120a8))
73
+ * account controls hover does not fill the container ([#2300](https://github.com/dynamic-labs/DynamicAuth/issues/2300)) ([fdc984e](https://github.com/dynamic-labs/DynamicAuth/commit/fdc984e2d0b11d9d38dcd9e877c228fbc41c5855))
74
+ * refresh session in walletconnectv2 ([#2294](https://github.com/dynamic-labs/DynamicAuth/issues/2294)) ([d54263e](https://github.com/dynamic-labs/DynamicAuth/commit/d54263ea04c58f842b60b0c13f964fde25be786b))
75
+
76
+ ## [0.17.0-RC.33](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.32...v0.17.0-RC.33) (2023-06-09)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * display chain name in smaller format ([#2292](https://github.com/dynamic-labs/DynamicAuth/issues/2292)) ([95ff444](https://github.com/dynamic-labs/DynamicAuth/commit/95ff44412fcc192ecc2e9a2c1a5f090708c2da9c))
82
+
83
+ ## [0.17.0-RC.32](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.31...v0.17.0-RC.32) (2023-06-09)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * missing walletlist when filter finds no wallets ([#2289](https://github.com/dynamic-labs/DynamicAuth/issues/2289)) ([a7708d3](https://github.com/dynamic-labs/DynamicAuth/commit/a7708d3eab9609daa4c860555f5804f280958da5))
89
+
90
+ ## [0.17.0-RC.31](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.30...v0.17.0-RC.31) (2023-06-09)
91
+
92
+
93
+ ### Features
94
+
95
+ * add fake dapper mobile metadata so that it appears on mobile ([#2288](https://github.com/dynamic-labs/DynamicAuth/issues/2288)) ([ea98462](https://github.com/dynamic-labs/DynamicAuth/commit/ea98462e762d3fa032e2e40f17d2e3679146b3ae))
96
+ * pass variant to social icon getter ([#2277](https://github.com/dynamic-labs/DynamicAuth/issues/2277)) ([b1492ed](https://github.com/dynamic-labs/DynamicAuth/commit/b1492eda50eb80fbfee1aa968771f338694ef7e6))
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * don't remove network config from ls if there's a connected wallet ([#2280](https://github.com/dynamic-labs/DynamicAuth/issues/2280)) ([0703dfc](https://github.com/dynamic-labs/DynamicAuth/commit/0703dfc099f86a0802e83a27849b6953e1ddca31))
102
+ * **use-wallets-connection-state:** load connected state when wallets are present ([#2285](https://github.com/dynamic-labs/DynamicAuth/issues/2285)) ([7fb72dc](https://github.com/dynamic-labs/DynamicAuth/commit/7fb72dc8fe1404cd76e68bb3f0de9efa78634525))
103
+
104
+ ## [0.17.0-RC.30](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.29...v0.17.0-RC.30) (2023-06-08)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * **view-context:** refactor view context to have initial view ([#2268](https://github.com/dynamic-labs/DynamicAuth/issues/2268)) ([0afe6ae](https://github.com/dynamic-labs/DynamicAuth/commit/0afe6ae469f62fd16fd8471322f9295957f607f6))
110
+ * **wcv2:** upgrade universal provider and refactor wcv2 ([#2163](https://github.com/dynamic-labs/DynamicAuth/issues/2163)) ([e69c67c](https://github.com/dynamic-labs/DynamicAuth/commit/e69c67c95dca0f694c4a554702be96c3f7d3d77e))
111
+
112
+ ## [0.17.0-RC.29](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.28...v0.17.0-RC.29) (2023-06-07)
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * de-duplicate authSuccess call ([#2269](https://github.com/dynamic-labs/DynamicAuth/issues/2269)) ([00268d0](https://github.com/dynamic-labs/DynamicAuth/commit/00268d001355946c98d285d71d7f7acc96d4c9f7))
118
+ * hide search when filtered wallets equal to number of shown wallets ([#2221](https://github.com/dynamic-labs/DynamicAuth/issues/2221)) ([fb0f629](https://github.com/dynamic-labs/DynamicAuth/commit/fb0f629ae76240fe681db91b485139934026054e))
119
+
120
+ ## [0.17.0-RC.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.27...v0.17.0-RC.28) (2023-06-06)
121
+
122
+
123
+ ### Features
124
+
125
+ * lower username minimum length requirement ([#2265](https://github.com/dynamic-labs/DynamicAuth/issues/2265)) ([ed891ca](https://github.com/dynamic-labs/DynamicAuth/commit/ed891cac8cceaf9e0556b679eda7a3575725805d))
126
+
127
+
128
+ ### Bug Fixes
129
+
130
+ * **send_balance:** add amount validation to form ([#2261](https://github.com/dynamic-labs/DynamicAuth/issues/2261)) ([9a57cfe](https://github.com/dynamic-labs/DynamicAuth/commit/9a57cfe0dd7f97aa16351b091ab385b2b5c7c5e4))
131
+ * shrink dynamic widget in smaller containers ([#2260](https://github.com/dynamic-labs/DynamicAuth/issues/2260)) ([353f447](https://github.com/dynamic-labs/DynamicAuth/commit/353f44724db83e9f1500c606fdea7d50a8067711))
132
+
133
+ ## [0.17.0-RC.27](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.26...v0.17.0-RC.27) (2023-06-06)
134
+
135
+
136
+ ### Features
137
+
138
+ * sync wagmi to first connected eth wallet ([#2253](https://github.com/dynamic-labs/DynamicAuth/issues/2253)) ([c00aed7](https://github.com/dynamic-labs/DynamicAuth/commit/c00aed73a1014c668311c8cb59e5a466b5ee6779))
139
+
140
+
141
+ ### Bug Fixes
142
+
143
+ * include username in userFieldsSchema ([#2257](https://github.com/dynamic-labs/DynamicAuth/issues/2257)) ([6e5431d](https://github.com/dynamic-labs/DynamicAuth/commit/6e5431d08323d718b11accf3790ef56fc7325b5c))
144
+
145
+ ## [0.17.0-RC.26](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.25...v0.17.0-RC.26) (2023-06-05)
146
+
147
+
148
+ ### Features
149
+
150
+ * disable button on social unlink ([#2234](https://github.com/dynamic-labs/DynamicAuth/issues/2234)) ([7f148de](https://github.com/dynamic-labs/DynamicAuth/commit/7f148de76b0fca632e1b4d6ff71c18eb0207c02b))
151
+ * update magic + email icon in auth flow views ([#2224](https://github.com/dynamic-labs/DynamicAuth/issues/2224)) ([93f1ed6](https://github.com/dynamic-labs/DynamicAuth/commit/93f1ed644428701c2747565033d0ad113fa8eeb2))
152
+
153
+
154
+ ### Bug Fixes
155
+
156
+ * **wallets:** keep magic social wallet connector on mobile ([#2242](https://github.com/dynamic-labs/DynamicAuth/issues/2242)) ([35c092d](https://github.com/dynamic-labs/DynamicAuth/commit/35c092da3b8a76c74ae25558489d663ce963d72f))
157
+ * wrong logger instance in UserProfileSocialAccount ([#2248](https://github.com/dynamic-labs/DynamicAuth/issues/2248)) ([814108d](https://github.com/dynamic-labs/DynamicAuth/commit/814108d416d9d730bed8976956bc7974c7fde2a8))
158
+
159
+ ## [0.17.0-RC.25](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.24...v0.17.0-RC.25) (2023-06-05)
160
+
161
+
162
+ ### Bug Fixes
163
+
164
+ * **EmailOTPMagicWalletConnector:** allow user to reconnect with email wallet ([#2230](https://github.com/dynamic-labs/DynamicAuth/issues/2230)) ([6059886](https://github.com/dynamic-labs/DynamicAuth/commit/605988650a783ae824bb8c45edc5533fecf8726a))
165
+ * only set wagmi connector if connected chain is evm ([#2237](https://github.com/dynamic-labs/DynamicAuth/issues/2237)) ([a7be7d3](https://github.com/dynamic-labs/DynamicAuth/commit/a7be7d302d1e74088b0aa2b6848c879079e6f963))
166
+ * Revert "fix(ViewContext): only set view when on wallet list" ([#2235](https://github.com/dynamic-labs/DynamicAuth/issues/2235)) ([e790315](https://github.com/dynamic-labs/DynamicAuth/commit/e79031577f640161cc5f0b9b2e695e22d9a98901)), closes [#2226](https://github.com/dynamic-labs/DynamicAuth/issues/2226)
167
+ * set view to social-redirect-view while waiting to process magic redirect ([#2229](https://github.com/dynamic-labs/DynamicAuth/issues/2229)) ([f50a29c](https://github.com/dynamic-labs/DynamicAuth/commit/f50a29c0b9623c703f1577c7a41fcc5aee58abb8))
168
+ * user profile does not extend on mobile ([#2236](https://github.com/dynamic-labs/DynamicAuth/issues/2236)) ([5bb7912](https://github.com/dynamic-labs/DynamicAuth/commit/5bb7912a865338fdf6eca1a19ff4b74a3fb18eeb))
169
+ * **ViewContext:** only set view when on wallet list ([#2226](https://github.com/dynamic-labs/DynamicAuth/issues/2226)) ([85e8fc1](https://github.com/dynamic-labs/DynamicAuth/commit/85e8fc140069cabff41f4067ac93ea0c5cfaa161))
170
+
171
+ ## [0.17.0-RC.24](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.23...v0.17.0-RC.24) (2023-06-02)
172
+
173
+ ## [0.17.0-RC.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.22...v0.17.0-RC.23) (2023-06-02)
174
+
175
+
176
+ ### Bug Fixes
177
+
178
+ * flow connection status improvements ([#2212](https://github.com/dynamic-labs/DynamicAuth/issues/2212)) ([5225e9f](https://github.com/dynamic-labs/DynamicAuth/commit/5225e9f3f19705cdde3c1d860ddf4e69689a839b))
179
+ * **useSyncPrimaryWallet:** disables the hook while connect state is loaded ([#2193](https://github.com/dynamic-labs/DynamicAuth/issues/2193)) ([d2a69c8](https://github.com/dynamic-labs/DynamicAuth/commit/d2a69c8edfbb2a19305b0fd322e24d909bbf9b4f)), closes [#2155](https://github.com/dynamic-labs/DynamicAuth/issues/2155)
180
+
181
+ ## [0.17.0-RC.22](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.21...v0.17.0-RC.22) (2023-06-02)
182
+
183
+
184
+ ### Features
185
+
186
+ * social copy update ([#2215](https://github.com/dynamic-labs/DynamicAuth/issues/2215)) ([1fe7316](https://github.com/dynamic-labs/DynamicAuth/commit/1fe7316a94284db7227d5ab09026354269559752))
187
+
188
+ ## [0.17.0-RC.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.20...v0.17.0-RC.21) (2023-06-02)
189
+
190
+
191
+ ### Bug Fixes
192
+
193
+ * social icon is missing on some views ([#2211](https://github.com/dynamic-labs/DynamicAuth/issues/2211)) ([bddd255](https://github.com/dynamic-labs/DynamicAuth/commit/bddd255f0aa61aed4b767145c51624ac1eb9b963))
194
+
195
+ ## [0.17.0-RC.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.19...v0.17.0-RC.20) (2023-06-01)
196
+
197
+
198
+ ### Features
199
+
200
+ * add AccessDeniedContext to lift denied wallet state up ([#2180](https://github.com/dynamic-labs/DynamicAuth/issues/2180)) ([509519d](https://github.com/dynamic-labs/DynamicAuth/commit/509519d08496248545f1548f676b13e140473e41))
201
+ * **DYN-2338:** update magic icons to social icons ([#2176](https://github.com/dynamic-labs/DynamicAuth/issues/2176)) ([42a4f63](https://github.com/dynamic-labs/DynamicAuth/commit/42a4f6367e6fa4ad8736f9ac42f535c8a9c1d377))
202
+ * **DynamicWidget:** add send balance button ([#2183](https://github.com/dynamic-labs/DynamicAuth/issues/2183)) ([d76355e](https://github.com/dynamic-labs/DynamicAuth/commit/d76355e1f9c3a7b05cbb5b7b3144dad379586689))
203
+ * handle magic redirect error ([#2203](https://github.com/dynamic-labs/DynamicAuth/issues/2203)) ([9a088c6](https://github.com/dynamic-labs/DynamicAuth/commit/9a088c6aad2eb2c1045f544a784083d2732df440))
204
+ * **SendBalanceModal:** adds openSendBalanceModal in dynamic context ([#2159](https://github.com/dynamic-labs/DynamicAuth/issues/2159)) ([f89b21b](https://github.com/dynamic-labs/DynamicAuth/commit/f89b21bfcd65bb61ef33b17b460140404574b235))
205
+ * social error handling improvements ([#2146](https://github.com/dynamic-labs/DynamicAuth/issues/2146)) ([a64a26a](https://github.com/dynamic-labs/DynamicAuth/commit/a64a26aa42c228654cb135cd6c4778e8bd2bd0e6))
206
+
207
+
208
+ ### Bug Fixes
209
+
210
+ * amendments to user profile ([#2201](https://github.com/dynamic-labs/DynamicAuth/issues/2201)) ([5d12c17](https://github.com/dynamic-labs/DynamicAuth/commit/5d12c1716cdcd8d843ef3ff941e163bad28573b1))
211
+ * **formatBigNumber:** display the ceil value when value is too low ([#2165](https://github.com/dynamic-labs/DynamicAuth/issues/2165)) ([ad56fe1](https://github.com/dynamic-labs/DynamicAuth/commit/ad56fe11d55ee038e08ef77dfa2bd6155fee7fe3))
212
+ * use wcv2 only if wallet supports it ([#2198](https://github.com/dynamic-labs/DynamicAuth/issues/2198)) ([3d5fea7](https://github.com/dynamic-labs/DynamicAuth/commit/3d5fea7743a18b47f33ef371ecc2652003accb4d))
213
+
214
+ ## [0.17.0-RC.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.18...v0.17.0-RC.19) (2023-05-30)
215
+
216
+
217
+ ### Features
218
+
219
+ * add SocialWrongAccountView ([#2153](https://github.com/dynamic-labs/DynamicAuth/issues/2153)) ([531a29d](https://github.com/dynamic-labs/DynamicAuth/commit/531a29d7d87739d974ecc35c57ef0d333a5e7451))
220
+ * do not show unlink button for embedded wallets ([#2169](https://github.com/dynamic-labs/DynamicAuth/issues/2169)) ([f813058](https://github.com/dynamic-labs/DynamicAuth/commit/f8130585c82c7ae73d1e32e107f67ec86b4edb89))
221
+ * **DYN-2402:** coinbase issues after disconnecting ([#2149](https://github.com/dynamic-labs/DynamicAuth/issues/2149)) ([91d49fb](https://github.com/dynamic-labs/DynamicAuth/commit/91d49fb7f8c6fca3ab03098f3fba53d277c836ad))
222
+ * handle user reconnecting with wrong social account ([#2157](https://github.com/dynamic-labs/DynamicAuth/issues/2157)) ([4f7c6df](https://github.com/dynamic-labs/DynamicAuth/commit/4f7c6dff7df9a7966a644bf2510cb3825b2c6408))
223
+ * **social:** handle reconnect ([#2131](https://github.com/dynamic-labs/DynamicAuth/issues/2131)) ([2b3e5fb](https://github.com/dynamic-labs/DynamicAuth/commit/2b3e5fbb72bb7dafee3bd0bbfa73fae444055410))
224
+
225
+ ## [0.17.0-RC.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.17...v0.17.0-RC.18) (2023-05-19)
226
+
227
+
228
+ ### Features
229
+
230
+ * add getReferencedAccount ([#2141](https://github.com/dynamic-labs/DynamicAuth/issues/2141)) ([ac170a6](https://github.com/dynamic-labs/DynamicAuth/commit/ac170a6dfac25ff9911feb390495974aa5dbede6))
231
+ * add reconnectSocialWallet ([#2142](https://github.com/dynamic-labs/DynamicAuth/issues/2142)) ([fefd759](https://github.com/dynamic-labs/DynamicAuth/commit/fefd759b816b286dd8a7673cf6c839fee59768ac))
232
+ * **DYN-2220:** add Transaction Successfully Sent view ([#2134](https://github.com/dynamic-labs/DynamicAuth/issues/2134)) ([7db96ad](https://github.com/dynamic-labs/DynamicAuth/commit/7db96adcd3b84aef29fbabe40a1e048ea629d2bb))
233
+ * **MagicSocialWalletConnector:** store public address from redirect result in local storage ([#2139](https://github.com/dynamic-labs/DynamicAuth/issues/2139)) ([90b60e4](https://github.com/dynamic-labs/DynamicAuth/commit/90b60e485a53ff29a0e52ef27a58383771490974))
234
+
235
+
236
+ ### Bug Fixes
237
+
238
+ * issue when linking from detect_new_wallet ([#2148](https://github.com/dynamic-labs/DynamicAuth/issues/2148)) ([98feb7b](https://github.com/dynamic-labs/DynamicAuth/commit/98feb7bde081a8107577ac7ec70d0f9c4b611a2b))
239
+ * multi-wallet flows ([#2150](https://github.com/dynamic-labs/DynamicAuth/issues/2150)) ([c82ef4a](https://github.com/dynamic-labs/DynamicAuth/commit/c82ef4a5cc75c9f8edb30620e32dd64bbdb0eb7f))
240
+ * starknet getConnectedAccounts should return an empty array if there's no address to return ([#2140](https://github.com/dynamic-labs/DynamicAuth/issues/2140)) ([ce39641](https://github.com/dynamic-labs/DynamicAuth/commit/ce39641a6dbec1d05d8d5cc611a02de8bd756351))
241
+
242
+ ## [0.17.0-RC.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.16...v0.17.0-RC.17) (2023-05-17)
243
+
244
+
245
+ ### Features
246
+
247
+ * distinguish walletconnect deeplink types ([#2093](https://github.com/dynamic-labs/DynamicAuth/issues/2093)) ([dcd29f7](https://github.com/dynamic-labs/DynamicAuth/commit/dcd29f7cfc5e6481aaaae502b3fc4e4d225f1fc1))
248
+ * **social:** pass did token to verify request ([#2124](https://github.com/dynamic-labs/DynamicAuth/issues/2124)) ([60d73a5](https://github.com/dynamic-labs/DynamicAuth/commit/60d73a5f432d488979f33fe29666d1afa8fc0e8e))
249
+ * support optional priority and stalltimeout for customer provided rpc urls ([#2091](https://github.com/dynamic-labs/DynamicAuth/issues/2091)) ([eebacda](https://github.com/dynamic-labs/DynamicAuth/commit/eebacda6a9d6ba583eff4e4e5a38eb9945c4825e))
250
+
251
+
252
+ ### Bug Fixes
253
+
254
+ * add and remove event listeners for Solflare ([#2127](https://github.com/dynamic-labs/DynamicAuth/issues/2127)) ([978c7ba](https://github.com/dynamic-labs/DynamicAuth/commit/978c7ba0e3745e26d9dfc9b7c46a24adc913f02f))
255
+ * get publicKey from provider if no address and publicKey are returned on connect ([#2126](https://github.com/dynamic-labs/DynamicAuth/issues/2126)) ([c9c9b2a](https://github.com/dynamic-labs/DynamicAuth/commit/c9c9b2af81f660aa651fc4b0e01cd3c823bb0229))
256
+ * remove detect known secondary wallet modal ([#2117](https://github.com/dynamic-labs/DynamicAuth/issues/2117)) ([0e8bbd8](https://github.com/dynamic-labs/DynamicAuth/commit/0e8bbd8c385fe528a7af3ccc037812df9d6e0c84))
257
+ * revert changes for select wallet to work with solflare ([#2120](https://github.com/dynamic-labs/DynamicAuth/issues/2120)) ([76cf228](https://github.com/dynamic-labs/DynamicAuth/commit/76cf228c495d6592da4c88b8a0d5a5fc480861ae))
258
+ * setIsVerifying to false when selecting a connector ([#2133](https://github.com/dynamic-labs/DynamicAuth/issues/2133)) ([8ddeba3](https://github.com/dynamic-labs/DynamicAuth/commit/8ddeba377f35dfb4a104cd6bd7ee6315d574710f))
259
+ * setPrimaryWallet and useSyncPrimaryWallet updates ([#2128](https://github.com/dynamic-labs/DynamicAuth/issues/2128)) ([fb47b17](https://github.com/dynamic-labs/DynamicAuth/commit/fb47b17ddc7f41c29f140a1a85a1e47dbf017fff))
260
+ * update text color and add close button on extension not installed prompt ([#2122](https://github.com/dynamic-labs/DynamicAuth/issues/2122)) ([b4848a0](https://github.com/dynamic-labs/DynamicAuth/commit/b4848a0a8094b4ceac67e2667d277a9aa5e2e137))
261
+
262
+ ## [0.17.0-RC.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.15...v0.17.0-RC.16) (2023-05-15)
263
+
264
+
265
+ ### Features
266
+
267
+ * add social oauth result to verify request ([#2081](https://github.com/dynamic-labs/DynamicAuth/issues/2081)) ([4da650a](https://github.com/dynamic-labs/DynamicAuth/commit/4da650affe9c96e0ab9e446f58c91b9b13db3651))
268
+
269
+
270
+ ### Bug Fixes
271
+
272
+ * **DYN-2327:** user profile is not loaded properly on the first load ([#2113](https://github.com/dynamic-labs/DynamicAuth/issues/2113)) ([c05834e](https://github.com/dynamic-labs/DynamicAuth/commit/c05834ed89ecc12d586baa97bcaf2bd3c1919f59))
273
+
274
+ ## [0.17.0-RC.15](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.14...v0.17.0-RC.15) (2023-05-15)
275
+
276
+
277
+ ### Bug Fixes
278
+
279
+ * pass network to link request ([#2114](https://github.com/dynamic-labs/DynamicAuth/issues/2114)) ([0f7d20d](https://github.com/dynamic-labs/DynamicAuth/commit/0f7d20d948b737b98d4a8db8aaa7648033e25922))
280
+
281
+ ## [0.17.0-RC.14](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.13...v0.17.0-RC.14) (2023-05-12)
282
+
283
+
284
+ ### Features
285
+
286
+ * add local flowNetwork prop to toggle between mainnet and testnet ([#2094](https://github.com/dynamic-labs/DynamicAuth/issues/2094)) ([43c3f20](https://github.com/dynamic-labs/DynamicAuth/commit/43c3f20abf2d6c83e88e48f885749b978cec078a))
287
+ * deprecate multiWallet sdk setting and fetch it from projectSettings ([#2079](https://github.com/dynamic-labs/DynamicAuth/issues/2079)) ([8b7f11d](https://github.com/dynamic-labs/DynamicAuth/commit/8b7f11d9eb71a17056be05cc8006d15dc149e3ff))
288
+
289
+
290
+ ### Bug Fixes
291
+
292
+ * **balance:** correctly compare AVAX address when fetching balance ([#2064](https://github.com/dynamic-labs/DynamicAuth/issues/2064)) ([c5942d1](https://github.com/dynamic-labs/DynamicAuth/commit/c5942d112804f3a935bca396221fb33a3c7cc42a))
293
+ * **DYN-2231:** restore User Profile display when social is the only enabled flag in information capture ([#2070](https://github.com/dynamic-labs/DynamicAuth/issues/2070)) ([6790bc7](https://github.com/dynamic-labs/DynamicAuth/commit/6790bc7e54afb1807be9996dc47129932441bbae))
294
+
295
+ ## [0.17.0-RC.13](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.12...v0.17.0-RC.13) (2023-05-10)
296
+
297
+
298
+ ### Features
299
+
300
+ * discriminate magic connectors ([#2069](https://github.com/dynamic-labs/DynamicAuth/issues/2069)) ([e9f6fd1](https://github.com/dynamic-labs/DynamicAuth/commit/e9f6fd15082364612a86d6d2a091cb8bd4eccc1f))
301
+
302
+
303
+ ### Bug Fixes
304
+
305
+ * add popper to fix dots menu positioning ([#2075](https://github.com/dynamic-labs/DynamicAuth/issues/2075)) ([fe945bd](https://github.com/dynamic-labs/DynamicAuth/commit/fe945bd3bcc5edeecfa0a2e7e53e30dc507c6118))
306
+ * polyfill process if not defined in global ([#2088](https://github.com/dynamic-labs/DynamicAuth/issues/2088)) ([a5d8194](https://github.com/dynamic-labs/DynamicAuth/commit/a5d81942440a6fe290c15b58b942012afe42aa00))
307
+
308
+ ## [0.17.0-RC.12](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.11...v0.17.0-RC.12) (2023-05-09)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * allow opening network picker when unsupported network and only one network enabled ([#2061](https://github.com/dynamic-labs/DynamicAuth/issues/2061)) ([486607f](https://github.com/dynamic-labs/DynamicAuth/commit/486607f8bb2666749ce39f18cf2368c86a78f74f))
314
+ * **DynamicWagmiConnector:** prevent disconnect when WC is not present ([#2063](https://github.com/dynamic-labs/DynamicAuth/issues/2063)) ([ef93623](https://github.com/dynamic-labs/DynamicAuth/commit/ef93623fb68b63a9e89a5958eb87bbddedd15fb6))
315
+
316
+ ## [0.17.0-RC.11](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.10...v0.17.0-RC.11) (2023-05-08)
317
+
318
+
319
+ ### Features
320
+
321
+ * add walletConnectors setting for supplying array of wallet connectors ([#2059](https://github.com/dynamic-labs/DynamicAuth/issues/2059)) ([ae65218](https://github.com/dynamic-labs/DynamicAuth/commit/ae652180b17a870f7bbf5f99c876f386e0de1af5))
322
+
323
+ ## [0.17.0-RC.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.9...v0.17.0-RC.10) (2023-05-05)
324
+
2
325
  ## [0.17.0-RC.9](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.8...v0.17.0-RC.9) (2023-05-05)
3
326
 
4
327
 
package/package.json CHANGED
@@ -1,36 +1,23 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.17.0-RC.9",
3
+ "version": "0.17.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
7
7
  "directory": "packages/multi-wallet"
8
8
  },
9
9
  "dependencies": {
10
- "buffer": "^6.0.3",
11
- "deepmerge": "^4.3.1",
12
- "@dynamic-labs/sdk-api": "0.0.183",
13
- "@dynamic-labs/wallet-book": "^0.0.14",
14
- "starknet": "^3.19.0",
15
- "ethers": "^5.7.2",
16
- "@randlabs/myalgo-connect": "^1.4.2",
17
- "@solana/web3.js": "^1.70.1",
18
- "@walletconnect/client": "^1.8.0",
19
- "@walletconnect/utils": "^1.8.0",
20
- "@onflow/fcl": "^1.3.2",
21
- "get-starknet": "^1.5.0",
22
- "tslib": "^2.4.1",
23
- "@keplr-wallet/provider": "0.11.56",
24
- "@keplr-wallet/types": "^0.11.51",
25
- "@dynamic-labs/ethereum-all": "0.17.0-RC.9",
26
- "@dynamic-labs/magic": "0.17.0-RC.9",
27
- "@dynamic-labs/rpc-providers": "0.17.0-RC.9",
28
- "@dynamic-labs/types": "0.17.0-RC.9",
29
- "@dynamic-labs/utils": "0.17.0-RC.9",
30
- "@dynamic-labs/wallet-connector-core": "0.17.0-RC.9"
10
+ "@dynamic-labs/sdk-api": "0.0.198",
11
+ "ethers": "5.7.2",
12
+ "tslib": "2.4.1",
13
+ "@dynamic-labs/rpc-providers": "0.17.0",
14
+ "@dynamic-labs/types": "0.17.0",
15
+ "@dynamic-labs/utils": "0.17.0",
16
+ "@dynamic-labs/wallet-book": "0.17.0",
17
+ "@dynamic-labs/wallet-connector-core": "0.17.0"
31
18
  },
32
19
  "devDependencies": {
33
- "@walletconnect/types": "^2.2.1"
20
+ "@walletconnect/types": "2.4.2"
34
21
  },
35
22
  "description": "Multi-wallet is a toolkit for working with many different wallets to create and verify signatures",
36
23
  "bugs": {
package/src/index.cjs CHANGED
@@ -2,12 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./polyfills.cjs');
6
5
  var multiWallet = require('./multi-wallet.cjs');
7
6
  var message = require('./utils/message.cjs');
8
- var KeplrWalletConnector = require('./wallets/cosmos/KeplrWalletConnector.cjs');
9
- var constants = require('./wallets/constants.cjs');
10
- var phantomLedger = require('./wallets/solana/phantom-ledger.cjs');
11
7
 
12
8
 
13
9
 
@@ -15,6 +11,3 @@ exports.getEnabledWallets = multiWallet.getEnabledWallets;
15
11
  exports.getSupportedChainsForWalletConnector = multiWallet.getSupportedChainsForWalletConnector;
16
12
  exports.getSupportedWallets = multiWallet.getSupportedWallets;
17
13
  exports.generateMessageToSign = message.generateMessageToSign;
18
- exports.KeplrWalletConnector = KeplrWalletConnector.KeplrWalletConnector;
19
- exports.defaultStarknetTypedDataDomain = constants.DEFAULT_STARKNET_TYPED_DATA_DOMAIN;
20
- exports.phantomLedgerWalletName = phantomLedger.walletName;
package/src/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- import './polyfills';
2
1
  export * from './multi-wallet';
3
2
  export * from './types';
4
3
  export { generateMessageToSign } from './utils/message';
5
- export { KeplrWalletConnector } from './wallets/cosmos/KeplrWalletConnector';
6
- export { DEFAULT_STARKNET_TYPED_DATA_DOMAIN as defaultStarknetTypedDataDomain } from './wallets/constants';
package/src/index.js CHANGED
@@ -1,6 +1,2 @@
1
- import './polyfills.js';
2
1
  export { getEnabledWallets, getSupportedChainsForWalletConnector, getSupportedWallets } from './multi-wallet.js';
3
2
  export { generateMessageToSign } from './utils/message.js';
4
- export { KeplrWalletConnector } from './wallets/cosmos/KeplrWalletConnector.js';
5
- export { DEFAULT_STARKNET_TYPED_DATA_DOMAIN as defaultStarknetTypedDataDomain } from './wallets/constants.js';
6
- export { walletName as phantomLedgerWalletName } from './wallets/solana/phantom-ledger.js';
@@ -2,33 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
7
6
  var walletBook = require('@dynamic-labs/wallet-book');
8
- var magic = require('@dynamic-labs/magic');
9
7
  var utils = require('@dynamic-labs/utils');
10
- var ethereumAll = require('@dynamic-labs/ethereum-all');
11
- var phantom = require('./wallets/solana/phantom.cjs');
12
- var slope = require('./wallets/solana/slope.cjs');
13
- var solflare = require('./wallets/solana/solflare.cjs');
14
- var glow = require('./wallets/solana/glow.cjs');
15
- var blocto = require('./wallets/flow/blocto.cjs');
16
- var dapper = require('./wallets/flow/dapper.cjs');
17
- var MyAlgoWalletConnector = require('./wallets/algorand/MyAlgoWalletConnector.cjs');
18
- var BraveSol = require('./wallets/solana/injected/BraveSol.cjs');
19
- var ExodusSol = require('./wallets/solana/injected/ExodusSol.cjs');
20
- var argentx = require('./wallets/starknet/argentx.cjs');
21
- var braavos = require('./wallets/starknet/braavos.cjs');
22
- var phantomLedger = require('./wallets/solana/phantom-ledger.cjs');
23
- var CoinbaseSolana = require('./wallets/solana/CoinbaseSolana.cjs');
24
- var lilico = require('./wallets/flow/lilico.cjs');
25
- var KeplrWalletConnector = require('./wallets/cosmos/KeplrWalletConnector.cjs');
26
8
  var getApiProviders = require('./utils/getApiProviders.cjs');
27
9
 
28
10
  let wallets = [];
29
11
  const defaultWalletUiUtils = {
30
- enableInternalSign: () => {
31
- throw Error('enableInternalSign, not implemented');
12
+ disabledConfirmationOnce: () => {
13
+ throw Error('disabledConfirmationOnce, not implemented');
32
14
  },
33
15
  sendTransaction: () => {
34
16
  throw Error('requestSendTransactionConfirmation not implemented');
@@ -37,9 +19,8 @@ const defaultWalletUiUtils = {
37
19
  throw Error('signMessage not implemented');
38
20
  },
39
21
  };
40
- const getSupportedWallets = (args) => tslib.__awaiter(void 0, void 0, void 0, function* () {
41
- var _a;
42
- const { appLogoUrl = '', appName = '', chainRpcProviders, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletUiUtils = undefined, } = args;
22
+ const getSupportedWallets = (args) => {
23
+ const { appLogoUrl = '', appName = '', chainRpcProviders, flowNetwork, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletConnectorsProp, walletUiUtils = undefined, } = args;
43
24
  if (!skipMemo && wallets.length > 0) {
44
25
  return wallets;
45
26
  }
@@ -54,44 +35,21 @@ const getSupportedWallets = (args) => tslib.__awaiter(void 0, void 0, void 0, fu
54
35
  chainRpcProviders,
55
36
  cosmosNetworks: cosmosNetworkConfigs,
56
37
  evmNetworks: evmNetworkConfigs,
38
+ flowNetwork,
57
39
  isWalletConnectV2Enabled,
58
40
  projectId: walletConnectProjectId,
59
41
  solNetworks: solanaNetworkConfigs,
60
42
  walletUiUtils: walletUiUtils || defaultWalletUiUtils,
61
43
  };
62
- const importedWallets = [
63
- ...ethereumAll.EthereumWalletConnectors(opts),
64
- ].map((wallet) => new wallet(opts));
65
- const allWallets = [
66
- ...importedWallets,
67
- new phantom(opts),
68
- new phantomLedger["default"](opts),
69
- new solflare(opts),
70
- new glow(opts),
71
- new slope(opts),
72
- new dapper(opts),
73
- new blocto(opts),
74
- new BraveSol(opts),
75
- new ExodusSol(opts),
76
- ...(((_a = apiProviders.magicLink) === null || _a === void 0 ? void 0 : _a.providerProjectId)
77
- ? [
78
- new magic.EmailOTPMagicWalletConnector(Object.assign({}, opts)),
79
- new magic.MagicSocialWalletConnector(Object.assign({}, opts)),
80
- ]
81
- : []),
82
- new MyAlgoWalletConnector(),
83
- new argentx(),
84
- new braavos(),
85
- new CoinbaseSolana(opts),
86
- new lilico(opts),
87
- new KeplrWalletConnector.KeplrWalletConnector(opts),
88
- ].map((wallet) => wallet.getMobileOrInstalledWallet());
89
- yield Promise.all(allWallets.map((wallet) => { var _a; return (_a = wallet.init) === null || _a === void 0 ? void 0 : _a.call(wallet); }));
44
+ const allWallets = walletConnectorsProp
45
+ .map((walletConnector) => walletConnector(opts))
46
+ .flat()
47
+ .map((wallet) => new wallet(opts).getMobileOrInstalledWallet());
90
48
  // Memoize the wallets
91
49
  const filteredWallets = filterWalletsForPlatform(allWallets);
92
50
  wallets = applyLinksOverrides(filteredWallets);
93
51
  return wallets;
94
- });
52
+ };
95
53
  const applyLinksOverrides = (wallets) => wallets.map((wallet) => {
96
54
  const metadata = walletBook.getWalletBookWallet(wallet.name);
97
55
  if (metadata.switchNetworkOnlyFromWallet !== undefined) {
@@ -104,7 +62,7 @@ const filterWalletsForPlatform = (wallets) => wallets.filter((wallet) => {
104
62
  if (wallet.isInstalledOnBrowser()) {
105
63
  return true;
106
64
  }
107
- else if (walletConnectorCore.isEmailWalletConnector(wallet)) {
65
+ else if (walletConnectorCore.isEmbeddedConnector(wallet)) {
108
66
  return true;
109
67
  }
110
68
  else if (metadata.showOnlyIfInstalled) {
@@ -114,10 +72,10 @@ const filterWalletsForPlatform = (wallets) => wallets.filter((wallet) => {
114
72
  return true;
115
73
  }
116
74
  else {
117
- return handleMobileWalletFilter(metadata);
75
+ return handleMobileWalletFilter(wallet.name, metadata);
118
76
  }
119
77
  });
120
- const handleMobileWalletFilter = (metadata) => {
78
+ const handleMobileWalletFilter = (walletName, metadata) => {
121
79
  if (!metadata.mobile)
122
80
  return false;
123
81
  /**
@@ -128,20 +86,14 @@ const handleMobileWalletFilter = (metadata) => {
128
86
  */
129
87
  const hasWalletConnectLink = Boolean(metadata.mobile.universal) || Boolean(metadata.mobile.native);
130
88
  const isWalletConnectWallet = metadata.walletConnect !== undefined;
131
- /**
132
- * wallets-links.json is the source of truth for wallet support on mobile platforms.
133
- * if a wallet has a non-empty value for ios, that means that wallet has an ios app
134
- * and we support that app. the same goes for android
135
- */
136
89
  if (utils.isIPad() || utils.isIPhone()) {
137
- const hasIOSLink = metadata.mobile.iosId !== undefined;
90
+ const hasIOSLink = Boolean(walletBook.getWalletLinks(walletName).ios);
138
91
  return !isWalletConnectWallet
139
92
  ? hasIOSLink
140
93
  : hasIOSLink && hasWalletConnectLink;
141
- // It is an android device
142
94
  }
143
95
  else {
144
- const hasAndroidLink = metadata.mobile.androidId !== undefined;
96
+ const hasAndroidLink = Boolean(walletBook.getWalletLinks(walletName).android);
145
97
  return !isWalletConnectWallet
146
98
  ? hasAndroidLink
147
99
  : hasAndroidLink && hasWalletConnectLink;
@@ -176,15 +128,14 @@ const getSupportedChainsForWalletConnector = (walletConnector) => {
176
128
  });
177
129
  return [...chainSet];
178
130
  };
179
- const getEnabledWallets = (props) => tslib.__awaiter(void 0, void 0, void 0, function* () {
180
- const supportedWallets = yield getSupportedWallets(props.getSupportedWalletOpts);
131
+ const getEnabledWallets = (props) => {
132
+ const supportedWallets = getSupportedWallets(props.getSupportedWalletOpts);
181
133
  const allEnabledWallets = supportedWallets.filter((wallet) => (props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(wallet).includes(chain)) &&
182
134
  wallet.isInstalledOnBrowser() === props.installed) ||
183
135
  wallet.key === 'magiclink');
184
136
  return allEnabledWallets;
185
- });
137
+ };
186
138
 
187
- exports.phantomLedgerWalletName = phantomLedger.walletName;
188
139
  exports.getEnabledWallets = getEnabledWallets;
189
140
  exports.getSupportedChainsForWalletConnector = getSupportedChainsForWalletConnector;
190
141
  exports.getSupportedWallets = getSupportedWallets;
@@ -1,10 +1,9 @@
1
1
  import { Chain, WalletConnector } from '@dynamic-labs/wallet-connector-core';
2
2
  import { GetSupportedWallets, GetSupportedWalletsOpts } from './types';
3
- export { walletName as phantomLedgerWalletName } from './wallets/solana/phantom-ledger';
4
3
  export declare const getSupportedWallets: GetSupportedWallets;
5
4
  export declare const getSupportedChainsForWalletConnector: (walletConnector: WalletConnector) => Chain[];
6
5
  export declare const getEnabledWallets: (props: {
7
6
  enabledChains: Chain[];
8
7
  getSupportedWalletOpts: GetSupportedWalletsOpts;
9
8
  installed: boolean;
10
- }) => Promise<WalletConnector[]>;
9
+ }) => WalletConnector[];