Skip to content

Commit 9fb07a7

Browse files
authored
feat(1949): dependabot-review (#1950)
Signed-off-by: rozekmichal <michal.rozek@blockydevs.com>
1 parent f6bd93c commit 9fb07a7

35 files changed

Lines changed: 1548 additions & 941 deletions

File tree

package-lock.json

Lines changed: 1355 additions & 691 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,48 +73,49 @@
7373
},
7474
"dependencies": {
7575
"@clack/prompts": "0.11.0",
76-
"@hiero-ledger/sdk": "2.82.0",
77-
"@openzeppelin/contracts": "5.4.0",
76+
"@hiero-ledger/sdk": "2.84.0",
77+
"@openzeppelin/contracts": "5.6.1",
7878
"ansi-escapes": "4.3.2",
79-
"bignumber.js": "10.0.2",
79+
"bignumber.js": "11.1.1",
8080
"commander": "14.0.3",
8181
"ethers": "6.16.0",
8282
"handlebars": "4.7.9",
83-
"jiti": "2.6.1",
84-
"solc": "0.8.34",
83+
"jiti": "2.7.0",
84+
"solc": "0.8.35",
8585
"supports-hyperlinks": "3.0.0",
86-
"zod": "4.3.6",
87-
"zustand": "5.0.11"
86+
"zod": "4.4.3",
87+
"zustand": "5.0.14"
8888
},
8989
"devDependencies": {
90-
"@swc/core": "^1.15.24",
91-
"@swc/jest": "^0.2.39",
90+
"@swc/core": "1.15.40",
91+
"@swc/jest": "0.2.39",
9292
"@types/jest": "30.0.0",
93-
"@types/node": "25.3.5",
94-
"@typescript-eslint/eslint-plugin": "8.50.0",
95-
"@typescript-eslint/parser": "8.50.0",
93+
"@types/node": "25.9.1",
94+
"@typescript-eslint/eslint-plugin": "8.60.0",
95+
"@typescript-eslint/parser": "8.60.0",
9696
"copyfiles": "2.4.1",
9797
"cross-env": "10.1.0",
98-
"dotenv": "17.2.4",
98+
"dotenv": "17.4.2",
9999
"eslint": "9.39.2",
100100
"eslint-config-prettier": "10.1.8",
101101
"eslint-import-resolver-typescript": "4.4.4",
102102
"eslint-plugin-import": "2.32.0",
103103
"eslint-plugin-no-relative-import-paths": "1.6.1",
104-
"eslint-plugin-prettier": "5.5.5",
105-
"eslint-plugin-simple-import-sort": "12.1.1",
104+
"eslint-plugin-prettier": "5.5.6",
105+
"eslint-plugin-simple-import-sort": "13.0.0",
106106
"husky": "9.1.7",
107-
"jest": "30.2.0",
107+
"jest": "30.4.2",
108108
"jest-junit": "17.0.0",
109109
"lint-staged": "16.3.2",
110-
"prettier": "3.8.1",
111-
"rimraf": "6.1.2",
112-
"tsc-alias": "1.8.16",
110+
"prettier": "3.8.3",
111+
"rimraf": "6.1.3",
112+
"tsc-alias": "1.8.17",
113113
"tsconfig-paths": "4.2.0",
114114
"typescript": "5.9.3"
115115
},
116116
"overrides": {
117-
"protobufjs": "7.5.6"
117+
"protobufjs": "7.5.8",
118+
"tmp": "0.2.7"
118119
},
119120
"lint-staged": {
120121
"**/*.{js,ts,tsx}": [

src/__tests__/mocks/mocks.ts

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -533,20 +533,19 @@ const makeOutputMock = (): jest.Mocked<OutputService> => ({
533533
emptyLine: jest.fn(),
534534
});
535535

536-
const makePluginManagementServiceMock = (): PluginManagementService =>
537-
({
538-
listPlugins: jest.fn().mockReturnValue([]),
539-
getPlugin: jest.fn(),
540-
addPlugin: jest.fn(),
541-
removePlugin: jest.fn(),
542-
enablePlugin: jest.fn(),
543-
disablePlugin: jest.fn(),
544-
resetPlugins: jest.fn(),
545-
savePluginState: jest.fn(),
546-
getInitializedDefaults: jest.fn().mockReturnValue([]),
547-
setInitializedDefaults: jest.fn(),
548-
addToInitializedDefaults: jest.fn(),
549-
}) as unknown as PluginManagementService;
536+
const makePluginManagementServiceMock = (): PluginManagementService => ({
537+
listPlugins: jest.fn().mockReturnValue([]),
538+
getPlugin: jest.fn(),
539+
addPlugin: jest.fn(),
540+
removePlugin: jest.fn(),
541+
enablePlugin: jest.fn(),
542+
disablePlugin: jest.fn(),
543+
resetPlugins: jest.fn(),
544+
savePluginState: jest.fn(),
545+
getInitializedDefaults: jest.fn().mockReturnValue([]),
546+
setInitializedDefaults: jest.fn(),
547+
addToInitializedDefaults: jest.fn(),
548+
});
550549

551550
const makeContractTransactionServiceMock = (): ContractTransactionService =>
552551
({
@@ -556,23 +555,20 @@ const makeContractTransactionServiceMock = (): ContractTransactionService =>
556555
}) as unknown as ContractTransactionService;
557556

558557
export const makeScheduleTransactionServiceMock =
559-
(): jest.Mocked<ScheduleTransactionService> =>
560-
({
561-
buildScheduleCreateTransaction: jest.fn(),
562-
buildScheduleSignTransaction: jest.fn(),
563-
buildScheduleDeleteTransaction: jest.fn(),
564-
}) as unknown as jest.Mocked<ScheduleTransactionService>;
558+
(): jest.Mocked<ScheduleTransactionService> => ({
559+
buildScheduleCreateTransaction: jest.fn(),
560+
buildScheduleSignTransaction: jest.fn(),
561+
buildScheduleDeleteTransaction: jest.fn(),
562+
});
565563

566-
const makeContractVerifierServiceMock = (): ContractVerifierService =>
567-
({
568-
verifyContract: jest.fn(),
569-
isVerifiedFullMatchOnRepository: jest.fn().mockResolvedValue(false),
570-
}) as unknown as ContractVerifierService;
564+
const makeContractVerifierServiceMock = (): ContractVerifierService => ({
565+
verifyContract: jest.fn(),
566+
isVerifiedFullMatchOnRepository: jest.fn().mockResolvedValue(false),
567+
});
571568

572-
const makeContractCompilerServiceMock = (): ContractCompilerService =>
573-
({
574-
compileContract: jest.fn(),
575-
}) as unknown as ContractCompilerService;
569+
const makeContractCompilerServiceMock = (): ContractCompilerService => ({
570+
compileContract: jest.fn(),
571+
});
576572

577573
/**
578574
* Create a mocked BatchTransactionService

src/core/services/alias/__tests__/unit/alias-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ describe('AliasServiceImpl', () => {
354354
null,
355355
createAliasRecord({ alias: 'alias2' }),
356356
];
357-
stateMock.list.mockReturnValue(records as AliasRecord[]);
357+
stateMock.list.mockReturnValue(records);
358358

359359
const result = aliasService.list();
360360

src/core/services/contract-verifier/__tests__/unit/contract-verifier-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('ContractVerifierServiceImpl', () => {
3939
jest.clearAllMocks();
4040

4141
// reset global.fetch before each test
42-
global.fetch = jest.fn() as unknown as typeof fetch;
42+
global.fetch = jest.fn();
4343

4444
networkServiceMock = {
4545
getCurrentNetwork: jest.fn().mockReturnValue(NETWORK),

src/core/services/kms/__tests__/unit/kms-service.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('KmsServiceImpl', () => {
333333
signHashWithEcdsaKey: jest.fn(),
334334
};
335335
getLocalKeyManager(KeyManager.local).createSigner.mockReturnValue(
336-
signerHandle as Signer,
336+
signerHandle,
337337
);
338338
const transaction = {
339339
signWith: jest.fn(
@@ -370,7 +370,7 @@ describe('KmsServiceImpl', () => {
370370
signHashWithEcdsaKey: jest.fn(),
371371
};
372372
getLocalKeyManager(KeyManager.local).createSigner.mockReturnValue(
373-
signerHandle as Signer,
373+
signerHandle,
374374
);
375375
const contractCreateFlow = {
376376
signWith: jest.fn(

src/core/services/mirrornode/__tests__/unit/hedera-mirrornode-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ describe('HederaMirrornodeServiceDefaultImpl', () => {
256256
it('should throw error when account field is missing', async () => {
257257
const { service } = setupService();
258258
const mockResponse = createMockAccountAPIResponse({
259-
account: '' as never,
259+
account: '',
260260
});
261261
(global.fetch as jest.Mock).mockResolvedValue({
262262
ok: true,

src/core/services/plugin-management/plugin-management-service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ export class PluginManagementServiceImpl implements PluginManagementService {
139139
getInitializedDefaults(): string[] {
140140
const value = this.state.get<string[]>(
141141
PLUGIN_MANAGEMENT_NAMESPACE,
142-
PLUGIN_INITIALIZED_DEFAULTS_KEY as string,
142+
PLUGIN_INITIALIZED_DEFAULTS_KEY,
143143
);
144144
return Array.isArray(value) ? value : [];
145145
}
146146

147147
setInitializedDefaults(names: string[]): void {
148148
this.state.set<string[]>(
149149
PLUGIN_MANAGEMENT_NAMESPACE,
150-
PLUGIN_INITIALIZED_DEFAULTS_KEY as string,
150+
PLUGIN_INITIALIZED_DEFAULTS_KEY,
151151
names,
152152
);
153153
}
@@ -159,7 +159,7 @@ export class PluginManagementServiceImpl implements PluginManagementService {
159159
}
160160
this.state.set<string[]>(
161161
PLUGIN_MANAGEMENT_NAMESPACE,
162-
PLUGIN_INITIALIZED_DEFAULTS_KEY as string,
162+
PLUGIN_INITIALIZED_DEFAULTS_KEY,
163163
[...current, name],
164164
);
165165
}

src/plugins/account/__tests__/unit/create.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import type { CoreApi } from '@/core/core-api/core-api.interface';
2-
import type { KeyResolverService } from '@/core/services/key-resolver/key-resolver-service.interface';
32
import type { HederaMirrornodeService } from '@/core/services/mirrornode/hedera-mirrornode-service.interface';
4-
import type { TransactionResult } from '@/core/types/shared.types';
53

64
import '@/core/utils/json-serialize';
75

@@ -51,7 +49,7 @@ describe('account plugin - create command (ADR-003)', () => {
5149
success: true,
5250
accountId: '0.0.9999',
5351
receipt: { status: { status: 'success' } },
54-
} as Partial<TransactionResult>),
52+
}),
5553
});
5654

5755
const api: Partial<CoreApi> = {
@@ -134,7 +132,7 @@ describe('account plugin - create command (ADR-003)', () => {
134132
transactionId: '0.0.1234@1234567890.000000000',
135133
success: false,
136134
receipt: { status: { status: 'failed' } },
137-
} as Partial<TransactionResult>),
135+
}),
138136
});
139137

140138
const api: Partial<CoreApi> = {
@@ -205,7 +203,7 @@ describe('account plugin - create command (ADR-003)', () => {
205203
success: true,
206204
accountId: '0.0.8888',
207205
receipt: { status: { status: 'success' } },
208-
} as Partial<TransactionResult>),
206+
}),
209207
});
210208

211209
const api: Partial<CoreApi> = {
@@ -296,7 +294,7 @@ describe('account plugin - create command (ADR-003)', () => {
296294
kms,
297295
alias,
298296
mirror: mirror as HederaMirrornodeService,
299-
keyResolver: keyResolver as KeyResolverService,
297+
keyResolver: keyResolver,
300298
logger,
301299
};
302300

@@ -373,7 +371,7 @@ describe('account plugin - create command (ADR-003)', () => {
373371
kms,
374372
alias,
375373
mirror: mirror as HederaMirrornodeService,
376-
keyResolver: keyResolver as KeyResolverService,
374+
keyResolver: keyResolver,
377375
logger,
378376
};
379377

@@ -422,7 +420,7 @@ describe('account plugin - create command (ADR-003)', () => {
422420
kms,
423421
alias,
424422
mirror: mirror as HederaMirrornodeService,
425-
keyResolver: keyResolver as KeyResolverService,
423+
keyResolver: keyResolver,
426424
logger,
427425
};
428426

@@ -454,7 +452,7 @@ describe('account plugin - create command (ADR-003)', () => {
454452
success: true,
455453
accountId: '0.0.7777',
456454
receipt: { status: { status: 'success' } },
457-
} as Partial<TransactionResult>),
455+
}),
458456
});
459457

460458
const api: Partial<CoreApi> = {

src/plugins/account/__tests__/unit/delete.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ describe('account plugin - delete command (ADR-003)', () => {
410410
logger,
411411
alias,
412412
network: networkMock,
413-
kms: kms as unknown as KmsService,
413+
kms: kms,
414414
account: accountSvc,
415415
txSign,
416416
txExecute,
@@ -464,7 +464,7 @@ describe('account plugin - delete command (ADR-003)', () => {
464464
executeImpl: jest.fn().mockResolvedValue({
465465
...mockTransactionResults.failure,
466466
consensusTimestamp: '2024-01-01T00:00:00.000Z',
467-
} as TransactionResult),
467+
}),
468468
});
469469

470470
MockedHelper.mockImplementation(() => ({
@@ -480,7 +480,7 @@ describe('account plugin - delete command (ADR-003)', () => {
480480
logger,
481481
alias,
482482
network: networkMock,
483-
kms: kms as unknown as KmsService,
483+
kms: kms,
484484
account: accountSvc,
485485
txSign,
486486
txExecute,

0 commit comments

Comments
 (0)