Skip to content

Commit

Permalink
feat(extension): use nami migration tool external package
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvalentin committed Apr 29, 2024
1 parent 3267d4b commit c6e85a7
Show file tree
Hide file tree
Showing 9 changed files with 1,483 additions and 56 deletions.
2 changes: 1 addition & 1 deletion apps/browser-extension-wallet/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "$WALLET_MANIFEST_NAME",
"description": "One fast, accessible, and secure platform for digital assets, DApps, NFTs, and DeFi.",
"version": "1.9.0",
"version": "1.100.100",
"manifest_version": 3,
"key": "$LACE_EXTENSION_KEY",
"icons": {
Expand Down
1 change: 1 addition & 0 deletions apps/browser-extension-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@react-rxjs/core": "^0.9.8",
"@react-rxjs/utils": "^0.9.5",
"@vespaiach/axios-fetch-adapter": "^0.3.0",
"@xsy/nami-migration-tool": "file:./xsy-nami-migration-tool-0.0.5.tgz",
"antd": "^4.24.10",
"are-you-es5": "^2.1.2",
"axios": "0.21.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Nami from '@types';
import type * as Nami from '@xsy/nami-migration-tool';

export const state: Nami.State = {
encryptedPrivateKey:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Nami from '@types';
import type * as Nami from '@xsy/nami-migration-tool';
import * as Extension from '@cardano-sdk/web-extension';
import { Wallet } from '@lace/cardano';
import { HexBlob } from '@cardano-sdk/util';
Expand All @@ -8,6 +8,7 @@ import { WalletId } from '@cardano-sdk/web-extension';
export type WalletRepository = Extension.WalletRepository<Wallet.WalletMetadata, Wallet.AccountMetadata>;
export type AddWalletProps = Extension.AddWalletProps<Wallet.WalletMetadata, Wallet.AccountMetadata>;
export type AnyWallet = Extension.AnyWallet<Wallet.WalletMetadata, Wallet.AccountMetadata>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type WalletManager = Extension.WalletManager<any, any>;
export type CollateralRepository = (args: {
walletId: WalletId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { runtime, tabs } from 'webextension-polyfill';
import { walletRoutePaths } from '@routes/wallet-paths';
import type * as Nami from '@xsy/nami-migration-tool';
import { walletRepository, walletManager, getBaseDbName } from './wallet';
import * as Nami from '@types';

import { run, CollateralRepository } from './nami-migration-runner';
import { currencyCode } from '@providers/currency/constants';
Expand Down
1 change: 0 additions & 1 deletion apps/browser-extension-wallet/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ export * from './activity-detail';
export * from './dappConnector';
export * from './ui';
export * from './side-menu';
export * from './nami-migration';
35 changes: 0 additions & 35 deletions apps/browser-extension-wallet/src/types/nami-migration.ts

This file was deleted.

Binary file not shown.

0 comments on commit c6e85a7

Please sign in to comment.