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

@stakekit/api-hooks

Package Overview
Dependencies
Maintainers
4
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stakekit/api-hooks - npm Package Compare versions

Comparing version 0.0.71 to 0.0.72

89

dist/index.js

@@ -173,14 +173,23 @@ export { ActionStatus, ActionTypes, BalanceTypes, DailyCumulativeStakeDtoStatus, DailyCumulativeStakeDtoType, EvmEIP1559GasArgsDtoType, EvmLegacyGasArgsDtoType, GasMode, GeolocationErrorTagsItem, GeolocationErrorType, KeyCategory, MasterBannedRegionDtoTagsItem, Networks, RequiredArgumentWithNetworkDtoNetwork, RewardClaiming, RewardSchedule, RewardTypes, Role, TeamCategory, TokenGetTokensNetwork, TransactionStatus, TransactionType, TronResourceType, UpdatePayoutAddressDtoNetwork, ValidatorStatusTypes, WebhookSubscriptionEventDtoEvent, YieldGetMyYieldsNetwork, YieldGetMyYieldsSortBy, YieldGetMyYieldsType, YieldProviders, YieldType, YieldYieldsNetwork, YieldYieldsRevenueOption, YieldYieldsSortBy, YieldYieldsType } from './chunk-YJXQ3ES4.js';

};
var useActionEnterGasEstimationMutationOptions = (options) => {
const { mutation: mutationOptions } = options ?? {};
var getActionEnterGasEstimationQueryKey = (actionGasEstimateRequestDto) => {
return [
`/v1/actions/enter/estimate-gas`,
actionGasEstimateRequestDto
];
};
var useActionEnterGasEstimationQueryOptions = (actionGasEstimateRequestDto, options) => {
const { query: queryOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getActionEnterGasEstimationQueryKey(actionGasEstimateRequestDto);
const actionEnterGasEstimation = useActionEnterGasEstimationHook();
const mutationFn = (props) => {
const { data } = props ?? {};
return actionEnterGasEstimation(data);
};
return { mutationFn, ...mutationOptions };
const queryFn = () => actionEnterGasEstimation(actionGasEstimateRequestDto);
return { queryKey, queryFn, ...queryOptions };
};
var useActionEnterGasEstimation = (options) => {
const mutationOptions = useActionEnterGasEstimationMutationOptions(options);
return useMutation(mutationOptions);
var useActionEnterGasEstimation = (actionGasEstimateRequestDto, options) => {
const queryOptions = useActionEnterGasEstimationQueryOptions(
actionGasEstimateRequestDto,
options
);
const query = useQuery(queryOptions);
query.queryKey = queryOptions.queryKey;
return query;
};

@@ -198,14 +207,23 @@ var useActionExitGasEstimateHook = () => {

};
var useActionExitGasEstimateMutationOptions = (options) => {
const { mutation: mutationOptions } = options ?? {};
var getActionExitGasEstimateQueryKey = (actionGasEstimateRequestDto) => {
return [
`/v1/actions/exit/estimate-gas`,
actionGasEstimateRequestDto
];
};
var useActionExitGasEstimateQueryOptions = (actionGasEstimateRequestDto, options) => {
const { query: queryOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getActionExitGasEstimateQueryKey(actionGasEstimateRequestDto);
const actionExitGasEstimate = useActionExitGasEstimateHook();
const mutationFn = (props) => {
const { data } = props ?? {};
return actionExitGasEstimate(data);
};
return { mutationFn, ...mutationOptions };
const queryFn = () => actionExitGasEstimate(actionGasEstimateRequestDto);
return { queryKey, queryFn, ...queryOptions };
};
var useActionExitGasEstimate = (options) => {
const mutationOptions = useActionExitGasEstimateMutationOptions(options);
return useMutation(mutationOptions);
var useActionExitGasEstimate = (actionGasEstimateRequestDto, options) => {
const queryOptions = useActionExitGasEstimateQueryOptions(
actionGasEstimateRequestDto,
options
);
const query = useQuery(queryOptions);
query.queryKey = queryOptions.queryKey;
return query;
};

@@ -223,14 +241,23 @@ var useActionPendingGasEstimateHook = () => {

};
var useActionPendingGasEstimateMutationOptions = (options) => {
const { mutation: mutationOptions } = options ?? {};
var getActionPendingGasEstimateQueryKey = (pendingActionGasEstimateRequestDto) => {
return [
`/v1/actions/pending/estimate-gas`,
pendingActionGasEstimateRequestDto
];
};
var useActionPendingGasEstimateQueryOptions = (pendingActionGasEstimateRequestDto, options) => {
const { query: queryOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getActionPendingGasEstimateQueryKey(pendingActionGasEstimateRequestDto);
const actionPendingGasEstimate = useActionPendingGasEstimateHook();
const mutationFn = (props) => {
const { data } = props ?? {};
return actionPendingGasEstimate(data);
};
return { mutationFn, ...mutationOptions };
const queryFn = () => actionPendingGasEstimate(pendingActionGasEstimateRequestDto);
return { queryKey, queryFn, ...queryOptions };
};
var useActionPendingGasEstimate = (options) => {
const mutationOptions = useActionPendingGasEstimateMutationOptions(options);
return useMutation(mutationOptions);
var useActionPendingGasEstimate = (pendingActionGasEstimateRequestDto, options) => {
const queryOptions = useActionPendingGasEstimateQueryOptions(
pendingActionGasEstimateRequestDto,
options
);
const query = useQuery(queryOptions);
query.queryKey = queryOptions.queryKey;
return query;
};

@@ -876,4 +903,4 @@ var useTransactionGetTransactionHook = () => {

export { ApiClientProvider, getActionGetActionQueryKey, getActionGetGasEstimateQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTokenGetTokensQueryKey, getTokenTokenBalancesScanQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusByNetworkAndHashQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, getYieldFindValidatorsQueryKey, getYieldGetMultipleYieldBalancesQueryKey, getYieldGetMyNetworksQueryKey, getYieldGetMyYieldsQueryKey, getYieldGetSingleYieldBalancesQueryKey, getYieldGetValidatorsQueryKey, getYieldYieldBalancesScanQueryKey, getYieldYieldOpportunityQueryKey, getYieldYieldsQueryKey, useActionEnter, useActionEnterGasEstimation, useActionEnterGasEstimationHook, useActionEnterGasEstimationMutationOptions, useActionEnterHook, useActionEnterMutationOptions, useActionExit, useActionExitGasEstimate, useActionExitGasEstimateHook, useActionExitGasEstimateMutationOptions, useActionExitHook, useActionExitMutationOptions, useActionGetAction, useActionGetActionHook, useActionGetActionQueryOptions, useActionGetGasEstimate, useActionGetGasEstimateHook, useActionGetGasEstimateQueryOptions, useActionPending, useActionPendingGasEstimate, useActionPendingGasEstimateHook, useActionPendingGasEstimateMutationOptions, 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, 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, getActionPendingGasEstimateQueryKey, getTokenGetTokenBalancesQueryKey, getTokenGetTokenPricesQueryKey, getTokenGetTokensQueryKey, getTokenTokenBalancesScanQueryKey, getTransactionGetGasForNetworkQueryKey, getTransactionGetTransactionQueryKey, getTransactionGetTransactionStatusByNetworkAndHashQueryKey, getTransactionGetTransactionStatusFromIdQueryKey, getYieldFindValidatorsQueryKey, 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, 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, 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
{
"name": "@stakekit/api-hooks",
"description": "React hooks for StakeKit API",
"version": "0.0.71",
"version": "0.0.72",
"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

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