Skip to content

HashkeyHSK/hashkey-hodlium

Repository files navigation

📊 Test Report

Test Summary

Test Suite Cases Passing Coverage
01_InitAndBasic 4 ✅ 4/4 100%
02_LockedStaking 4 ✅ 4/4 100%
03_Rewards 2 ✅ 2/2 100%
04_Admin 3 ✅ 3/3 100%
05_Emergency 2 ✅ 2/2 100%
06_BasicStaking 3 ✅ 3/3 100%
07_SecurityPenetration 9 ✅ 9/9 100%
TOTAL 27 27/27 100%

Code Coverage

Contract Statements Functions Branches Lines
HashKeyChainStaking 100% 100% 100% 100%
HashKeyChainStakingBase 100% 100% 100% 100%
HashKeyChainStakingAdmin 100% 100% 100% 100%
HashKeyChainStakingOperations 100% 100% 92.86% 100%
HashKeyChainStakingEmergency 100% 100% 100% 100%
StHSK 100% 100% 87.5% 100%
All contracts 100% 100% 95.12% 100%

Test Execution Time

  • Total execution time: 2.74s
  • Average: 101.48ms per test

Key Test Highlights

  • Security Tests: Successfully detected and prevented all simulated attacks
  • Edge Cases: All boundary conditions tested including overflow/underflow scenarios
  • Gas Optimization: All operations stay well below block gas limits
  • Reward Accuracy: Reward calculations match expected values with 0.01% tolerance

Security Penetration Test Results

Attack Vector Result Details
Reentrancy ✅ PASS No successful reentrant calls detected
Access Control ✅ PASS All unauthorized access attempts blocked
Denial of Service ✅ PASS Operations efficient, resistant to gas limit attacks
Integer Overflow ✅ PASS Solidity 0.8+ safeguards effective
Front-running ✅ PASS Exchange rate variations within acceptable range
Flash Loan ✅ PASS No significant exchange rate manipulation possible
Time Manipulation ✅ PASS Lock periods correctly enforced

Contract Addresses

The smart contracts for this project are available on GitHub at SpectreMercury/hashkey-hodlium-contract. The deployed contracts can be found at the following addresses:

Contract Address
HashKeyChainStaking 0xC027985cda8DD019d80c74E06EFE44158D1305ac
StHSK Token 0x0068418bAE51127Fc3e0331274De5CB9CaD337E7

These contracts have undergone comprehensive security testing and have achieved 100% test coverage across all critical functions, as detailed in the test report below.

About

hashkey hodlium staking ui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages