@stakekit/api-hooks
Advanced tools
Comparing version 0.0.84 to 0.0.85
@@ -62,2 +62,24 @@ export { ActionListSort, ActionListType, ActionStatus, ActionTypes, BalanceTypes, DailyCumulativeStakeDtoStatus, DailyCumulativeStakeDtoType, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, FeeConfigurationStatus, GasMode, GeolocationErrorTagsItem, GeolocationErrorType, HealthStatus, KeyCategory, MasterBannedRegionDtoTagsItem, MasterBannedYieldDtoTagsItem, Networks, RewardClaiming, RewardSchedule, RewardTypes, Role, TeamCategory, TransactionStatus, TransactionType, TronResourceType, ValidatorStatusTypes, WebhookSubscriptionEventDtoEvent, YieldGetMyYieldsSortBy, YieldGetMyYieldsType, YieldProviders, YieldType, YieldYieldsRevenueOption, YieldYieldsSortBy, YieldYieldsType } from './chunk-W4RJLA5I.js'; | ||
// src/api/index.ts | ||
var useHealthHealthV2Hook = () => { | ||
const healthHealthV2 = useApi(); | ||
return (signal) => { | ||
return healthHealthV2({ url: `/v2/health`, method: "GET", signal }); | ||
}; | ||
}; | ||
var getHealthHealthV2QueryKey = () => { | ||
return [`/v2/health`]; | ||
}; | ||
var useHealthHealthV2QueryOptions = (options) => { | ||
const { query: queryOptions } = options ?? {}; | ||
const queryKey = queryOptions?.queryKey ?? getHealthHealthV2QueryKey(); | ||
const healthHealthV2 = useHealthHealthV2Hook(); | ||
const queryFn = ({ signal }) => healthHealthV2(signal); | ||
return { queryKey, queryFn, ...queryOptions }; | ||
}; | ||
var useHealthHealthV2 = (options) => { | ||
const queryOptions = useHealthHealthV2QueryOptions(options); | ||
const query = useQuery(queryOptions); | ||
query.queryKey = queryOptions.queryKey; | ||
return query; | ||
}; | ||
var useActionGetActionHook = () => { | ||
@@ -991,4 +1013,4 @@ const actionGetAction = useApi(); | ||
export { ApiClientProvider, getActionEnterGasEstimationQueryKey, getActionExitGasEstimateQueryKey, getActionGetActionQueryKey, getActionGetGasEstimateQueryKey, getActionListQueryKey, getActionPendingGasEstimateQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTokenGetTokensQueryKey, getTokenTokenBalancesScanQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusByNetworkAndHashQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, getYieldFindValidatorsQueryKey, getYieldGetFeeConfigurationQueryKey, getYieldGetMultipleYieldBalancesQueryKey, getYieldGetMyNetworksQueryKey, getYieldGetMyYieldsQueryKey, getYieldGetSingleYieldBalancesQueryKey, getYieldGetValidatorsQueryKey, getYieldYieldBalancesScanQueryKey, getYieldYieldOpportunityQueryKey, getYieldYieldsQueryKey, useActionEnter, useActionEnterGasEstimation, useActionEnterGasEstimationHook, useActionEnterGasEstimationQueryOptions, useActionEnterHook, useActionEnterMutationOptions, useActionExit, useActionExitGasEstimate, useActionExitGasEstimateHook, useActionExitGasEstimateQueryOptions, useActionExitHook, useActionExitMutationOptions, useActionGetAction, useActionGetActionHook, useActionGetActionQueryOptions, useActionGetGasEstimate, useActionGetGasEstimateHook, useActionGetGasEstimateQueryOptions, useActionList, useActionListHook, useActionListQueryOptions, useActionPending, useActionPendingGasEstimate, useActionPendingGasEstimateHook, useActionPendingGasEstimateQueryOptions, useActionPendingHook, useActionPendingMutationOptions, useTokenGetTokenBalances, useTokenGetTokenBalancesHook, useTokenGetTokenBalancesQueryOptions, useTokenGetTokenPrices, useTokenGetTokenPricesHook, useTokenGetTokenPricesQueryOptions, useTokenGetTokens, useTokenGetTokensHook, useTokenGetTokensQueryOptions, useTokenTokenBalancesScan, useTokenTokenBalancesScanHook, useTokenTokenBalancesScanQueryOptions, useTransactionConstruct, useTransactionConstructHook, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkHook, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionHook, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusByNetworkAndHash, useTransactionGetTransactionStatusByNetworkAndHashHook, useTransactionGetTransactionStatusByNetworkAndHashQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdHook, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionGetTransactionVerificationMessageForNetwork, useTransactionGetTransactionVerificationMessageForNetworkHook, useTransactionGetTransactionVerificationMessageForNetworkMutationOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashHook, useTransactionSubmitHashMutationOptions, useTransactionSubmitHook, useTransactionSubmitMutationOptions, useYieldFindValidators, useYieldFindValidatorsHook, useYieldFindValidatorsQueryOptions, useYieldGetFeeConfiguration, useYieldGetFeeConfigurationHook, useYieldGetFeeConfigurationQueryOptions, useYieldGetMultipleYieldBalances, useYieldGetMultipleYieldBalancesHook, useYieldGetMultipleYieldBalancesQueryOptions, useYieldGetMyNetworks, useYieldGetMyNetworksHook, useYieldGetMyNetworksQueryOptions, useYieldGetMyYields, useYieldGetMyYieldsHook, useYieldGetMyYieldsQueryOptions, useYieldGetSingleYieldBalances, useYieldGetSingleYieldBalancesHook, useYieldGetSingleYieldBalancesQueryOptions, useYieldGetValidators, useYieldGetValidatorsHook, useYieldGetValidatorsQueryOptions, useYieldYieldBalancesScan, useYieldYieldBalancesScanHook, useYieldYieldBalancesScanQueryOptions, useYieldYieldOpportunity, useYieldYieldOpportunityHook, useYieldYieldOpportunityQueryOptions, useYieldYields, useYieldYieldsHook, useYieldYieldsQueryOptions }; | ||
export { ApiClientProvider, getActionEnterGasEstimationQueryKey, getActionExitGasEstimateQueryKey, getActionGetActionQueryKey, getActionGetGasEstimateQueryKey, getActionListQueryKey, getActionPendingGasEstimateQueryKey, getHealthHealthV2QueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTokenGetTokensQueryKey, getTokenTokenBalancesScanQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusByNetworkAndHashQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, getYieldFindValidatorsQueryKey, getYieldGetFeeConfigurationQueryKey, getYieldGetMultipleYieldBalancesQueryKey, getYieldGetMyNetworksQueryKey, getYieldGetMyYieldsQueryKey, getYieldGetSingleYieldBalancesQueryKey, getYieldGetValidatorsQueryKey, getYieldYieldBalancesScanQueryKey, getYieldYieldOpportunityQueryKey, getYieldYieldsQueryKey, useActionEnter, useActionEnterGasEstimation, useActionEnterGasEstimationHook, useActionEnterGasEstimationQueryOptions, useActionEnterHook, useActionEnterMutationOptions, useActionExit, useActionExitGasEstimate, useActionExitGasEstimateHook, useActionExitGasEstimateQueryOptions, useActionExitHook, useActionExitMutationOptions, useActionGetAction, useActionGetActionHook, useActionGetActionQueryOptions, useActionGetGasEstimate, useActionGetGasEstimateHook, useActionGetGasEstimateQueryOptions, useActionList, useActionListHook, useActionListQueryOptions, useActionPending, useActionPendingGasEstimate, useActionPendingGasEstimateHook, useActionPendingGasEstimateQueryOptions, useActionPendingHook, useActionPendingMutationOptions, useHealthHealthV2, useHealthHealthV2Hook, useHealthHealthV2QueryOptions, useTokenGetTokenBalances, useTokenGetTokenBalancesHook, useTokenGetTokenBalancesQueryOptions, useTokenGetTokenPrices, useTokenGetTokenPricesHook, useTokenGetTokenPricesQueryOptions, useTokenGetTokens, useTokenGetTokensHook, useTokenGetTokensQueryOptions, useTokenTokenBalancesScan, useTokenTokenBalancesScanHook, useTokenTokenBalancesScanQueryOptions, useTransactionConstruct, useTransactionConstructHook, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkHook, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionHook, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusByNetworkAndHash, useTransactionGetTransactionStatusByNetworkAndHashHook, useTransactionGetTransactionStatusByNetworkAndHashQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdHook, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionGetTransactionVerificationMessageForNetwork, useTransactionGetTransactionVerificationMessageForNetworkHook, useTransactionGetTransactionVerificationMessageForNetworkMutationOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashHook, useTransactionSubmitHashMutationOptions, useTransactionSubmitHook, useTransactionSubmitMutationOptions, useYieldFindValidators, useYieldFindValidatorsHook, useYieldFindValidatorsQueryOptions, useYieldGetFeeConfiguration, useYieldGetFeeConfigurationHook, useYieldGetFeeConfigurationQueryOptions, useYieldGetMultipleYieldBalances, useYieldGetMultipleYieldBalancesHook, useYieldGetMultipleYieldBalancesQueryOptions, useYieldGetMyNetworks, useYieldGetMyNetworksHook, useYieldGetMyNetworksQueryOptions, useYieldGetMyYields, useYieldGetMyYieldsHook, useYieldGetMyYieldsQueryOptions, useYieldGetSingleYieldBalances, useYieldGetSingleYieldBalancesHook, useYieldGetSingleYieldBalancesQueryOptions, useYieldGetValidators, useYieldGetValidatorsHook, useYieldGetValidatorsQueryOptions, useYieldYieldBalancesScan, useYieldYieldBalancesScanHook, useYieldYieldBalancesScanQueryOptions, useYieldYieldOpportunity, useYieldYieldOpportunityHook, useYieldYieldOpportunityQueryOptions, useYieldYields, useYieldYieldsHook, useYieldYieldsQueryOptions }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
import * as msw from 'msw'; | ||
import { e as ActionDto, G as GasEstimateDto, f as ActionList200, b as TransactionDto, S as SubmitResponseDto, h as TransactionStatusResponseDto, i as GasForNetworkResponseDto, j as TransactionVerificationMessageDto, k as TokenWithAvailableYieldsDto, P as PriceResponseDto, B as BalanceResponseDto, l as TokenBalanceScanResponseDto, m as YieldYields200, o as YieldBalancesWithIntegrationIdDto, p as YieldGetMyYields200, V as ValidatorSearchResultDto, r as YieldDto, s as ValidatorDto, Y as YieldBalanceDto, F as FeeConfigurationDto } from '../yieldYields200-vuZAGyWQ.js'; | ||
import { H as HealthStatusDto, e as ActionDto, G as GasEstimateDto, f as ActionList200, b as TransactionDto, S as SubmitResponseDto, h as TransactionStatusResponseDto, i as GasForNetworkResponseDto, j as TransactionVerificationMessageDto, k as TokenWithAvailableYieldsDto, P as PriceResponseDto, B as BalanceResponseDto, l as TokenBalanceScanResponseDto, m as YieldYields200, o as YieldBalancesWithIntegrationIdDto, p as YieldGetMyYields200, V as ValidatorSearchResultDto, r as YieldDto, s as ValidatorDto, Y as YieldBalanceDto, F as FeeConfigurationDto } from '../yieldYields200-_xnIfCHG.js'; | ||
declare const getHealthControllerHealthV2ResponseMock: (overrideResponse?: any) => HealthStatusDto; | ||
declare const getActionControllerGetActionResponseMock: (overrideResponse?: any) => ActionDto; | ||
@@ -33,2 +34,3 @@ declare const getActionControllerGetGasEstimateResponseMock: (overrideResponse?: any) => GasEstimateDto; | ||
declare const getYieldControllerGetFeeConfigurationResponseMock: (overrideResponse?: any) => FeeConfigurationDto; | ||
declare const getHealthControllerHealthV2MockHandler: (overrideResponse?: HealthStatusDto) => msw.HttpHandler; | ||
declare const getActionControllerGetActionMockHandler: (overrideResponse?: ActionDto) => msw.HttpHandler; | ||
@@ -67,2 +69,2 @@ declare const getActionControllerGetGasEstimateMockHandler: (overrideResponse?: GasEstimateDto) => msw.HttpHandler; | ||
export { getActionControllerEnterGasEstimationMockHandler, getActionControllerEnterGasEstimationResponseMock, getActionControllerEnterMockHandler, getActionControllerEnterResponseMock, getActionControllerExitGasEstimateMockHandler, getActionControllerExitGasEstimateResponseMock, getActionControllerExitMockHandler, getActionControllerExitResponseMock, getActionControllerGetActionMockHandler, getActionControllerGetActionResponseMock, getActionControllerGetGasEstimateMockHandler, getActionControllerGetGasEstimateResponseMock, getActionControllerListMockHandler, getActionControllerListResponseMock, getActionControllerPendingGasEstimateMockHandler, getActionControllerPendingGasEstimateResponseMock, getActionControllerPendingMockHandler, getActionControllerPendingResponseMock, getStakeKitMock, getTokenControllerGetTokenBalancesMockHandler, getTokenControllerGetTokenBalancesResponseMock, getTokenControllerGetTokenPricesMockHandler, getTokenControllerGetTokenPricesResponseMock, getTokenControllerGetTokensMockHandler, getTokenControllerGetTokensResponseMock, getTokenControllerTokenBalancesScanMockHandler, getTokenControllerTokenBalancesScanResponseMock, getTransactionControllerConstructMockHandler, getTransactionControllerConstructResponseMock, getTransactionControllerGetGasForNetworkMockHandler, getTransactionControllerGetGasForNetworkResponseMock, getTransactionControllerGetTransactionMockHandler, getTransactionControllerGetTransactionResponseMock, getTransactionControllerGetTransactionStatusByNetworkAndHashMockHandler, getTransactionControllerGetTransactionStatusByNetworkAndHashResponseMock, getTransactionControllerGetTransactionStatusFromIdMockHandler, getTransactionControllerGetTransactionStatusFromIdResponseMock, getTransactionControllerGetTransactionVerificationMessageForNetworkMockHandler, getTransactionControllerGetTransactionVerificationMessageForNetworkResponseMock, getTransactionControllerSubmitHashMockHandler, getTransactionControllerSubmitMockHandler, getTransactionControllerSubmitResponseMock, getYieldControllerFindValidatorsMockHandler, getYieldControllerFindValidatorsResponseMock, getYieldControllerGetFeeConfigurationMockHandler, getYieldControllerGetFeeConfigurationResponseMock, getYieldControllerGetMultipleYieldBalancesMockHandler, getYieldControllerGetMultipleYieldBalancesResponseMock, getYieldControllerGetMyNetworksMockHandler, getYieldControllerGetMyYieldsMockHandler, getYieldControllerGetMyYieldsResponseMock, getYieldControllerGetSingleYieldBalancesMockHandler, getYieldControllerGetSingleYieldBalancesResponseMock, getYieldControllerGetValidatorsMockHandler, getYieldControllerGetValidatorsResponseMock, getYieldControllerYieldBalancesScanMockHandler, getYieldControllerYieldBalancesScanResponseMock, getYieldControllerYieldOpportunityMockHandler, getYieldControllerYieldOpportunityResponseMock, getYieldControllerYieldsMockHandler, getYieldControllerYieldsResponseMock }; | ||
export { getActionControllerEnterGasEstimationMockHandler, getActionControllerEnterGasEstimationResponseMock, getActionControllerEnterMockHandler, getActionControllerEnterResponseMock, getActionControllerExitGasEstimateMockHandler, getActionControllerExitGasEstimateResponseMock, getActionControllerExitMockHandler, getActionControllerExitResponseMock, getActionControllerGetActionMockHandler, getActionControllerGetActionResponseMock, getActionControllerGetGasEstimateMockHandler, getActionControllerGetGasEstimateResponseMock, getActionControllerListMockHandler, getActionControllerListResponseMock, getActionControllerPendingGasEstimateMockHandler, getActionControllerPendingGasEstimateResponseMock, getActionControllerPendingMockHandler, getActionControllerPendingResponseMock, getHealthControllerHealthV2MockHandler, getHealthControllerHealthV2ResponseMock, getStakeKitMock, getTokenControllerGetTokenBalancesMockHandler, getTokenControllerGetTokenBalancesResponseMock, getTokenControllerGetTokenPricesMockHandler, getTokenControllerGetTokenPricesResponseMock, getTokenControllerGetTokensMockHandler, getTokenControllerGetTokensResponseMock, getTokenControllerTokenBalancesScanMockHandler, getTokenControllerTokenBalancesScanResponseMock, getTransactionControllerConstructMockHandler, getTransactionControllerConstructResponseMock, getTransactionControllerGetGasForNetworkMockHandler, getTransactionControllerGetGasForNetworkResponseMock, getTransactionControllerGetTransactionMockHandler, getTransactionControllerGetTransactionResponseMock, getTransactionControllerGetTransactionStatusByNetworkAndHashMockHandler, getTransactionControllerGetTransactionStatusByNetworkAndHashResponseMock, getTransactionControllerGetTransactionStatusFromIdMockHandler, getTransactionControllerGetTransactionStatusFromIdResponseMock, getTransactionControllerGetTransactionVerificationMessageForNetworkMockHandler, getTransactionControllerGetTransactionVerificationMessageForNetworkResponseMock, getTransactionControllerSubmitHashMockHandler, getTransactionControllerSubmitMockHandler, getTransactionControllerSubmitResponseMock, getYieldControllerFindValidatorsMockHandler, getYieldControllerFindValidatorsResponseMock, getYieldControllerGetFeeConfigurationMockHandler, getYieldControllerGetFeeConfigurationResponseMock, getYieldControllerGetMultipleYieldBalancesMockHandler, getYieldControllerGetMultipleYieldBalancesResponseMock, getYieldControllerGetMyNetworksMockHandler, getYieldControllerGetMyYieldsMockHandler, getYieldControllerGetMyYieldsResponseMock, getYieldControllerGetSingleYieldBalancesMockHandler, getYieldControllerGetSingleYieldBalancesResponseMock, getYieldControllerGetValidatorsMockHandler, getYieldControllerGetValidatorsResponseMock, getYieldControllerYieldBalancesScanMockHandler, getYieldControllerYieldBalancesScanResponseMock, getYieldControllerYieldOpportunityMockHandler, getYieldControllerYieldOpportunityResponseMock, getYieldControllerYieldsMockHandler, getYieldControllerYieldsResponseMock }; |
{ | ||
"name": "@stakekit/api-hooks", | ||
"description": "React hooks for StakeKit API", | ||
"version": "0.0.84", | ||
"version": "0.0.85", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
513323
5656