@stakekit/api-hooks
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -146,5 +146,17 @@ import * as _tanstack_react_query from '@tanstack/react-query'; | ||
*/ | ||
interface SolanaAdditionalAddressesDto { | ||
stakeAccounts: string[]; | ||
lidoStakeAddresses: string[]; | ||
} | ||
type AddressWithTokenDtoAdditionalAddresses = CosmosAdditionalAddressesDto | BinanceAdditionalAddressesDto; | ||
/** | ||
* Generated by orval v6.15.0 🍺 | ||
* Do not edit manually. | ||
* StakeKit | ||
* StakeKit API documentation | ||
* OpenAPI spec version: 1.0 | ||
*/ | ||
type AddressWithTokenDtoAdditionalAddresses = CosmosAdditionalAddressesDto | BinanceAdditionalAddressesDto | SolanaAdditionalAddressesDto; | ||
/** | ||
@@ -173,3 +185,3 @@ * Generated by orval v6.15.0 🍺 | ||
type AddressesDtoAdditionalAddresses = CosmosAdditionalAddressesDto | BinanceAdditionalAddressesDto; | ||
type AddressesDtoAdditionalAddresses = CosmosAdditionalAddressesDto | BinanceAdditionalAddressesDto | SolanaAdditionalAddressesDto; | ||
@@ -1395,2 +1407,13 @@ /** | ||
*/ | ||
interface UpdateWebhookSubscriptionDto { | ||
callback: string; | ||
} | ||
/** | ||
* Generated by orval v6.15.0 🍺 | ||
* Do not edit manually. | ||
* StakeKit | ||
* StakeKit API documentation | ||
* OpenAPI spec version: 1.0 | ||
*/ | ||
interface ValidatorAddressesDto { | ||
@@ -1535,14 +1558,2 @@ validatorAddresses: string[]; | ||
*/ | ||
interface YieldStatusResponseDto { | ||
enter: boolean; | ||
exit: boolean; | ||
} | ||
/** | ||
* Generated by orval v6.15.0 🍺 | ||
* Do not edit manually. | ||
* StakeKit | ||
* StakeKit API documentation | ||
* OpenAPI spec version: 1.0 | ||
*/ | ||
type YieldProviders = (typeof YieldProviders)[keyof typeof YieldProviders]; | ||
@@ -1594,2 +1605,29 @@ declare const YieldProviders: { | ||
interface YieldMetadataDto { | ||
name: string; | ||
logoURI: string; | ||
description: string; | ||
provider?: YieldProviderDto; | ||
} | ||
/** | ||
* Generated by orval v6.15.0 🍺 | ||
* Do not edit manually. | ||
* StakeKit | ||
* StakeKit API documentation | ||
* OpenAPI spec version: 1.0 | ||
*/ | ||
interface YieldStatusResponseDto { | ||
enter: boolean; | ||
exit: boolean; | ||
} | ||
/** | ||
* Generated by orval v6.15.0 🍺 | ||
* Do not edit manually. | ||
* StakeKit | ||
* StakeKit API documentation | ||
* OpenAPI spec version: 1.0 | ||
*/ | ||
interface YieldOpportunityDto { | ||
@@ -1603,3 +1641,3 @@ /** The yield opportunity ID */ | ||
apy: number; | ||
provider?: YieldProviderDto; | ||
metadata: YieldMetadataDto; | ||
} | ||
@@ -1982,2 +2020,2 @@ | ||
export { APIManager, AddressArgumentsDto, AddressWithTokenDto, AddressWithTokenDtoAdditionalAddresses, AddressesDto, AddressesDtoAdditionalAddresses, AmountArgumentOptionsDto, ApeNativeArgumentOptionsDto, ApeNativeArgumentsDto, ArgumentOptionsDto, AuthConfirmEmailDto, AuthEmailLoginDto, AuthEmailLoginResponseDto, AuthForgotPasswordDto, AuthGoogleLoginDto, AuthResetPasswordDto, AuthUpdateDto, AuthUpdateDtoOldPassword, BalanceResponseDto, BalanceTypes, BalancesRequestDto, BinanceAdditionalAddressesDto, BinanceAdditionalAddressesStakeArgumentOptionsDto, ConfirmUserMeDto, ConstructTransactionRequestDto, ConstructTransactionRequestDtoGasArgs, CosmosAdditionalAddressesDto, CosmosGasArgsDto, CreateKeyDto, CreatePayoutAddressDto, CreateProjectDto, CreateTeamDto, CreateTeamDtoContactDetails, CreateTeamDtoUser, CreateUserDto, CreateWebhookSubscriptionDto, 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, 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, WebhookSubscriptionDto, 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 }; | ||
export { APIManager, AddressArgumentsDto, AddressWithTokenDto, AddressWithTokenDtoAdditionalAddresses, AddressesDto, AddressesDtoAdditionalAddresses, AmountArgumentOptionsDto, ApeNativeArgumentOptionsDto, ApeNativeArgumentsDto, ArgumentOptionsDto, AuthConfirmEmailDto, AuthEmailLoginDto, AuthEmailLoginResponseDto, AuthForgotPasswordDto, AuthGoogleLoginDto, AuthResetPasswordDto, AuthUpdateDto, AuthUpdateDtoOldPassword, BalanceResponseDto, BalanceTypes, BalancesRequestDto, BinanceAdditionalAddressesDto, BinanceAdditionalAddressesStakeArgumentOptionsDto, ConfirmUserMeDto, ConstructTransactionRequestDto, ConstructTransactionRequestDtoGasArgs, CosmosAdditionalAddressesDto, CosmosGasArgsDto, CreateKeyDto, CreatePayoutAddressDto, CreateProjectDto, CreateTeamDto, CreateTeamDtoContactDetails, CreateTeamDtoUser, CreateUserDto, CreateWebhookSubscriptionDto, 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, SolanaAdditionalAddressesDto, 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, 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, UpdateWebhookSubscriptionDto, UserDto, ValidatorAddressesDto, ValidatorDto, WebhookSubscriptionDto, YieldBalanceDto, YieldBalanceRequestDto, YieldBalanceWithIntegrationIdRequestDto, YieldBalancesWithIntegrationIdDto, YieldConfigDto, YieldMetadataDto, 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 }; |
{ | ||
"name": "@stakekit/api-hooks", | ||
"description": "React hooks for StakeKit API", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"types": "./dist/index.d.ts", | ||
@@ -33,2 +33,3 @@ "main": "./dist/esm/index.js", | ||
"api:codegen": "orval --config ./orval.config.ts", | ||
"format": "prettier --write ./src", | ||
"lint": "tsc && eslint src && prettier --check ./src", | ||
@@ -40,3 +41,3 @@ "clean": "rm -rf dist", | ||
"dependencies": { | ||
"@tanstack/react-query": "^4.28.0", | ||
"@tanstack/react-query": "^4.29.7", | ||
"axios": "^1.4.0", | ||
@@ -50,3 +51,3 @@ "lodash.merge": "^4.6.2" | ||
"@types/lodash.merge": "^4", | ||
"eslint": "^8.39.0", | ||
"eslint": "^8.40.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
@@ -53,0 +54,0 @@ "eslint-config-react-app": "^7.0.1", |
245177
3393