Skip to content

Commit c0aee18

Browse files
committed
devop: add massa generate tests
1 parent 266e863 commit c0aee18

17 files changed

Lines changed: 647 additions & 882 deletions

File tree

packages/extension-bridge/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
"webextension-polyfill": "^0.12.0"
4545
},
4646
"devDependencies": {
47-
"@types/node": "^22.18.1",
47+
"@types/node": "^22.18.3",
4848
"@types/webextension-polyfill": "^0.12.3",
49-
"@typescript-eslint/eslint-plugin": "^8.43.0",
50-
"@typescript-eslint/parser": "^8.43.0",
49+
"@typescript-eslint/eslint-plugin": "^8.44.0",
50+
"@typescript-eslint/parser": "^8.44.0",
5151
"bumpp": "^10.2.3",
5252
"eslint": "^9.35.0",
5353
"eslint-config-airbnb-base": "^15.0.0",
@@ -61,6 +61,6 @@
6161
"tsup": "^8.5.0",
6262
"type-fest": "^4.41.0",
6363
"typescript": "^5.9.2",
64-
"typescript-eslint": "8.43.0"
64+
"typescript-eslint": "8.44.0"
6565
}
6666
}

packages/extension/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"watch:firefox": "yarn prebuild && cross-env BROWSER='firefox' vite"
2424
},
2525
"dependencies": {
26-
"@amplitude/analytics-browser": "^2.23.7",
26+
"@amplitude/analytics-browser": "^2.24.0",
2727
"@enkryptcom/extension-bridge": "workspace:^",
2828
"@enkryptcom/hw-wallets": "workspace:^",
2929
"@enkryptcom/keyring": "workspace:^",
@@ -44,12 +44,12 @@
4444
"@metaplex-foundation/mpl-bubblegum": "^5.0.2",
4545
"@metaplex-foundation/umi": "^1.4.1",
4646
"@metaplex-foundation/umi-bundle-defaults": "^1.4.1",
47-
"@polkadot/api": "^16.4.6",
47+
"@polkadot/api": "^16.4.7",
4848
"@polkadot/extension-inject": "^0.61.7",
4949
"@polkadot/keyring": "^13.5.6",
50-
"@polkadot/rpc-provider": "^16.4.6",
51-
"@polkadot/types": "^16.4.6",
52-
"@polkadot/types-known": "^16.4.6",
50+
"@polkadot/rpc-provider": "^16.4.7",
51+
"@polkadot/types": "^16.4.7",
52+
"@polkadot/types-known": "^16.4.7",
5353
"@polkadot/ui-shared": "^3.16.1",
5454
"@polkadot/util": "^13.5.6",
5555
"@polkadot/wasm-crypto": "^7.5.1",
@@ -100,13 +100,13 @@
100100
"@rollup/plugin-typescript": "^12.1.4",
101101
"@tsconfig/node20": "^20.1.6",
102102
"@types/bs58": "^5.0.0",
103-
"@types/chrome": "^0.1.9",
103+
"@types/chrome": "^0.1.11",
104104
"@types/ethereumjs-abi": "^0.6.5",
105105
"@types/events": "^3.0.3",
106106
"@types/fs-extra": "^11.0.4",
107107
"@types/less": "^3.0.8",
108108
"@types/lodash": "^4.17.20",
109-
"@types/node": "^22.18.1",
109+
"@types/node": "^22.18.3",
110110
"@types/semver": "^7.7.1",
111111
"@types/url-parse": "^1.4.11",
112112
"@types/utf-8-validate": "^5.0.2",
@@ -121,25 +121,25 @@
121121
"cross-env": "^10.0.0",
122122
"eslint": "^9.35.0",
123123
"eslint-plugin-vue": "^10.4.0",
124-
"fs-extra": "^11.3.1",
124+
"fs-extra": "^11.3.2",
125125
"jsdom": "^26.1.0",
126126
"less": "^4.4.1",
127127
"less-loader": "^12.3.0",
128128
"npm-run-all2": "^8.0.4",
129129
"prettier": "^3.6.2",
130130
"rimraf": "^6.0.1",
131-
"rollup": "^4.50.1",
131+
"rollup": "^4.50.2",
132132
"rollup-plugin-visualizer": "^6.0.3",
133133
"semver": "^7.7.2",
134-
"systeminformation": "^5.27.8",
134+
"systeminformation": "^5.27.9",
135135
"tsup": "^8.5.0",
136136
"typescript": "~5.9.2",
137137
"url": "^0.11.4",
138138
"vite": "^7.1.5",
139139
"vite-plugin-node-polyfills": "0.24.0",
140140
"vite-tsconfig-paths": "^5.1.4",
141141
"vitest": "^3.2.4",
142-
"vue-tsc": "^3.0.6",
142+
"vue-tsc": "^3.0.7",
143143
"webextension-polyfill": "^0.12.0"
144144
},
145145
"installConfig": {

packages/hw-wallets/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"node": ">=14.15.0"
2323
},
2424
"devDependencies": {
25-
"@types/node": "^24.3.1",
26-
"@typescript-eslint/eslint-plugin": "^8.43.0",
27-
"@typescript-eslint/parser": "^8.43.0",
25+
"@types/node": "^24.4.0",
26+
"@typescript-eslint/eslint-plugin": "^8.44.0",
27+
"@typescript-eslint/parser": "^8.44.0",
2828
"eslint": "^9.35.0",
2929
"eslint-config-airbnb-base": "^15.0.0",
3030
"eslint-config-prettier": "^10.1.8",
@@ -36,7 +36,7 @@
3636
"tsconfig-paths": "^4.2.0",
3737
"tsup": "^8.5.0",
3838
"typescript": "^5.9.2",
39-
"typescript-eslint": "8.43.0",
39+
"typescript-eslint": "8.44.0",
4040
"vitest": "^3.2.4"
4141
},
4242
"repository": {
@@ -59,7 +59,7 @@
5959
"@ledgerhq/hw-transport-webusb": "^6.29.10",
6060
"@ledgerhq/live-common": "^34.20.0",
6161
"@metamask/eth-sig-util": "^8.2.0",
62-
"@polkadot/types": "^16.4.6",
62+
"@polkadot/types": "^16.4.7",
6363
"@polkadot/util": "^13.5.6",
6464
"@trezor/connect": "^9.6.2",
6565
"@trezor/connect-plugin-ethereum": "^9.0.5",

packages/keyring/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"bip39": "^3.1.0"
3636
},
3737
"devDependencies": {
38-
"@types/node": "^22.18.1",
39-
"@typescript-eslint/eslint-plugin": "^8.43.0",
40-
"@typescript-eslint/parser": "^8.43.0",
38+
"@types/node": "^22.18.3",
39+
"@typescript-eslint/eslint-plugin": "^8.44.0",
40+
"@typescript-eslint/parser": "^8.44.0",
4141
"eslint": "^9.35.0",
4242
"eslint-config-airbnb-base": "^15.0.0",
4343
"eslint-config-prettier": "^10.1.8",
@@ -49,7 +49,7 @@
4949
"tsconfig-paths": "^4.2.0",
5050
"tsup": "^8.5.0",
5151
"typescript": "^5.9.2",
52-
"typescript-eslint": "8.43.0",
52+
"typescript-eslint": "8.44.0",
5353
"vitest": "^3.2.4"
5454
},
5555
"repository": {

packages/keyring/tests/generate.test.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,57 @@ describe("Keyring create tests", () => {
253253
},
254254
);
255255

256+
it(
257+
"keyring should generate massa-ed25519 keys",
258+
{ timeout: 20_000 },
259+
async () => {
260+
const memStorage = new MemoryStorage();
261+
const storage = new Storage("keyring", { storage: memStorage });
262+
const keyring = new KeyRing(storage);
263+
await keyring.init(password, { mnemonic: MNEMONIC });
264+
const keyAdd: KeyRecordAdd = {
265+
basePath: "m/44'/632'",
266+
signerType: SignerType.ed25519mas,
267+
name: "0index",
268+
walletType: WalletType.mnemonic,
269+
};
270+
await keyring.unlockMnemonic(password);
271+
const pair = await keyring.createKey(keyAdd);
272+
expect(pair.signerType).equals(SignerType.ed25519mas);
273+
expect(pair.pathIndex).equals(0);
274+
expect(pair.address).equals(
275+
"AU12XkXdPKYBwuy3NANX44dR3cL7WMobsYcj1fWMv1mxkkHU9qBWB",
276+
);
277+
},
278+
);
279+
280+
it(
281+
"keyring should generate massa-ed25519 keys with extra word",
282+
{ timeout: 20_000 },
283+
async () => {
284+
const memStorage = new MemoryStorage();
285+
const storage = new Storage("keyring", { storage: memStorage });
286+
const keyring = new KeyRing(storage);
287+
await keyring.init(password, {
288+
mnemonic: MNEMONIC,
289+
extraWord: EXTRA_WORD,
290+
});
291+
const keyAdd: KeyRecordAdd = {
292+
basePath: "m/44'/632'",
293+
signerType: SignerType.ed25519mas,
294+
name: "0index",
295+
walletType: WalletType.mnemonic,
296+
};
297+
await keyring.unlockMnemonic(password);
298+
const pair = await keyring.createKey(keyAdd);
299+
expect(pair.signerType).equals(SignerType.ed25519mas);
300+
expect(pair.pathIndex).equals(0);
301+
expect(pair.address).equals(
302+
"AU12M9c9LwomXh7sEuK779RnV8QbzFfQRZ1qpKhwWzXPpShhrBfz2",
303+
);
304+
},
305+
);
306+
256307
it("keyring should generate ethereum keys", { timeout: 20_000 }, async () => {
257308
const memStorage = new MemoryStorage();
258309
const storage = new Storage("keyring", { storage: memStorage });

packages/name-resolution/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"node": ">=14.15.0"
2323
},
2424
"devDependencies": {
25-
"@types/node": "^22.18.1",
26-
"@typescript-eslint/eslint-plugin": "^8.43.0",
27-
"@typescript-eslint/parser": "^8.43.0",
25+
"@types/node": "^22.18.3",
26+
"@typescript-eslint/eslint-plugin": "^8.44.0",
27+
"@typescript-eslint/parser": "^8.44.0",
2828
"eslint": "^9.35.0",
2929
"eslint-config-airbnb-base": "^15.0.0",
3030
"eslint-config-prettier": "^10.1.8",
@@ -36,8 +36,8 @@
3636
"tsconfig-paths": "^4.2.0",
3737
"tsup": "^8.5.0",
3838
"typescript": "^5.9.2",
39-
"typescript-eslint": "8.43.0",
40-
"viem": "^2.37.5",
39+
"typescript-eslint": "8.44.0",
40+
"viem": "^2.37.6",
4141
"vitest": "^3.2.4"
4242
},
4343
"repository": {

packages/request/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"ws": "^8.18.3"
3232
},
3333
"devDependencies": {
34-
"@types/node": "^22.18.1",
35-
"@typescript-eslint/eslint-plugin": "^8.43.0",
36-
"@typescript-eslint/parser": "^8.43.0",
34+
"@types/node": "^22.18.3",
35+
"@typescript-eslint/eslint-plugin": "^8.44.0",
36+
"@typescript-eslint/parser": "^8.44.0",
3737
"eslint": "^9.35.0",
3838
"eslint-config-airbnb-base": "^15.0.0",
3939
"eslint-config-prettier": "^10.1.8",
@@ -45,7 +45,7 @@
4545
"tsconfig-paths": "^4.2.0",
4646
"tsup": "^8.5.0",
4747
"typescript": "^5.9.2",
48-
"typescript-eslint": "8.43.0",
48+
"typescript-eslint": "8.44.0",
4949
"vitest": "^3.2.4"
5050
},
5151
"repository": {

packages/signers/bitcoin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"devDependencies": {
3333
"@enkryptcom/types": "workspace:^",
3434
"@types/hdkey": "^2.1.0",
35-
"@types/node": "^24.3.1",
36-
"@typescript-eslint/eslint-plugin": "^8.43.0",
37-
"@typescript-eslint/parser": "^8.43.0",
35+
"@types/node": "^24.4.0",
36+
"@typescript-eslint/eslint-plugin": "^8.44.0",
37+
"@typescript-eslint/parser": "^8.44.0",
3838
"eslint": "^9.35.0",
3939
"eslint-config-airbnb-base": "^15.0.0",
4040
"eslint-config-prettier": "^10.1.8",
@@ -46,7 +46,7 @@
4646
"tsconfig-paths": "^4.2.0",
4747
"tsup": "^8.5.0",
4848
"typescript": "^5.9.2",
49-
"typescript-eslint": "8.43.0",
49+
"typescript-eslint": "8.44.0",
5050
"vitest": "^3.2.4"
5151
},
5252
"repository": {

packages/signers/ethereum/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"devDependencies": {
3333
"@enkryptcom/types": "workspace:^",
3434
"@types/hdkey": "^2.1.0",
35-
"@types/node": "^24.3.1",
36-
"@typescript-eslint/eslint-plugin": "^8.43.0",
37-
"@typescript-eslint/parser": "^8.43.0",
35+
"@types/node": "^24.4.0",
36+
"@typescript-eslint/eslint-plugin": "^8.44.0",
37+
"@typescript-eslint/parser": "^8.44.0",
3838
"eslint": "^9.35.0",
3939
"eslint-config-airbnb-base": "^15.0.0",
4040
"eslint-config-prettier": "^10.1.8",
@@ -46,7 +46,7 @@
4646
"tsconfig-paths": "^4.2.0",
4747
"tsup": "^8.5.0",
4848
"typescript": "^5.9.2",
49-
"typescript-eslint": "8.43.0",
49+
"typescript-eslint": "8.44.0",
5050
"vitest": "^3.2.4"
5151
},
5252
"repository": {

packages/signers/kadena/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"@enkryptcom/types": "workspace:^",
3131
"@polkadot/util-crypto": "^13.5.6",
3232
"@types/hdkey": "^2.1.0",
33-
"@types/node": "^24.3.1",
34-
"@typescript-eslint/eslint-plugin": "^8.43.0",
35-
"@typescript-eslint/parser": "^8.43.0",
33+
"@types/node": "^24.4.0",
34+
"@typescript-eslint/eslint-plugin": "^8.44.0",
35+
"@typescript-eslint/parser": "^8.44.0",
3636
"eslint": "^9.35.0",
3737
"eslint-config-airbnb-base": "^15.0.0",
3838
"eslint-config-prettier": "^10.1.8",
@@ -44,7 +44,7 @@
4444
"tsconfig-paths": "^4.2.0",
4545
"tsup": "^8.5.0",
4646
"typescript": "^5.9.2",
47-
"typescript-eslint": "8.43.0",
47+
"typescript-eslint": "8.44.0",
4848
"vitest": "^3.2.4"
4949
},
5050
"repository": {

0 commit comments

Comments
 (0)