@hipo-finance/sdk
v4.2.0
Published
SDK for connecting to Hipo, the hGRAM liquid staking protocol on TON (hGRAM was formerly hTON)
Readme
Hipo SDK
Hipo is a decentralized, permission-less, open-source liquid staking protocol on TON blockchain. Visit Hipo.Finance for more information or read the docs.
This SDK helps with connecting to Hipo liquid staking protocol on web clients.
The sdk-example project uses this project as a dependency and creates a simple web application to Stake or Unstake on Hipo.
Constants include protocol addresses on MainNet and TestNet, op-codes for deposit and unstake, and recommended fees for each operation.
Parent helps in finding the jetton wallet address for an address.
Wallet provides access to jetton wallet state, in particular hGRAM balance (formerly hTON).
Treasury has the functionality to parse the current state of Hipo Treasury, including the hGRAM/GRAM exchange rate fields (currentRate, previousRate), round times, fees, participations, and loan/collection/bill addresses.
Helpers create deposit/unstake messages for TonConnect, and minimumDepositAmount computes the smallest deposit that the treasury will accept at the current exchange rate.
Terminology: GRAM is the network coin (formerly Toncoin/TON) and hGRAM is Hipo's liquid staking token (formerly hTON). The network is still the TON blockchain.
