Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: v2.4.0 #614

Open
wants to merge 70 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d2e39c1
feat: add backup page
gamalielhere Jan 8, 2025
3cc855c
fix: identicon mismatch on activity
gamalielhere Feb 3, 2025
1260f74
Merge branch 'develop' into feat/backup-detected
kvhnuke Feb 4, 2025
232435a
fix: enkrypt logo overflow in create
olgakup Feb 4, 2025
40e8dd5
fix: focus state and safari button spacing
olgakup Feb 4, 2025
928a7ed
devop: implement corrent icons in the tab menu
olgakup Feb 4, 2025
28a15ce
fix: title wrap in connect popup
olgakup Feb 4, 2025
931c6a7
fix: token icon size in assets
olgakup Feb 4, 2025
c547727
fix: show active network in pinned and new tab
olgakup Feb 4, 2025
51f3e91
devop: donot cache version updates
olgakup Feb 4, 2025
09a499a
feat: add error message for network fail
gamalielhere Feb 4, 2025
e81cd7b
devop: backups are functioning
kvhnuke Feb 5, 2025
40d095c
fix: minor ui cleanup
gamalielhere Feb 5, 2025
274981e
devop: cleanup
kvhnuke Feb 5, 2025
00e4e72
devop: backup settings
kvhnuke Feb 5, 2025
e1c02d1
devop: backup functionality complete
kvhnuke Feb 5, 2025
cb0890f
devop: vite 6 and package updates
kvhnuke Feb 7, 2025
6aec310
devop: more updates
kvhnuke Feb 7, 2025
96832b4
fix: build
kvhnuke Feb 7, 2025
a1a3804
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 10, 2025
044487e
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 10, 2025
0a327c1
devop: update pakages
kvhnuke Feb 10, 2025
61aa5ef
Merge pull request #608 from enkryptcom/fix/ui-issues
olgakup Feb 10, 2025
2d1f27d
Merge pull request #609 from enkryptcom/fix/show-active-network-in-tabs
olgakup Feb 10, 2025
b063e45
devop: update zerox api
gamalielhere Feb 10, 2025
eb98290
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 10, 2025
c27e1cf
fix: update path to allowance holder
gamalielhere Feb 10, 2025
3dbaa9c
devop: switch to new api
kvhnuke Feb 10, 2025
80d073d
devop: cleanup types based on what we use, fix parameters to fit v2
gamalielhere Feb 10, 2025
75ed672
feat: clean up table, add loading state, add no backup state
gamalielhere Feb 12, 2025
75a393f
devop: new uuid for each restore
kvhnuke Feb 12, 2025
7888dbc
feat: updates
gamalielhere Feb 12, 2025
3cf90f1
Merge branch 'feat/backup-detected' of github.com:enkryptcom/enKrypt …
gamalielhere Feb 12, 2025
73f87c2
devop: generate names for uuids
kvhnuke Feb 13, 2025
2f8fe0c
fix: automatic adding of new networks to pinned
kvhnuke Feb 13, 2025
b8064d4
fix: automatic adding of new networks to pinned
kvhnuke Feb 13, 2025
d11eca8
devop: clean up and loading state
gamalielhere Feb 13, 2025
2171ae8
fix: conflicts
gamalielhere Feb 13, 2025
10cd0ca
fix: change titles
gamalielhere Feb 13, 2025
c315046
fix: remove underscore
gamalielhere Feb 13, 2025
821a834
fix: build
kvhnuke Feb 13, 2025
5abdb83
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 13, 2025
26cf299
Merge branch 'devop/upgrade-packages' into devop/fix-new-networks
kvhnuke Feb 13, 2025
83016bb
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 13, 2025
7646821
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 13, 2025
d22ef81
Merge branch 'devop/upgrade-packages' of github.com:enkryptcom/enKryp…
gamalielhere Feb 13, 2025
9b4efbf
fix: catch displayAddress error, close contacts on paste
gamalielhere Feb 13, 2025
829098a
feat: cleanup, enable identicon
gamalielhere Feb 13, 2025
7748adb
feat: add delete confirmation page for backups
gamalielhere Feb 14, 2025
eff1a45
chore: margins
gamalielhere Feb 14, 2025
3a8ab1d
devop: switch url
kvhnuke Feb 14, 2025
c47a88f
Merge branch 'feat/backup-detected' of github.com:enkryptcom/enKrypt …
kvhnuke Feb 14, 2025
8a35cde
Merge pull request #618 from enkryptcom/devop/fix-new-networks
olgakup Feb 18, 2025
ebe36dc
feat: loading state for backup page
gamalielhere Feb 18, 2025
27086e8
Merge branch 'feat/backup-detected' of github.com:enkryptcom/enKrypt …
gamalielhere Feb 18, 2025
4e826a7
Merge pull request #607 from enkryptcom/fix/identicon-mismatch
gamalielhere Feb 18, 2025
ae60c12
fix: clear timer on beforeunmount
gamalielhere Feb 18, 2025
6f90019
Merge pull request #615 from enkryptcom/devop/update-zerox-api
gamalielhere Feb 18, 2025
ef4c89e
Merge pull request #619 from enkryptcom/fix/past-window
gamalielhere Feb 18, 2025
7423e7e
Merge pull request #610 from enkryptcom/fix/ui-freezing
gamalielhere Feb 18, 2025
ff20eec
chore: copy changes and margin
gamalielhere Feb 18, 2025
c811fbd
fix: spacing
gamalielhere Feb 18, 2025
fa715f0
fix: backup on new wallets
kvhnuke Feb 18, 2025
213808c
fix: close delete modal after deleting
gamalielhere Feb 19, 2025
3f81643
Merge branch 'feat/backup-detected' of github.com:enkryptcom/enKrypt …
gamalielhere Feb 19, 2025
3c01cd4
devop: token 2022 support
kvhnuke Feb 19, 2025
f37893a
fix: recent blockhash issue with jupag
kvhnuke Feb 19, 2025
ae0286f
fix: jupag swap for token 2022
kvhnuke Feb 20, 2025
b519d6e
Merge pull request #594 from enkryptcom/feat/backup-detected
gamalielhere Feb 20, 2025
f122888
Merge pull request #620 from enkryptcom/fix/solana-2022-program
kvhnuke Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@swc/core": "^1.9.2",
"concurrently": "^9.1.0",
"husky": "^9.1.6",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@swc/core": "^1.10.14",
"concurrently": "^9.1.2",
"husky": "^9.1.7",
"node-notifier": "^10.0.1",
"nodemon": "^3.1.7",
"nodemon": "^3.1.9",
"ultra-runner": "^3.10.5"
},
"resolutions": {
Expand Down
18 changes: 9 additions & 9 deletions packages/extension-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@
],
"dependencies": {
"nanoevents": "^9.1.0",
"serialize-error": "11.0.3",
"serialize-error": "12.0.0",
"tiny-uid": "^1.1.2",
"webextension-polyfill": "^0.12.0"
},
"devDependencies": {
"@types/node": "^22.9.0",
"@types/node": "^22.13.1",
"@types/webextension-polyfill": "^0.12.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"bumpp": "^9.8.1",
"eslint": "^9.14.0",
"bumpp": "^10.0.2",
"eslint": "^9.20.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-module-resolver": "^1.5.0",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.3.5",
"type-fest": "^4.26.1",
"typescript": "^5.6.3",
"typescript-eslint": "8.14.0"
"tsup": "^8.3.6",
"type-fest": "^4.33.0",
"typescript": "^5.7.3",
"typescript-eslint": "8.23.0"
}
}
4 changes: 4 additions & 0 deletions packages/extension/configs/vite/empty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const readFileSync = () => {};
const writeFileSync = () => {};

