Skip to content

Commit

Permalink
fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Nov 23, 2022
1 parent 6a78500 commit 661bdcd
Show file tree
Hide file tree
Showing 58 changed files with 451 additions and 296 deletions.
8 changes: 4 additions & 4 deletions __fixtures__/output1/akash/audit/v1beta2/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useAllProvidersAttributes = ({
const useAllProvidersAttributes = <TData = QueryProvidersResponse,>({
request,
options
}: UseAllProvidersAttributesQuery<TData>) => {
Expand All @@ -146,7 +146,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useProviderAttributes = ({
const useProviderAttributes = <TData = QueryProvidersResponse,>({
request,
options
}: UseProviderAttributesQuery<TData>) => {
Expand All @@ -156,7 +156,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useProviderAuditorAttributes = ({
const useProviderAuditorAttributes = <TData = QueryProvidersResponse,>({
request,
options
}: UseProviderAuditorAttributesQuery<TData>) => {
Expand All @@ -166,7 +166,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useAuditorAttributes = ({
const useAuditorAttributes = <TData = QueryProvidersResponse,>({
request,
options
}: UseAuditorAttributesQuery<TData>) => {
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output1/akash/cert/v1beta2/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useCertificates = ({
const useCertificates = <TData = QueryCertificatesResponse,>({
request,
options
}: UseCertificatesQuery<TData>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useDeployments = ({
const useDeployments = <TData = QueryDeploymentsResponse,>({
request,
options
}: UseDeploymentsQuery<TData>) => {
Expand All @@ -106,7 +106,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useDeployment = ({
const useDeployment = <TData = QueryDeploymentResponse,>({
request,
options
}: UseDeploymentQuery<TData>) => {
Expand All @@ -116,7 +116,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useGroup = ({
const useGroup = <TData = QueryGroupResponse,>({
request,
options
}: UseGroupQuery<TData>) => {
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/escrow/v1beta1/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useAccounts = ({
const useAccounts = <TData = QueryAccountsResponse,>({
request,
options
}: UseAccountsQuery<TData>) => {
Expand All @@ -98,7 +98,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const usePayments = ({
const usePayments = <TData = QueryPaymentsResponse,>({
request,
options
}: UsePaymentsQuery<TData>) => {
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/escrow/v1beta2/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useAccounts = ({
const useAccounts = <TData = QueryAccountsResponse,>({
request,
options
}: UseAccountsQuery<TData>) => {
Expand All @@ -98,7 +98,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const usePayments = ({
const usePayments = <TData = QueryPaymentsResponse,>({
request,
options
}: UsePaymentsQuery<TData>) => {
Expand Down
12 changes: 6 additions & 6 deletions __fixtures__/output1/akash/market/v1beta2/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useOrders = ({
const useOrders = <TData = QueryOrdersResponse,>({
request,
options
}: UseOrdersQuery<TData>) => {
Expand All @@ -157,7 +157,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useOrder = ({
const useOrder = <TData = QueryOrderResponse,>({
request,
options
}: UseOrderQuery<TData>) => {
Expand All @@ -167,7 +167,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useBids = ({
const useBids = <TData = QueryBidsResponse,>({
request,
options
}: UseBidsQuery<TData>) => {
Expand All @@ -177,7 +177,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useBid = ({
const useBid = <TData = QueryBidResponse,>({
request,
options
}: UseBidQuery<TData>) => {
Expand All @@ -187,7 +187,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useLeases = ({
const useLeases = <TData = QueryLeasesResponse,>({
request,
options
}: UseLeasesQuery<TData>) => {
Expand All @@ -197,7 +197,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useLease = ({
const useLease = <TData = QueryLeaseResponse,>({
request,
options
}: UseLeaseQuery<TData>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useProviders = ({
const useProviders = <TData = QueryProvidersResponse,>({
request,
options
}: UseProvidersQuery<TData>) => {
Expand All @@ -88,7 +88,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useProvider = ({
const useProvider = <TData = QueryProviderResponse,>({
request,
options
}: UseProviderQuery<TData>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useConfig = ({
const useConfig = <TData = QueryConfigResponse,>({
request,
options
}: UseConfigQuery<TData>) => {
Expand Down
14 changes: 7 additions & 7 deletions __fixtures__/output1/cosmos/auth/v1beta1/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useAccounts = ({
const useAccounts = <TData = QueryAccountsResponse,>({
request,
options
}: UseAccountsQuery<TData>) => {
Expand All @@ -179,7 +179,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useAccount = ({
const useAccount = <TData = QueryAccountResponse,>({
request,
options
}: UseAccountQuery<TData>) => {
Expand All @@ -189,7 +189,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useParams = ({
const useParams = <TData = QueryParamsResponse,>({
request,
options
}: UseParamsQuery<TData>) => {
Expand All @@ -199,7 +199,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useModuleAccounts = ({
const useModuleAccounts = <TData = QueryModuleAccountsResponse,>({
request,
options
}: UseModuleAccountsQuery<TData>) => {
Expand All @@ -209,7 +209,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useBech32Prefix = ({
const useBech32Prefix = <TData = Bech32PrefixResponse,>({
request,
options
}: UseBech32PrefixQuery<TData>) => {
Expand All @@ -219,7 +219,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useAddressBytesToString = ({
const useAddressBytesToString = <TData = AddressBytesToStringResponse,>({
request,
options
}: UseAddressBytesToStringQuery<TData>) => {
Expand All @@ -229,7 +229,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useAddressStringToBytes = ({
const useAddressStringToBytes = <TData = AddressStringToBytesResponse,>({
request,
options
}: UseAddressStringToBytesQuery<TData>) => {
Expand Down
6 changes: 3 additions & 3 deletions __fixtures__/output1/cosmos/authz/v1beta1/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useGrants = ({
const useGrants = <TData = QueryGrantsResponse,>({
request,
options
}: UseGrantsQuery<TData>) => {
Expand All @@ -112,7 +112,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useGranterGrants = ({
const useGranterGrants = <TData = QueryGranterGrantsResponse,>({
request,
options
}: UseGranterGrantsQuery<TData>) => {
Expand All @@ -122,7 +122,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useGranteeGrants = ({
const useGranteeGrants = <TData = QueryGranteeGrantsResponse,>({
request,
options
}: UseGranteeGrantsQuery<TData>) => {
Expand Down
18 changes: 9 additions & 9 deletions __fixtures__/output1/cosmos/bank/v1beta1/query.rpc.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useBalance = ({
const useBalance = <TData = QueryBalanceResponse,>({
request,
options
}: UseBalanceQuery<TData>) => {
Expand All @@ -220,7 +220,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useAllBalances = ({
const useAllBalances = <TData = QueryAllBalancesResponse,>({
request,
options
}: UseAllBalancesQuery<TData>) => {
Expand All @@ -230,7 +230,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useSpendableBalances = ({
const useSpendableBalances = <TData = QuerySpendableBalancesResponse,>({
request,
options
}: UseSpendableBalancesQuery<TData>) => {
Expand All @@ -240,7 +240,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useTotalSupply = ({
const useTotalSupply = <TData = QueryTotalSupplyResponse,>({
request,
options
}: UseTotalSupplyQuery<TData>) => {
Expand All @@ -250,7 +250,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useSupplyOf = ({
const useSupplyOf = <TData = QuerySupplyOfResponse,>({
request,
options
}: UseSupplyOfQuery<TData>) => {
Expand All @@ -260,7 +260,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useParams = ({
const useParams = <TData = QueryParamsResponse,>({
request,
options
}: UseParamsQuery<TData>) => {
Expand All @@ -270,7 +270,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useDenomMetadata = ({
const useDenomMetadata = <TData = QueryDenomMetadataResponse,>({
request,
options
}: UseDenomMetadataQuery<TData>) => {
Expand All @@ -280,7 +280,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useDenomsMetadata = ({
const useDenomsMetadata = <TData = QueryDenomsMetadataResponse,>({
request,
options
}: UseDenomsMetadataQuery<TData>) => {
Expand All @@ -290,7 +290,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useDenomOwners = ({
const useDenomOwners = <TData = QueryDenomOwnersResponse,>({
request,
options
}: UseDenomOwnersQuery<TData>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl |
export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
const queryService = getQueryService(rpc);

const useListAllInterfaces = ({
const useListAllInterfaces = <TData = ListAllInterfacesResponse,>({
request,
options
}: UseListAllInterfacesQuery<TData>) => {
Expand All @@ -91,7 +91,7 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => {
}, options);
};

const useListImplementations = ({
const useListImplementations = <TData = ListImplementationsResponse,>({
request,
options
}: UseListImplementationsQuery<TData>) => {
Expand Down
Loading

0 comments on commit 661bdcd

Please sign in to comment.