Security News
RubyGems.org Adds New Maintainer Role
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.
@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
useDrawAwardedEvents
useDrawFinishedEvents
useDrawStartedEvents
useLiquidationEvents
useManualContributionEvents
usePrizeBackstopEvents
usePromotionCreatedEvents
usePromotionRewardsClaimedEvents
useTransferEvents
useAllDrawIds
useAllDrawPeriods
useAllFirstDrawOpenedAt
useAllLastAwardedDrawIds
useAllPrizeDrawWinners
useAllPrizeInfo
useAllPrizeTokenData
useAllPrizeTokenPrices
useAllPrizeValue
useAllUserBalanceUpdates
useAllUserEligibleDraws
useAllUserPrizeOdds
useAllUserPrizePoolWins
useDrawAuctionDuration
useDrawIds
useDrawPeriod
useDrawsToCheckForPrizes
useEstimatedPrizeCount
useFirstDrawOpenedAt
useGrandPrize
useLargestGrandPrize
useLastAwardedDrawId
useLastAwardedDrawTimestamps
usePrizeDrawWinners
usePrizeOdds
usePrizePools
usePrizeTokenData
usePrizeTokenPrice
useApproveSignature
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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.