export { readFileSync, writeFileSync };
Comment on lines +1 to +4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Throw errors in mock implementations to prevent silent failures.

Empty mock implementations could lead to silent failures. Consider throwing errors to make it clear that these functions are not meant to be called.

Apply this diff to throw errors:

-const readFileSync = () => {};
-const writeFileSync = () => {};
+const readFileSync = () => {
+  throw new Error('readFileSync is not implemented in this environment');
+};
+const writeFileSync = () => {
+  throw new Error('writeFileSync is not implemented in this environment');
+};
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const readFileSync = () => {};
const writeFileSync = () => {};
export { readFileSync, writeFileSync };
const readFileSync = () => {
throw new Error('readFileSync is not implemented in this environment');
};
const writeFileSync = () => {
throw new Error('writeFileSync is not implemented in this environment');
};
export { readFileSync, writeFileSync };

14 changes: 7 additions & 7 deletions packages/extension/configs/vite/transform-manifest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CrxPlugin } from '@crxjs/vite-plugin'
import { CrxPlugin } from '@crxjs/vite-plugin';

function transFormManifest(): CrxPlugin {
return {
Expand All @@ -17,15 +17,15 @@ function transFormManifest(): CrxPlugin {
js: ['vendor/trezor-content-script.js'],
run_at: 'document_start',
},
] as any
] as any;
if (process.env.BROWSER !== 'opera') {
manifest.content_scripts?.push({
matches: ['file://*/*', 'http://*/*', 'https://*/*'],
js: ['scripts/inject.js'],
run_at: 'document_start',
all_frames: false,
world: 'MAIN',
} as any)
} as any);
}
manifest.web_accessible_resources?.push({
resources: [
Expand All @@ -35,9 +35,9 @@ function transFormManifest(): CrxPlugin {
],
use_dynamic_url: false,
matches: ['file://*/*', 'http://*/*', 'https://*/*'],
})
return manifest
});
return manifest;
},
}
};
}
export default transFormManifest
export default transFormManifest;
120 changes: 60 additions & 60 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"watch:firefox": "yarn prebuild && cross-env BROWSER='firefox' vite"
},
"dependencies": {
"@amplitude/analytics-browser": "^2.11.9",
"@amplitude/analytics-browser": "^2.11.11",
"@enkryptcom/extension-bridge": "workspace:^",
"@enkryptcom/hw-wallets": "workspace:^",
"@enkryptcom/keyring": "workspace:^",
Expand All @@ -35,51 +35,51 @@
"@ethereumjs/common": "^4.4.0",
"@ethereumjs/tx": "^5.4.0",
"@ethereumjs/util": "^9.1.0",
"@kadena/client": "^1.15.0",
"@kadena/pactjs-cli": "^1.15.0",
"@ethereumjs/wallet": "^2.0.4",
"@kadena/client": "^1.16.0",
"@kadena/pactjs-cli": "^1.16.0",
"@ledgerhq/hw-transport-webusb": "^6.29.4",
"@metamask/eth-sig-util": "^7.0.3",
"@metaplex-foundation/mpl-bubblegum": "^4.2.1",
"@metaplex-foundation/umi": "^0.9.2",
"@metaplex-foundation/umi-bundle-defaults": "^0.9.2",
"@polkadot/api": "^14.3.1",
"@polkadot/extension-inject": "^0.56.2",
"@polkadot/keyring": "^13.2.3",
"@polkadot/rpc-provider": "^14.3.1",
"@polkadot/types": "^14.3.1",
"@polkadot/types-known": "^14.3.1",
"@polkadot/ui-shared": "^3.11.3",
"@polkadot/util": "^13.2.3",
"@metamask/eth-sig-util": "^8.2.0",
"@metaplex-foundation/mpl-bubblegum": "^4.3.1",
"@metaplex-foundation/umi": "^1.0.0",
"@metaplex-foundation/umi-bundle-defaults": "^1.0.0",
"@polkadot/api": "^15.5.2",
"@polkadot/extension-inject": "^0.58.3",
"@polkadot/keyring": "^13.3.1",
"@polkadot/rpc-provider": "^15.5.2",
"@polkadot/types": "^15.5.2",
"@polkadot/types-known": "^15.5.2",
"@polkadot/ui-shared": "^3.12.1",
"@polkadot/util": "^13.3.1",
"@polkadot/wasm-crypto": "^7.4.1",
"@solana-developers/helpers": "^2.5.6",
"@solana/spl-token": "^0.4.9",
"@solana/wallet-standard-features": "^1.2.0",
"@solana/web3.js": "^1.95.4",
"@wallet-standard/base": "^0.0.0-20240703212708",
"@solana-developers/helpers": "^2.7.0",
"@solana/spl-token": "^0.4.12",
"@solana/wallet-standard-features": "^1.3.0",
"@solana/web3.js": "^1.98.0",
"@wallet-standard/base": "^1.1.0",
"add": "^2.0.6",
"bignumber.js": "^9.1.2",
"bip39": "^3.1.0",
"bitcoinjs-lib": "^6.1.6",
"bitcoinjs-lib": "^6.1.7",
"bs58": "^6.0.0",
"concurrently": "^9.1.0",
"echarts": "^5.5.1",
"concurrently": "^9.1.2",
"echarts": "^5.6.0",
"ethereum-cryptography": "^2.2.1",
"ethereumjs-abi": "^0.6.8",
"ethereumjs-wallet": "^1.0.2",
"eventemitter3": "^5.0.1",
"lodash": "^4.17.21",
"memoize-one": "^6.0.0",
"moment": "^2.30.1",
"nanoevents": "^9.1.0",
"pact-lang-api": "^4.3.6",
"pinia": "^2.2.6",
"pinia": "^2.3.1",
"qrcode.vue": "^3.6.0",
"switch-ts": "^1.1.1",
"url-parse": "^1.5.10",
"uuid": "^10.0.0",
"vue": "^3.5.12",
"uuid": "^11.0.5",
"vue": "^3.5.13",
"vue-echarts": "7.0.3",
"vue-router": "^4.4.5",
"vue-router": "^4.5.0",
"vue3-lottie": "^3.3.1",
"vuedraggable": "^4.1.0",
"web3-eth": "^1.10.4",
Expand All @@ -88,55 +88,55 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@crxjs/vite-plugin": "^2.0.0-beta.26",
"@rollup/plugin-commonjs": "^28.0.1",
"@crxjs/vite-plugin": "^2.0.0-beta.31",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-typescript": "^12.1.2",
"@tsconfig/node20": "^20.1.4",
"@types/bs58": "^4.0.4",
"@types/chrome": "^0.0.280",
"@types/chrome": "^0.0.302",
"@types/ethereumjs-abi": "^0.6.5",
"@types/events": "^3.0.3",
"@types/fs-extra": "^11.0.4",
"@types/less": "^3.0.6",
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.0",
"@types/less": "^3.0.8",
"@types/lodash": "^4.17.15",
"@types/node": "^22.13.1",
"@types/url-parse": "^1.4.11",
"@types/utf-8-validate": "^5.0.2",
"@types/uuid": "^10.0.0",
"@types/wif": "^2.0.5",
"@types/zxcvbn": "^4.4.5",
"@vitejs/plugin-vue": "^5.1.5",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.3",
"@vue/tsconfig": "^0.6.0",
"@vueuse/core": "^11.2.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.3.0",
"@vue/tsconfig": "^0.7.0",
"@vueuse/core": "^12.5.0",
"cross-env": "^7.0.3",
"eslint": "^9.14.0",
"eslint-plugin-vue": "^9.31.0",
"fs-extra": "^11.2.0",
"jsdom": "^25.0.1",
"less": "^4.2.0",
"eslint": "^9.20.0",
"eslint-plugin-vue": "^9.32.0",
"fs-extra": "^11.3.0",
"jsdom": "^26.0.0",
"less": "^4.2.2",
"less-loader": "^12.2.0",
"npm-run-all2": "^6.2.6",
"prettier": "^3.3.3",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"rollup": "^4.25.0",
"rollup-plugin-visualizer": "^5.12.0",
"semver": "^7.6.3",
"systeminformation": "^5.23.5",
"tsup": "^8.3.5",
"typescript": "~5.6.3",
"rollup": "^4.34.6",
"rollup-plugin-visualizer": "^5.14.0",
"semver": "^7.7.1",
"systeminformation": "^5.25.11",
"tsup": "^8.3.6",
"typescript": "~5.7.3",
"url": "^0.11.4",
"vite": "^5.4.11",
"vite-plugin-node-polyfills": "0.17.0",
"vite-tsconfig-paths": "^5.1.2",
"vitest": "^2.1.4",
"vue-tsc": "^2.1.10",
"vite": "^6.1.0",
"vite-plugin-node-polyfills": "0.23.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.5",
"vue-tsc": "^2.2.0",
"webextension-polyfill": "^0.12.0"
},
"installConfig": {
Expand Down
44 changes: 0 additions & 44 deletions packages/extension/src/libs/networks-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import BrowserStorage from '../common/browser-storage';
import { POPULAR_NAMES } from '../utils/networks';
import { InternalStorageNamespace } from '@/types/provider';
import { IState, StorageKeys, NetworkStorageElement } from './types';
import { newNetworks, newSwaps } from '@/providers/common/libs/new-features';

class NetworksState {
private storage: BrowserStorage;
Expand Down Expand Up @@ -53,47 +52,6 @@ class NetworksState {
await this.setState(state);
}

/**
* Inserts networks with new features.
*
* This method first retrieves the current state and checks if the networks
* have been updated to the latest version. If the state and networks are defined,
* it filters out the networks that are not in the predefined list of networks with new features.
* It then maps the filtered networks to a new network item and inserts them into the valid networks.
* The new networks are inserted at the 6th index, or at the end if there are fewer than 6 networks.
* The state is then updated with the new networks and the latest version.
*/
async insertNetworksWithNewFeatures(): Promise<void> {
const state: IState | undefined = await this.getState();
if (
state &&
state.networks &&
state.newNetworksVersion !== __PACKAGE_VERSION__
) {
let validNetworks = state.networks;
const netsWithFeatures = [
...new Set([...newNetworks, ...newSwaps]),
].sort();
const filteredNets = netsWithFeatures.filter(n => {
for (const vn of validNetworks) if (vn.name === n) return false;
return true;
});
const fnetworkItem = filteredNets.map(name => {
return {
name,
};
});
const insertIdx = validNetworks.length > 5 ? 5 : validNetworks.length;
validNetworks = validNetworks
.slice(0, insertIdx)
.concat(fnetworkItem, validNetworks.slice(insertIdx));
state.networks = validNetworks;
state.newNetworksVersion = __PACKAGE_VERSION__ as string;
state.newUsedFeatures = { networks: [], swap: [] };
await this.setState(state);
}
}

async setUsedFeature(feature: 'networks' | 'swap', networkName: string) {
const state: IState | undefined = await this.getState();
if (state) {
Expand Down Expand Up @@ -127,7 +85,6 @@ class NetworksState {
* @returns {Promise<string[]>} A promise that resolves to an array of active network names.
*/
async getPinnedNetworkNames(): Promise<string[]> {
await this.insertNetworksWithNewFeatures();
const state: IState | undefined = await this.getState();
if (state && state.networks) {
const validNetworks = state.networks;
Expand All @@ -139,7 +96,6 @@ class NetworksState {
}

async getEnabledTestNetworks(): Promise<string[]> {
await this.insertNetworksWithNewFeatures();
const state: IState | undefined = await this.getState();
if (state && state.enabledTestNetworks) {
const validNetworks = state.enabledTestNetworks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
width: 100%;
height: 100%;
padding-left: 30px;
h2 {
word-break: normal !important;
}

&__header {
padding: 28px 0 8px 0;
Expand Down
Loading
Loading