Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@generationsoftware/hyperstructure-react-hooks
Advanced tools
React hooks library for interacting with PoolTogether contracts
Client Monorepo | Documentation | Prize Pool Contract | Vault Contract
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.
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
useCachedVaultLists
useLastCheckedPrizesTimestamps
useSelectedVaultListIds
useSelectedVaultLists
useSelectedVaults
useSelectedVault
useVaultList
useBlock
useBlockAtTimestamp
useBlocks
useBlocksAtTimestamps
useClientChainId
useClientChainIds
useClients
useGasAmountEstimate
useGasCostEstimates
useGasPrice
useTxReceipt
useTxReceipts
useDepositEvents
useDrawAwardedEvents
useDrawFinishedEvents
useDrawStartedEvents
useLiquidationEvents
useManualContributionEvents
usePrizeBackstopEvents
usePromotionCreatedEvents
usePromotionRewardsClaimedEvents
useTransferEvents
useVaultContributionEvents
useWithdrawEvents
useAllDrawIds
useAllDrawPeriods
useAllFirstDrawOpenedAt
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
useApproveSignature
useGenericApproveSignature
useHistoricalTokenPrices
useTokenAllowances
useTokenBalances
useTokenNonces
useTokenPermitSupport
useTokenPrices
useTokenPricesAcrossChains
useTokens
useTokenVersion
useSendApproveTransaction
useSendClaimRewardsTransaction
useSendClaimVaultFeesTransaction
useSendCreatePromotionTransaction
useSendDeployLiquidationPairTransaction
useSendDeployVaultTransaction
useSendDepositTransaction
useSendDepositWithPermitTransaction
useSendGenericApproveTransaction
useSendRedeemTransaction
useSendSetClaimerTransaction
useSendSetLiquidationPairTransaction
useSendWithdrawTransaction
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
FAQs
React hooks library for interacting with PoolTogether contracts
The npm package @generationsoftware/hyperstructure-react-hooks receives a total of 2 weekly downloads. As such, @generationsoftware/hyperstructure-react-hooks popularity was classified as not popular.
We found that @generationsoftware/hyperstructure-react-hooks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.