Skip to content

Commit 91f16c3

Browse files
committed
tests
1 parent 0cad0af commit 91f16c3

40 files changed

+172
-94
lines changed

__fixtures__/issues/98/out/98.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Uint128, InstantiateMsg, Coin, ExecuteMsg, InstallableExecMsg, Binary, ExecMsg, QueryMsg, InstallableQueryMsg, QueryMsg1, ConfigResponse, NullablePlugin, CanonicalAddr, Plugin, PluginsResponse } from "./98.types";
99
import { 98QueryClient } from "./98.client";
1010
export interface 98ReactQuery<TResponse, TData = TResponse> {
1111
client: 98QueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface 98GetPluginByIdQuery<TData> extends 98ReactQuery<NullablePlugin, TData> {
1517
args: {

__output__/builder/bundler_test/contracts/CwAdminFactory.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions } from "react-query";
7+
import { UseQueryOptions } from "@tanstack/react-query";
88
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
99
import { CwAdminFactoryQueryClient } from "./CwAdminFactory.client";
1010
export interface CwAdminFactoryReactQuery<TResponse, TData = TResponse> {
1111
client: CwAdminFactoryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}

__output__/builder/bundler_test/contracts/CwCodeIdRegistry.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
99
import { CwCodeIdRegistryQueryClient } from "./CwCodeIdRegistry.client";
1010
export interface CwCodeIdRegistryReactQuery<TResponse, TData = TResponse> {
1111
client: CwCodeIdRegistryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface CwCodeIdRegistryListRegistrationsQuery<TData> extends CwCodeIdRegistryReactQuery<ListRegistrationsResponse, TData> {
1517
args: {

__output__/builder/bundler_test/contracts/CwSingle.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
99
import { CwSingleQueryClient } from "./CwSingle.client";
1010
export interface CwSingleReactQuery<TResponse, TData = TResponse> {
1111
client: CwSingleQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface CwSingleInfoQuery<TData> extends CwSingleReactQuery<InfoResponse, TData> {}
1517
export function useCwSingleInfoQuery<TData = InfoResponse>({

__output__/builder/bundler_test/contracts/Factory.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
99
import { FactoryQueryClient } from "./Factory.client";
1010
export interface FactoryReactQuery<TResponse, TData = TResponse> {
1111
client: FactoryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface FactoryAdminAddrQuery<TData> extends FactoryReactQuery<AdminAddrResponse, TData> {}
1517
export function useFactoryAdminAddrQuery<TData = AdminAddrResponse>({

__output__/builder/bundler_test/contracts/Minter.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Timestamp, Uint64, Uint128, ConfigResponse, Coin, Addr, Config, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
99
import { MinterQueryClient } from "./Minter.client";
1010
export interface MinterReactQuery<TResponse, TData = TResponse> {
1111
client: MinterQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface MinterMintCountQuery<TData> extends MinterReactQuery<MintCountResponse, TData> {
1517
args: {

__output__/builder/default/CwAdminFactory.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions } from "react-query";
7+
import { UseQueryOptions } from "@tanstack/react-query";
88
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
99
import { CwAdminFactoryQueryClient } from "./CwAdminFactory.client";
1010
export interface CwAdminFactoryReactQuery<TResponse, TData = TResponse> {
1111
client: CwAdminFactoryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}

__output__/builder/default/CwCodeIdRegistry.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
99
import { CwCodeIdRegistryQueryClient } from "./CwCodeIdRegistry.client";
1010
export interface CwCodeIdRegistryReactQuery<TResponse, TData = TResponse> {
1111
client: CwCodeIdRegistryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface CwCodeIdRegistryListRegistrationsQuery<TData> extends CwCodeIdRegistryReactQuery<ListRegistrationsResponse, TData> {
1517
args: {

__output__/builder/default/CwSingle.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
99
import { CwSingleQueryClient } from "./CwSingle.client";
1010
export interface CwSingleReactQuery<TResponse, TData = TResponse> {
1111
client: CwSingleQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface CwSingleInfoQuery<TData> extends CwSingleReactQuery<InfoResponse, TData> {}
1517
export function useCwSingleInfoQuery<TData = InfoResponse>({

__output__/builder/default/Factory.react-query.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
55
*/
66

7-
import { UseQueryOptions, useQuery } from "react-query";
7+
import { UseQueryOptions, useQuery } from "@tanstack/react-query";
88
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
99
import { FactoryQueryClient } from "./Factory.client";
1010
export interface FactoryReactQuery<TResponse, TData = TResponse> {
1111
client: FactoryQueryClient;
12-
options?: UseQueryOptions<TResponse, Error, TData>;
12+
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
13+
initialData?: undefined;
14+
};
1315
}
1416
export interface FactoryAdminAddrQuery<TData> extends FactoryReactQuery<AdminAddrResponse, TData> {}
1517
export function useFactoryAdminAddrQuery<TData = AdminAddrResponse>({

0 commit comments

Comments
 (0)