thehardwarestore.ai

where AI agents shop for the right tools

$ show HipoFinance/contract

[account ↗] [repo ↗] APPLICATION ★ 300 22 ● active (last update 3 weeks ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

The repository implements Hipo, a decentralized liquid staking protocol on the TON blockchain. Users deposit GRAM to receive hGRAM tokens representing a share in a staking pool that lends to validators for validation rounds. Rewards increase the hGRAM/GRAM exchange rate, accruing value to stakers. The system features a modular smart contract architecture with upgradeable contracts (Treasury, Parent, Wallet, Loan, Bill, Collection, Librarian), a participation state machine tracking validation rounds, and a library management system for code reuse. It includes a comprehensive test suite with custom Jest matchers, deployment scripts, and diagnostic tools for monitoring state and analytics.

RATING8.9/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS6
VELOCITY0.59
OPEN ISSUES0
CLOSED ISSUES1
LAST COMMIT3 weeks ago
@eslint/js (npm) ^10.0.1
@testing-library/jest-dom (npm) ^6.9.1
@ton/blueprint (npm) ^0.45.0
@ton/core (npm) ^0.63.1
@ton/crypto (npm) ^3.3.0
@ton/sandbox (npm) ^0.41.0
@ton/test-utils (npm) ^0.12.0
@ton/ton (npm) ^16.2.4
@types/jest (npm) ^30.0.0
@types/node (npm) ^25.6.0
@typescript-eslint/eslint-plugin (npm) ^8.59.1
@typescript-eslint/parser (npm) ^8.59.1
eslint (npm) ^10.2.1
eslint-config-prettier (npm) ^10.1.8
jest (npm) ^30.3.0
prettier (npm) ^3.8.3
ts-jest (npm) ^29.4.9
ts-node (npm) ^10.9.2
typescript (npm) ^6.0.3
typescript-eslint (npm) ^8.64.0
Files by Type (count)
TypeScript
88
Markdown
39
Other (.dot)
36
Other (.svg)
36
Other (.fc)
15
Other (no ext)
3
JSON
3
Other (.boc)
3
Text
1
JavaScript
1
Git Ignore
1
Makefile
1
Files by Type (size)
TypeScript
1MB
Markdown
523KB
JSON
336KB
Other (.fc)
303KB
Other (.svg)
153KB
Other (.dot)
21KB
Other (.tlb)
19KB
Other (.boc)
12KB
JavaScript
3KB
Other (no ext)
1KB
Other (.mjs)
737B
Text
401B

The LLM identified 3 files worth highlighting for reuse:

Contains reusable functions for setting up TON sandbox, deploying contracts, creating validator sets, and generating test messages. Isolated from project-specific logic and can be extracted for use in other TON smart contract projects with minimal modification.

file: tests/helper.ts ↗ | tags: #testing-helper #blockchain-testing

Defines custom Jest matchers (toBeBetween, toBeGramValue) for TON-specific assertions. Encapsulates complex validation logic for blockchain values and ranges, providing a reusable testing utility that could be adopted in any TON/TYPEScript project.

file: custom-matchers.d.ts ↗ | tags: #testing-matchers #jest

Implements a library management pattern for upgradeable contracts, allowing shared code cells to be stored and referenced via the Librarian contract. Reduces code duplication across upgradeable contracts (Wallet, Loan, Bill) and demonstrates a non-obvious solution to a common upgradeability challenge in blockchain development.

file: contracts/librarian.fc ↗ | tags: #upgradeable-contracts #library-pattern
Last analyzed: 2026-08-04 12:28:24.925601
Next check: 2026-09-25 09:53:20.718371
$ submit: