@stakekit/api-hooks
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -455,10 +455,15 @@ import { QueryClient, useQueryClient, QueryClientProvider, useQuery, useMutation } from '@tanstack/react-query'; | ||
var getTokenGetTokenPricesQueryKey = (priceRequestDto) => [`/v1/token/prices`, priceRequestDto]; | ||
var getTokenGetTokenPricesQueryOptions = (priceRequestDto, options) => { | ||
var useTokenGetTokenPricesQueryOptions = (priceRequestDto, options) => { | ||
const { query: queryOptions } = options ?? {}; | ||
const queryKey = queryOptions?.queryKey ?? getTokenGetTokenPricesQueryKey(priceRequestDto); | ||
const queryFn = () => tokenGetTokenPrices(priceRequestDto); | ||
return { queryKey, queryFn, ...queryOptions }; | ||
const customOptions = customQueryOptions({ | ||
...queryOptions, | ||
queryKey, | ||
queryFn | ||
}); | ||
return customOptions; | ||
}; | ||
var useTokenGetTokenPrices = (priceRequestDto, options) => { | ||
const queryOptions = getTokenGetTokenPricesQueryOptions( | ||
const queryOptions = useTokenGetTokenPricesQueryOptions( | ||
priceRequestDto, | ||
@@ -480,10 +485,15 @@ options | ||
var getTokenGetTokenBalancesQueryKey = (balancesRequestDto) => [`/v1/token/balances`, balancesRequestDto]; | ||
var getTokenGetTokenBalancesQueryOptions = (balancesRequestDto, options) => { | ||
var useTokenGetTokenBalancesQueryOptions = (balancesRequestDto, options) => { | ||
const { query: queryOptions } = options ?? {}; | ||
const queryKey = queryOptions?.queryKey ?? getTokenGetTokenBalancesQueryKey(balancesRequestDto); | ||
const queryFn = () => tokenGetTokenBalances(balancesRequestDto); | ||
return { queryKey, queryFn, ...queryOptions }; | ||
const customOptions = customQueryOptions({ | ||
...queryOptions, | ||
queryKey, | ||
queryFn | ||
}); | ||
return customOptions; | ||
}; | ||
var useTokenGetTokenBalances = (balancesRequestDto, options) => { | ||
const queryOptions = getTokenGetTokenBalancesQueryOptions( | ||
const queryOptions = useTokenGetTokenBalancesQueryOptions( | ||
balancesRequestDto, | ||
@@ -728,4 +738,4 @@ options | ||
export { APIManager, BalanceTypes, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, GasMode, Networks, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, Role, StakeKitContext, StakeKitQueryProvider, StakeSessionTypes, StakeStatus, TransactionStatus, TransactionType, UpdatePayoutAddressDtoNetwork, YieldProviders, YieldType, getStakeGetStakeSessionQueryKey, getStakeGetValidatorsQueryKey, getStakeYieldOpportunitiesQueryKey, getStakeYieldOpportunityQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenBalancesQueryOptions, getTokenGetTokenPricesQueryKey, getTokenGetTokenPricesQueryOptions, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, stakeEnter, stakeExit, stakeGetMultipleIntegrationBalances, stakeGetSingleIntegrationBalances, stakeGetStakeSession, stakeGetValidators, stakePendingActions, stakeYieldOpportunities, stakeYieldOpportunity, tokenGetTokenBalances, tokenGetTokenPrices, transactionConstruct, transactionGetGasForNetwork, transactionGetTransaction, transactionGetTransactionStatusFromId, transactionSubmit, transactionSubmitHash, useStakeEnter, useStakeEnterMutationOptions, useStakeExit, useStakeExitMutationOptions, useStakeGetMultipleIntegrationBalances, useStakeGetMultipleIntegrationBalancesMutationOptions, useStakeGetSingleIntegrationBalances, useStakeGetSingleIntegrationBalancesMutationOptions, useStakeGetStakeSession, useStakeGetStakeSessionQueryOptions, useStakeGetValidators, useStakeGetValidatorsQueryOptions, useStakeKitQueryClient, useStakePendingActions, useStakePendingActionsMutationOptions, useStakeYieldOpportunities, useStakeYieldOpportunitiesQueryOptions, useStakeYieldOpportunity, useStakeYieldOpportunityQueryOptions, useTokenGetTokenBalances, useTokenGetTokenPrices, useTransactionConstruct, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashMutationOptions, useTransactionSubmitMutationOptions }; | ||
export { APIManager, BalanceTypes, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, GasMode, Networks, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, Role, StakeKitContext, StakeKitQueryProvider, StakeSessionTypes, StakeStatus, TransactionStatus, TransactionType, UpdatePayoutAddressDtoNetwork, YieldProviders, YieldType, getStakeGetStakeSessionQueryKey, getStakeGetValidatorsQueryKey, getStakeYieldOpportunitiesQueryKey, getStakeYieldOpportunityQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, stakeEnter, stakeExit, stakeGetMultipleIntegrationBalances, stakeGetSingleIntegrationBalances, stakeGetStakeSession, stakeGetValidators, stakePendingActions, stakeYieldOpportunities, stakeYieldOpportunity, tokenGetTokenBalances, tokenGetTokenPrices, transactionConstruct, transactionGetGasForNetwork, transactionGetTransaction, transactionGetTransactionStatusFromId, transactionSubmit, transactionSubmitHash, useStakeEnter, useStakeEnterMutationOptions, useStakeExit, useStakeExitMutationOptions, useStakeGetMultipleIntegrationBalances, useStakeGetMultipleIntegrationBalancesMutationOptions, useStakeGetSingleIntegrationBalances, useStakeGetSingleIntegrationBalancesMutationOptions, useStakeGetStakeSession, useStakeGetStakeSessionQueryOptions, useStakeGetValidators, useStakeGetValidatorsQueryOptions, useStakeKitQueryClient, useStakePendingActions, useStakePendingActionsMutationOptions, useStakeYieldOpportunities, useStakeYieldOpportunitiesQueryOptions, useStakeYieldOpportunity, useStakeYieldOpportunityQueryOptions, useTokenGetTokenBalances, useTokenGetTokenBalancesQueryOptions, useTokenGetTokenPrices, useTokenGetTokenPricesQueryOptions, useTransactionConstruct, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashMutationOptions, useTransactionSubmitMutationOptions }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
@@ -1885,3 +1885,3 @@ import * as _tanstack_react_query from '@tanstack/react-query'; | ||
declare const getTokenGetTokenPricesQueryKey: (priceRequestDto: PriceRequestDto) => readonly ["/v1/token/prices", PriceRequestDto]; | ||
declare const getTokenGetTokenPricesQueryOptions: <TData = PriceResponseDto, TError = unknown>(priceRequestDto: PriceRequestDto, options?: { | ||
declare const useTokenGetTokenPricesQueryOptions: <TData = PriceResponseDto, TError = unknown>(priceRequestDto: PriceRequestDto, options?: { | ||
query?: UseQueryOptions<PriceResponseDto, TError, TData, QueryKey> | undefined; | ||
@@ -1904,3 +1904,3 @@ } | undefined) => UseQueryOptions<PriceResponseDto, TError, TData, QueryKey> & { | ||
declare const getTokenGetTokenBalancesQueryKey: (balancesRequestDto: BalancesRequestDto) => readonly ["/v1/token/balances", BalancesRequestDto]; | ||
declare const getTokenGetTokenBalancesQueryOptions: <TData = BalanceResponseDto[], TError = unknown>(balancesRequestDto: BalancesRequestDto, options?: { | ||
declare const useTokenGetTokenBalancesQueryOptions: <TData = BalanceResponseDto[], TError = unknown>(balancesRequestDto: BalancesRequestDto, options?: { | ||
query?: UseQueryOptions<BalanceResponseDto[], TError, TData, QueryKey> | undefined; | ||
@@ -1936,2 +1936,2 @@ } | undefined) => UseQueryOptions<BalanceResponseDto[], TError, TData, QueryKey> & { | ||
export { APIManager, AddressArgumentsDto, AddressWithTokenDto, AddressesDto, AmountArgumentOptionsDto, ApeNativeArgumentOptionsDto, ApeNativeArgumentsDto, ArgumentOptionsDto, AuthConfirmEmailDto, AuthEmailLoginDto, AuthEmailLoginResponseDto, AuthForgotPasswordDto, AuthGoogleLoginDto, AuthResetPasswordDto, AuthUpdateDto, AuthUpdateDtoOldPassword, BalanceResponseDto, BalanceTypes, BalancesRequestDto, BinanceAdditionalAddressesStakeArgumentOptionsDto, ConfirmUserMeDto, ConstructTransactionRequestDto, ConstructTransactionRequestDtoGasArgs, CosmosAdditionalAddressesDto, CosmosGasArgsDto, CreateKeyDto, CreatePayoutAddressDto, CreateProjectDto, CreateTeamDto, CreateTeamDtoContactDetails, CreateTeamDtoUser, CreateUserDto, DurationArgumentOptionsDto, EvmEIP1559GasArgsDto, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDto, EvmLegacyGasArgsDtoType, GasEstimateDto, GasForNetworkResponseDto, GasMode, GasModeValueDto, GasModeValueDtoGasArgs, GasModesDto, InfinityPaginatedDto, InfinityPaginatedDtoData, Key, KeyDeletedAt, Networks, PayoutAddressDto, PendingActionArgumentsDto, PendingActionDto, PendingActionRequestDto, PriceRequestDto, PriceResponseDto, Project, ProjectDeletedAt, RequiredArgumentDto, RequiredArgumentWithNetworkDto, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, Role, StakeArgumentOptionsDto, StakeArgumentResponseDto, StakeArgumentsDto, StakeDto, StakeEnterMutationBody, StakeEnterMutationError, StakeEnterMutationResult, StakeExitMutationBody, StakeExitMutationError, StakeExitMutationResult, StakeGetMultipleIntegrationBalancesMutationBody, StakeGetMultipleIntegrationBalancesMutationError, StakeGetMultipleIntegrationBalancesMutationResult, StakeGetSingleIntegrationBalancesMutationBody, StakeGetSingleIntegrationBalancesMutationError, StakeGetSingleIntegrationBalancesMutationResult, StakeGetStakeSessionQueryError, StakeGetStakeSessionQueryResult, StakeGetValidatorsQueryError, StakeGetValidatorsQueryResult, StakeKitContext, StakeKitQueryProvider, StakePendingActionsMutationBody, StakePendingActionsMutationError, StakePendingActionsMutationResult, StakeRequestDto, StakeSessionTypes, StakeStatus, StakeYieldOpportunitiesQueryError, StakeYieldOpportunitiesQueryResult, StakeYieldOpportunityQueryError, StakeYieldOpportunityQueryResult, SubmitHashRequestDto, SubmitRequestDto, SubmitResponseDto, Team, TeamContactDetails, TeamDeletedAt, TeamDto, TeamDtoContactDetails, TimePeriodDto, TokenDto, TokenGetTokenBalancesQueryError, TokenGetTokenBalancesQueryResult, TokenGetTokenPricesQueryError, TokenGetTokenPricesQueryResult, TokensDto, TransactionConstructMutationBody, TransactionConstructMutationError, TransactionConstructMutationResult, TransactionDto, TransactionDtoGasEstimate, TransactionGetGasForNetworkQueryError, TransactionGetGasForNetworkQueryResult, TransactionGetTransactionQueryError, TransactionGetTransactionQueryResult, TransactionGetTransactionStatusFromIdQueryError, TransactionGetTransactionStatusFromIdQueryResult, TransactionStatus, TransactionStatusResponseDto, TransactionStatusResponseDtoRaw, TransactionSubmitHashMutationBody, TransactionSubmitHashMutationError, TransactionSubmitHashMutationResult, TransactionSubmitMutationBody, TransactionSubmitMutationError, TransactionSubmitMutationResult, TransactionType, UpdateKeyDto, UpdatePayoutAddressDto, UpdatePayoutAddressDtoNetwork, UpdateProjectDto, UpdateTeamDto, UpdateUserDto, UpdateUserMeDto, UserDto, ValidatorAddressesDto, ValidatorDto, YieldBalanceDto, YieldBalanceRequestDto, YieldBalanceWithIntegrationIdRequestDto, YieldBalancesWithIntegrationIdDto, YieldConfigDto, YieldOpportunityDto, YieldProviderDto, YieldProviders, YieldStatusResponseDto, YieldType, getStakeGetStakeSessionQueryKey, getStakeGetValidatorsQueryKey, getStakeYieldOpportunitiesQueryKey, getStakeYieldOpportunityQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenBalancesQueryOptions, getTokenGetTokenPricesQueryKey, getTokenGetTokenPricesQueryOptions, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, stakeEnter, stakeExit, stakeGetMultipleIntegrationBalances, stakeGetSingleIntegrationBalances, stakeGetStakeSession, stakeGetValidators, stakePendingActions, stakeYieldOpportunities, stakeYieldOpportunity, tokenGetTokenBalances, tokenGetTokenPrices, transactionConstruct, transactionGetGasForNetwork, transactionGetTransaction, transactionGetTransactionStatusFromId, transactionSubmit, transactionSubmitHash, useStakeEnter, useStakeEnterMutationOptions, useStakeExit, useStakeExitMutationOptions, useStakeGetMultipleIntegrationBalances, useStakeGetMultipleIntegrationBalancesMutationOptions, useStakeGetSingleIntegrationBalances, useStakeGetSingleIntegrationBalancesMutationOptions, useStakeGetStakeSession, useStakeGetStakeSessionQueryOptions, useStakeGetValidators, useStakeGetValidatorsQueryOptions, useStakeKitQueryClient, useStakePendingActions, useStakePendingActionsMutationOptions, useStakeYieldOpportunities, useStakeYieldOpportunitiesQueryOptions, useStakeYieldOpportunity, useStakeYieldOpportunityQueryOptions, useTokenGetTokenBalances, useTokenGetTokenPrices, useTransactionConstruct, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashMutationOptions, useTransactionSubmitMutationOptions }; | ||
export { APIManager, AddressArgumentsDto, AddressWithTokenDto, AddressesDto, AmountArgumentOptionsDto, ApeNativeArgumentOptionsDto, ApeNativeArgumentsDto, ArgumentOptionsDto, AuthConfirmEmailDto, AuthEmailLoginDto, AuthEmailLoginResponseDto, AuthForgotPasswordDto, AuthGoogleLoginDto, AuthResetPasswordDto, AuthUpdateDto, AuthUpdateDtoOldPassword, BalanceResponseDto, BalanceTypes, BalancesRequestDto, BinanceAdditionalAddressesStakeArgumentOptionsDto, ConfirmUserMeDto, ConstructTransactionRequestDto, ConstructTransactionRequestDtoGasArgs, CosmosAdditionalAddressesDto, CosmosGasArgsDto, CreateKeyDto, CreatePayoutAddressDto, CreateProjectDto, CreateTeamDto, CreateTeamDtoContactDetails, CreateTeamDtoUser, CreateUserDto, DurationArgumentOptionsDto, EvmEIP1559GasArgsDto, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDto, EvmLegacyGasArgsDtoType, GasEstimateDto, GasForNetworkResponseDto, GasMode, GasModeValueDto, GasModeValueDtoGasArgs, GasModesDto, InfinityPaginatedDto, InfinityPaginatedDtoData, Key, KeyDeletedAt, Networks, PayoutAddressDto, PendingActionArgumentsDto, PendingActionDto, PendingActionRequestDto, PriceRequestDto, PriceResponseDto, Project, ProjectDeletedAt, RequiredArgumentDto, RequiredArgumentWithNetworkDto, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, Role, StakeArgumentOptionsDto, StakeArgumentResponseDto, StakeArgumentsDto, StakeDto, StakeEnterMutationBody, StakeEnterMutationError, StakeEnterMutationResult, StakeExitMutationBody, StakeExitMutationError, StakeExitMutationResult, StakeGetMultipleIntegrationBalancesMutationBody, StakeGetMultipleIntegrationBalancesMutationError, StakeGetMultipleIntegrationBalancesMutationResult, StakeGetSingleIntegrationBalancesMutationBody, StakeGetSingleIntegrationBalancesMutationError, StakeGetSingleIntegrationBalancesMutationResult, StakeGetStakeSessionQueryError, StakeGetStakeSessionQueryResult, StakeGetValidatorsQueryError, StakeGetValidatorsQueryResult, StakeKitContext, StakeKitQueryProvider, StakePendingActionsMutationBody, StakePendingActionsMutationError, StakePendingActionsMutationResult, StakeRequestDto, StakeSessionTypes, StakeStatus, StakeYieldOpportunitiesQueryError, StakeYieldOpportunitiesQueryResult, StakeYieldOpportunityQueryError, StakeYieldOpportunityQueryResult, SubmitHashRequestDto, SubmitRequestDto, SubmitResponseDto, Team, TeamContactDetails, TeamDeletedAt, TeamDto, TeamDtoContactDetails, TimePeriodDto, TokenDto, TokenGetTokenBalancesQueryError, TokenGetTokenBalancesQueryResult, TokenGetTokenPricesQueryError, TokenGetTokenPricesQueryResult, TokensDto, TransactionConstructMutationBody, TransactionConstructMutationError, TransactionConstructMutationResult, TransactionDto, TransactionDtoGasEstimate, TransactionGetGasForNetworkQueryError, TransactionGetGasForNetworkQueryResult, TransactionGetTransactionQueryError, TransactionGetTransactionQueryResult, TransactionGetTransactionStatusFromIdQueryError, TransactionGetTransactionStatusFromIdQueryResult, TransactionStatus, TransactionStatusResponseDto, TransactionStatusResponseDtoRaw, TransactionSubmitHashMutationBody, TransactionSubmitHashMutationError, TransactionSubmitHashMutationResult, TransactionSubmitMutationBody, TransactionSubmitMutationError, TransactionSubmitMutationResult, TransactionType, UpdateKeyDto, UpdatePayoutAddressDto, UpdatePayoutAddressDtoNetwork, UpdateProjectDto, UpdateTeamDto, UpdateUserDto, UpdateUserMeDto, UserDto, ValidatorAddressesDto, ValidatorDto, YieldBalanceDto, YieldBalanceRequestDto, YieldBalanceWithIntegrationIdRequestDto, YieldBalancesWithIntegrationIdDto, YieldConfigDto, YieldOpportunityDto, YieldProviderDto, YieldProviders, YieldStatusResponseDto, YieldType, getStakeGetStakeSessionQueryKey, getStakeGetValidatorsQueryKey, getStakeYieldOpportunitiesQueryKey, getStakeYieldOpportunityQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, stakeEnter, stakeExit, stakeGetMultipleIntegrationBalances, stakeGetSingleIntegrationBalances, stakeGetStakeSession, stakeGetValidators, stakePendingActions, stakeYieldOpportunities, stakeYieldOpportunity, tokenGetTokenBalances, tokenGetTokenPrices, transactionConstruct, transactionGetGasForNetwork, transactionGetTransaction, transactionGetTransactionStatusFromId, transactionSubmit, transactionSubmitHash, useStakeEnter, useStakeEnterMutationOptions, useStakeExit, useStakeExitMutationOptions, useStakeGetMultipleIntegrationBalances, useStakeGetMultipleIntegrationBalancesMutationOptions, useStakeGetSingleIntegrationBalances, useStakeGetSingleIntegrationBalancesMutationOptions, useStakeGetStakeSession, useStakeGetStakeSessionQueryOptions, useStakeGetValidators, useStakeGetValidatorsQueryOptions, useStakeKitQueryClient, useStakePendingActions, useStakePendingActionsMutationOptions, useStakeYieldOpportunities, useStakeYieldOpportunitiesQueryOptions, useStakeYieldOpportunity, useStakeYieldOpportunityQueryOptions, useTokenGetTokenBalances, useTokenGetTokenBalancesQueryOptions, useTokenGetTokenPrices, useTokenGetTokenPricesQueryOptions, useTransactionConstruct, useTransactionConstructMutationOptions, useTransactionGetGasForNetwork, useTransactionGetGasForNetworkQueryOptions, useTransactionGetTransaction, useTransactionGetTransactionQueryOptions, useTransactionGetTransactionStatusFromId, useTransactionGetTransactionStatusFromIdQueryOptions, useTransactionSubmit, useTransactionSubmitHash, useTransactionSubmitHashMutationOptions, useTransactionSubmitMutationOptions }; |
@@ -463,10 +463,15 @@ 'use strict'; | ||
var getTokenGetTokenPricesQueryKey = (priceRequestDto) => [`/v1/token/prices`, priceRequestDto]; | ||
var getTokenGetTokenPricesQueryOptions = (priceRequestDto, options) => { | ||
var useTokenGetTokenPricesQueryOptions = (priceRequestDto, options) => { | ||
const { query: queryOptions } = options ?? {}; | ||
const queryKey = queryOptions?.queryKey ?? getTokenGetTokenPricesQueryKey(priceRequestDto); | ||
const queryFn = () => tokenGetTokenPrices(priceRequestDto); | ||
return { queryKey, queryFn, ...queryOptions }; | ||
const customOptions = customQueryOptions({ | ||
...queryOptions, | ||
queryKey, | ||
queryFn | ||
}); | ||
return customOptions; | ||
}; | ||
var useTokenGetTokenPrices = (priceRequestDto, options) => { | ||
const queryOptions = getTokenGetTokenPricesQueryOptions( | ||
const queryOptions = useTokenGetTokenPricesQueryOptions( | ||
priceRequestDto, | ||
@@ -488,10 +493,15 @@ options | ||
var getTokenGetTokenBalancesQueryKey = (balancesRequestDto) => [`/v1/token/balances`, balancesRequestDto]; | ||
var getTokenGetTokenBalancesQueryOptions = (balancesRequestDto, options) => { | ||
var useTokenGetTokenBalancesQueryOptions = (balancesRequestDto, options) => { | ||
const { query: queryOptions } = options ?? {}; | ||
const queryKey = queryOptions?.queryKey ?? getTokenGetTokenBalancesQueryKey(balancesRequestDto); | ||
const queryFn = () => tokenGetTokenBalances(balancesRequestDto); | ||
return { queryKey, queryFn, ...queryOptions }; | ||
const customOptions = customQueryOptions({ | ||
...queryOptions, | ||
queryKey, | ||
queryFn | ||
}); | ||
return customOptions; | ||
}; | ||
var useTokenGetTokenBalances = (balancesRequestDto, options) => { | ||
const queryOptions = getTokenGetTokenBalancesQueryOptions( | ||
const queryOptions = useTokenGetTokenBalancesQueryOptions( | ||
balancesRequestDto, | ||
@@ -760,5 +770,3 @@ options | ||
exports.getTokenGetTokenBalancesQueryKey = getTokenGetTokenBalancesQueryKey; | ||
exports.getTokenGetTokenBalancesQueryOptions = getTokenGetTokenBalancesQueryOptions; | ||
exports.getTokenGetTokenPricesQueryKey = getTokenGetTokenPricesQueryKey; | ||
exports.getTokenGetTokenPricesQueryOptions = getTokenGetTokenPricesQueryOptions; | ||
exports.getTransactionGetGasForNetworkQueryKey = getTransactionGetGasForNetworkQueryKey; | ||
@@ -804,3 +812,5 @@ exports.getTransactionGetTransactionQueryKey = getTransactionGetTransactionQueryKey; | ||
exports.useTokenGetTokenBalances = useTokenGetTokenBalances; | ||
exports.useTokenGetTokenBalancesQueryOptions = useTokenGetTokenBalancesQueryOptions; | ||
exports.useTokenGetTokenPrices = useTokenGetTokenPrices; | ||
exports.useTokenGetTokenPricesQueryOptions = useTokenGetTokenPricesQueryOptions; | ||
exports.useTransactionConstruct = useTransactionConstruct; | ||
@@ -807,0 +817,0 @@ exports.useTransactionConstructMutationOptions = useTransactionConstructMutationOptions; |
{ | ||
"name": "@stakekit/api-hooks", | ||
"description": "React hooks for StakeKit API", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"types": "./dist/index.d.ts", | ||
@@ -6,0 +6,0 @@ "main": "./dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
243165
3322