Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@generationsoftware/hyperstructure-react-hooks

Package Overview
Dependencies
Maintainers
0
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@generationsoftware/hyperstructure-react-hooks

React hooks library for interacting with PoolTogether contracts

  • 1.21.0
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-95.61%
Maintainers
0
Weekly downloads
 
Created
Source

PoolTogether Brand


💻   PoolTogether Hyperstucture React Hooks Library

ts viem react npm license

Client Monorepo | Documentation | Prize Pool Contract | Vault Contract

🏆   Overview

A library of shared React hooks specific to Hyperstructure functionality, using WAGMI.

Many hooks utilize react-query in order to prevent unecessary refetching. A refetch function is returned in order to manually refetch if necessary, or alternatively a refetchInterval may be passed initially in order to automatically refetch every N milliseconds.

💾   Installation

This library is available as an NPM package:

npm install @generationsoftware/hyperstructure-react-hooks

or

pnpm install @generationsoftware/hyperstructure-react-hooks

or

yarn add @generationsoftware/hyperstructure-react-hooks

🐱‍👤   Available Hooks

App Hooks

  • useCachedVaultLists
  • useLastCheckedPrizesTimestamps
  • useSelectedVaultListIds
  • useSelectedVaultLists
  • useSelectedVaults
  • useSelectedVault
  • useVaultList

Blockchain Hooks

  • useBlock
  • useBlockAtTimestamp
  • useBlocks
  • useBlocksAtTimestamps
  • useClientChainId
  • useClientChainIds
  • useClients
  • useGasAmountEstimate
  • useGasCostEstimates
  • useGasPrice
  • useTxReceipt
  • useTxReceipts

Event Hooks

  • useDepositEvents
  • useDrawAwardedEvents
  • useDrawFinishedEvents
  • useDrawStartedEvents
  • useLiquidationEvents
  • useManualContributionEvents
  • usePrizeBackstopEvents
  • usePromotionCreatedEvents
  • usePromotionRewardsClaimedEvents
  • useTransferEvents
  • useVaultContributionEvents
  • useWithdrawEvents

Prize Pool Hooks

  • useAllDrawIds
  • useAllDrawPeriods
  • useAllFirstDrawOpenedAt
  • useAllGrandPrizePeriodDraws
  • useAllLastAwardedDrawIds
  • useAllPrizeDrawWinners
  • useAllPrizeInfo
  • useAllPrizeTokenData
  • useAllPrizeTokenPrices
  • useAllPrizeValue
  • useAllUserBalanceUpdates
  • useAllUserEligibleDraws
  • useAllUserPrizeOdds
  • useAllUserPrizePoolWins
  • useDrawAuctionDuration
  • useDrawIds
  • useDrawPeriod
  • useDrawsToCheckForPrizes
  • useEstimatedPrizeCount
  • useFirstDrawOpenedAt
  • useGrandPrize
  • useGrandPrizePeriodDraws
  • useLargestGrandPrize
  • useLastAwardedDrawId
  • useLastAwardedDrawTimestamps
  • usePrizeDrawWinners
  • usePrizeOdds
  • usePrizePools
  • usePrizeTokenData
  • usePrizeTokenPrice
  • useWalletAddresses

Signature Hooks

  • useApproveSignature
  • useGenericApproveSignature

Token Hooks

  • useHistoricalTokenPrices
  • useTokenAllowances
  • useTokenBalances
  • useTokenNonces
  • useTokenPermitSupport
  • useTokenPrices
  • useTokenPricesAcrossChains
  • useTokens
  • useTokenVersion

Transaction Hooks

  • useSendApproveTransaction
  • useSendClaimRewardsTransaction
  • useSendClaimVaultFeesTransaction
  • useSendCreatePromotionTransaction
  • useSendDeployLiquidationPairTransaction
  • useSendDeployVaultTransaction
  • useSendDepositTransaction
  • useSendDepositWithPermitTransaction
  • useSendGenericApproveTransaction
  • useSendRedeemTransaction
  • useSendSetClaimerTransaction
  • useSendSetLiquidationPairTransaction
  • useSendWithdrawTransaction

Vault Hooks

  • useAllUserClaimableRewards
  • useAllUserVaultBalances
  • useAllUserVaultDelegates
  • useAllUserVaultDelegationBalances
  • useAllVaultBalances
  • useAllVaultContributionAmounts
  • useAllVaultExchangeRates
  • useAllVaultHistoricalSharePrices
  • useAllVaultHistoricalTokenPrices
  • useAllVaultPercentageContributions
  • useAllVaultPrizeYields
  • useAllVaultPromotions
  • useAllVaultPromotionsApr
  • useAllVaultShareData
  • useAllVaultSharePrices
  • useAllVaultTokenAddresses
  • useAllVaultTokenData
  • useAllVaultTokenPrices
  • useAllVaultTotalSupplyTwabs
  • useSortedVaults
  • useUserClaimableRewards
  • useUserVaultDelegate
  • useUserVaultDelegationBalance
  • useUserVaultShareBalance
  • useUserVaultTokenBalance
  • useVault
  • useVaultBalance
  • useVaultClaimer
  • useVaultContributionAmount
  • useVaultExchangeRate
  • useVaultFeeInfo
  • useVaultFeesAvailable
  • useVaultLiquidationPair
  • useVaultOwner
  • useVaultPercentageContribution
  • useVaultPrizeYield
  • useVaultPromotions
  • useVaultPromotionsApr
  • useVaults
  • useVaultShareData
  • useVaultSharePrice
  • useVaultTokenAddress
  • useVaultTokenData
  • useVaultTokenPrice
  • useVaultTotalSupplyTwab
  • useVaultYieldSource

Zap Hooks

  • useBeefyVault
  • useCurveAddLiquidityOutput
  • useIsCurveLp
  • useIsVelodromeLp
  • useLpToken
  • useSendDepositZapTransaction
  • useSendWithdrawZapTransaction
  • useSwapTx
  • useZapArgs
  • useZapTokenInfo

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc