@cardano-sdk/web-extension 0.25.0 → 0.26.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.
package/README.md CHANGED
@@ -183,12 +183,15 @@ The **consumeRemoteApi**, **walletManagerChannel**, **repositoryChannel** and **
183
183
  In the service worker the application instantiates the **WalletRepository** and **WalletManager** and exposes them via the web-extension messaging system:
184
184
 
185
185
  ```javascript
186
- serviceWorker.ts
186
+ serviceWorker.ts;
187
187
 
188
- const walletRepository = new WalletRepository<Metadata>({
189
- logger,
190
- store: new storage.InMemoryCollectionStore()
191
- });
188
+ const walletRepository =
189
+ new WalletRepository() <
190
+ Metadata >
191
+ {
192
+ logger,
193
+ store: new storage.InMemoryCollectionStore()
194
+ };
192
195
 
193
196
  const signingCoordinatorApi = consumeRemoteApi(
194
197
  {
@@ -198,9 +201,10 @@ const signingCoordinatorApi = consumeRemoteApi(
198
201
  dependencies
199
202
  );
200
203
 
201
-
202
- const walletManager = new WalletManager<Metadata>(
203
- { name: walletName },
204
+ const walletManager =
205
+ new WalletManager() <
206
+ Metadata >
207
+ ({ name: walletName },
204
208
  {
205
209
  logger,
206
210
  managerStorage: WebExtensionStorage.local,
@@ -209,8 +213,7 @@ const walletManager = new WalletManager<Metadata>(
209
213
  storesFactory,
210
214
  walletFactory,
211
215
  walletRepository
212
- }
213
- );
216
+ });
214
217
 
215
218
  exposeApi(
216
219
  {