Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed extra vue query test #711

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions __fixtures__/v-next/outputv4/akash/audit/v1beta1/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js";
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.audit.v1beta1";
/** Provider stores owner auditor and attributes details */
export interface Provider {
owner: string;
auditor: string;
attributes: Attribute[];
}
export interface ReactiveProvider {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface ProviderProtoMsg {
typeUrl: "/akash.audit.v1beta1.Provider";
value: Uint8Array;
Expand All @@ -25,6 +31,11 @@ export interface AuditedAttributes {
auditor: string;
attributes: Attribute[];
}
export interface ReactiveAuditedAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface AuditedAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta1.AuditedAttributes";
value: Uint8Array;
Expand All @@ -39,6 +50,9 @@ export interface AuditedAttributesSDKType {
export interface AttributesResponse {
attributes: AuditedAttributes[];
}
export interface ReactiveAttributesResponse {
attributes: ComputedRef<AuditedAttributes[]>;
}
export interface AttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta1.AttributesResponse";
value: Uint8Array;
Expand All @@ -52,6 +66,10 @@ export interface AttributesFilters {
auditors: string[];
owners: string[];
}
export interface ReactiveAttributesFilters {
auditors: ComputedRef<string[]>;
owners: ComputedRef<string[]>;
}
export interface AttributesFiltersProtoMsg {
typeUrl: "/akash.audit.v1beta1.AttributesFilters";
value: Uint8Array;
Expand All @@ -67,6 +85,11 @@ export interface MsgSignProviderAttributes {
auditor: string;
attributes: Attribute[];
}
export interface ReactiveMsgSignProviderAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface MsgSignProviderAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes";
value: Uint8Array;
Expand All @@ -79,6 +102,7 @@ export interface MsgSignProviderAttributesSDKType {
}
/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
export interface MsgSignProviderAttributesResponse {}
export interface ReactiveMsgSignProviderAttributesResponse {}
export interface MsgSignProviderAttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributesResponse";
value: Uint8Array;
Expand All @@ -91,6 +115,11 @@ export interface MsgDeleteProviderAttributes {
auditor: string;
keys: string[];
}
export interface ReactiveMsgDeleteProviderAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
keys: ComputedRef<string[]>;
}
export interface MsgDeleteProviderAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes";
value: Uint8Array;
Expand All @@ -103,6 +132,7 @@ export interface MsgDeleteProviderAttributesSDKType {
}
/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
export interface MsgDeleteProviderAttributesResponse {}
export interface ReactiveMsgDeleteProviderAttributesResponse {}
export interface MsgDeleteProviderAttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributesResponse";
value: Uint8Array;
Expand Down
30 changes: 30 additions & 0 deletions __fixtures__/v-next/outputv4/akash/audit/v1beta2/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute.js";
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.audit.v1beta2";
/** Provider stores owner auditor and attributes details */
export interface Provider {
owner: string;
auditor: string;
attributes: Attribute[];
}
export interface ReactiveProvider {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface ProviderProtoMsg {
typeUrl: "/akash.audit.v1beta2.Provider";
value: Uint8Array;
Expand All @@ -25,6 +31,11 @@ export interface AuditedAttributes {
auditor: string;
attributes: Attribute[];
}
export interface ReactiveAuditedAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface AuditedAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta2.AuditedAttributes";
value: Uint8Array;
Expand All @@ -39,6 +50,9 @@ export interface AuditedAttributesSDKType {
export interface AttributesResponse {
attributes: AuditedAttributes[];
}
export interface ReactiveAttributesResponse {
attributes: ComputedRef<AuditedAttributes[]>;
}
export interface AttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta2.AttributesResponse";
value: Uint8Array;
Expand All @@ -52,6 +66,10 @@ export interface AttributesFilters {
auditors: string[];
owners: string[];
}
export interface ReactiveAttributesFilters {
auditors: ComputedRef<string[]>;
owners: ComputedRef<string[]>;
}
export interface AttributesFiltersProtoMsg {
typeUrl: "/akash.audit.v1beta2.AttributesFilters";
value: Uint8Array;
Expand All @@ -67,6 +85,11 @@ export interface MsgSignProviderAttributes {
auditor: string;
attributes: Attribute[];
}
export interface ReactiveMsgSignProviderAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
attributes: ComputedRef<Attribute[]>;
}
export interface MsgSignProviderAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes";
value: Uint8Array;
Expand All @@ -79,6 +102,7 @@ export interface MsgSignProviderAttributesSDKType {
}
/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
export interface MsgSignProviderAttributesResponse {}
export interface ReactiveMsgSignProviderAttributesResponse {}
export interface MsgSignProviderAttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributesResponse";
value: Uint8Array;
Expand All @@ -91,6 +115,11 @@ export interface MsgDeleteProviderAttributes {
auditor: string;
keys: string[];
}
export interface ReactiveMsgDeleteProviderAttributes {
owner: ComputedRef<string>;
auditor: ComputedRef<string>;
keys: ComputedRef<string[]>;
}
export interface MsgDeleteProviderAttributesProtoMsg {
typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes";
value: Uint8Array;
Expand All @@ -103,6 +132,7 @@ export interface MsgDeleteProviderAttributesSDKType {
}
/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
export interface MsgDeleteProviderAttributesResponse {}
export interface ReactiveMsgDeleteProviderAttributesResponse {}
export interface MsgDeleteProviderAttributesResponseProtoMsg {
typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributesResponse";
value: Uint8Array;
Expand Down
4 changes: 4 additions & 0 deletions __fixtures__/v-next/outputv4/akash/audit/v1beta2/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import { AuditedAttributes, AuditedAttributesSDKType } from "./audit.js";
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { JsonSafe } from "../../../json-safe.js";
import { DeepPartial, Exact } from "../../../helpers.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.audit.v1beta2";
/** GenesisState defines the basic genesis state used by audit module */
export interface GenesisState {
attributes: AuditedAttributes[];
}
export interface ReactiveGenesisState {
attributes: ComputedRef<AuditedAttributes[]>;
}
export interface GenesisStateProtoMsg {
typeUrl: "/akash.audit.v1beta2.GenesisState";
value: Uint8Array;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Provider, ProviderSDKType } from "./audit.js";
import { Rpc } from "../../../helpers.js";
import { BinaryReader } from "../../../binary.js";
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType } from "./query.js";
import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType, ReactiveQueryAllProvidersAttributesRequest, ReactiveQueryProviderAttributesRequest, ReactiveQueryProviderAuditorRequest, ReactiveQueryAuditorAttributesRequest } from "./query.js";
/** Query defines the gRPC querier service */
export interface Query {
/**
Expand Down
24 changes: 24 additions & 0 deletions __fixtures__/v-next/outputv4/akash/audit/v1beta2/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import { Provider, ProviderSDKType } from "./audit.js";
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.audit.v1beta2";
/** QueryProvidersResponse is response type for the Query/Providers RPC method */
export interface QueryProvidersResponse {
providers: Provider[];
pagination?: PageResponse;
}
export interface ReactiveQueryProvidersResponse {
providers: ComputedRef<Provider[]>;
pagination?: ComputedRef<PageResponse>;
}
export interface QueryProvidersResponseProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryProvidersResponse";
value: Uint8Array;
Expand All @@ -23,6 +28,10 @@ export interface QueryProviderRequest {
auditor: string;
owner: string;
}
export interface ReactiveQueryProviderRequest {
auditor: ComputedRef<string>;
owner: ComputedRef<string>;
}
export interface QueryProviderRequestProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryProviderRequest";
value: Uint8Array;
Expand All @@ -36,6 +45,9 @@ export interface QueryProviderRequestSDKType {
export interface QueryAllProvidersAttributesRequest {
pagination?: PageRequest;
}
export interface ReactiveQueryAllProvidersAttributesRequest {
pagination?: ComputedRef<PageRequest>;
}
export interface QueryAllProvidersAttributesRequestProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryAllProvidersAttributesRequest";
value: Uint8Array;
Expand All @@ -49,6 +61,10 @@ export interface QueryProviderAttributesRequest {
owner: string;
pagination?: PageRequest;
}
export interface ReactiveQueryProviderAttributesRequest {
owner: ComputedRef<string>;
pagination?: ComputedRef<PageRequest>;
}
export interface QueryProviderAttributesRequestProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryProviderAttributesRequest";
value: Uint8Array;
Expand All @@ -63,6 +79,10 @@ export interface QueryProviderAuditorRequest {
auditor: string;
owner: string;
}
export interface ReactiveQueryProviderAuditorRequest {
auditor: ComputedRef<string>;
owner: ComputedRef<string>;
}
export interface QueryProviderAuditorRequestProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryProviderAuditorRequest";
value: Uint8Array;
Expand All @@ -77,6 +97,10 @@ export interface QueryAuditorAttributesRequest {
auditor: string;
pagination?: PageRequest;
}
export interface ReactiveQueryAuditorAttributesRequest {
auditor: ComputedRef<string>;
pagination?: ComputedRef<PageRequest>;
}
export interface QueryAuditorAttributesRequestProtoMsg {
typeUrl: "/akash.audit.v1beta2.QueryAuditorAttributesRequest";
value: Uint8Array;
Expand Down
13 changes: 13 additions & 0 deletions __fixtures__/v-next/outputv4/akash/base/v1beta1/attribute.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.base.v1beta1";
/** Attribute represents key value pair */
export interface Attribute {
key: string;
value: string;
}
export interface ReactiveAttribute {
key: ComputedRef<string>;
value: ComputedRef<string>;
}
export interface AttributeProtoMsg {
typeUrl: "/akash.base.v1beta1.Attribute";
value: Uint8Array;
Expand All @@ -28,6 +33,10 @@ export interface SignedBy {
/** any_of at least of of the keys from the list must have signed attributes */
anyOf: string[];
}
export interface ReactiveSignedBy {
allOf: ComputedRef<string[]>;
anyOf: ComputedRef<string[]>;
}
export interface SignedByProtoMsg {
typeUrl: "/akash.base.v1beta1.SignedBy";
value: Uint8Array;
Expand All @@ -49,6 +58,10 @@ export interface PlacementRequirements {
/** Attribute list of attributes tenant expects from the provider */
attributes: Attribute[];
}
export interface ReactivePlacementRequirements {
signedBy: ComputedRef<SignedBy>;
attributes: ComputedRef<Attribute[]>;
}
export interface PlacementRequirementsProtoMsg {
typeUrl: "/akash.base.v1beta1.PlacementRequirements";
value: Uint8Array;
Expand Down
4 changes: 4 additions & 0 deletions __fixtures__/v-next/outputv4/akash/base/v1beta1/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.base.v1beta1";
/** This describes how the endpoint is implemented when the lease is deployed */
export enum Endpoint_Kind {
Expand Down Expand Up @@ -40,6 +41,9 @@ export function endpoint_KindToJSON(object: Endpoint_Kind): string {
export interface Endpoint {
kind: Endpoint_Kind;
}
export interface ReactiveEndpoint {
kind: ComputedRef<Endpoint_Kind>;
}
export interface EndpointProtoMsg {
typeUrl: "/akash.base.v1beta1.Endpoint";
value: Uint8Array;
Expand Down
19 changes: 19 additions & 0 deletions __fixtures__/v-next/outputv4/akash/base/v1beta1/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ import { Endpoint, EndpointSDKType } from "./endpoint.js";
import { BinaryReader, BinaryWriter } from "../../../binary.js";
import { isSet, DeepPartial, Exact } from "../../../helpers.js";
import { JsonSafe } from "../../../json-safe.js";
import { ComputedRef } from "vue";
export const protobufPackage = "akash.base.v1beta1";
/** CPU stores resource units and cpu config attributes */
export interface CPU {
units: ResourceValue;
attributes: Attribute[];
}
export interface ReactiveCPU {
units: ComputedRef<ResourceValue>;
attributes: ComputedRef<Attribute[]>;
}
export interface CPUProtoMsg {
typeUrl: "/akash.base.v1beta1.CPU";
value: Uint8Array;
Expand All @@ -24,6 +29,10 @@ export interface Memory {
quantity: ResourceValue;
attributes: Attribute[];
}
export interface ReactiveMemory {
quantity: ComputedRef<ResourceValue>;
attributes: ComputedRef<Attribute[]>;
}
export interface MemoryProtoMsg {
typeUrl: "/akash.base.v1beta1.Memory";
value: Uint8Array;
Expand All @@ -38,6 +47,10 @@ export interface Storage {
quantity: ResourceValue;
attributes: Attribute[];
}
export interface ReactiveStorage {
quantity: ComputedRef<ResourceValue>;
attributes: ComputedRef<Attribute[]>;
}
export interface StorageProtoMsg {
typeUrl: "/akash.base.v1beta1.Storage";
value: Uint8Array;
Expand All @@ -57,6 +70,12 @@ export interface ResourceUnits {
storage?: Storage;
endpoints: Endpoint[];
}
export interface ReactiveResourceUnits {
cpu?: ComputedRef<CPU>;
memory?: ComputedRef<Memory>;
storage?: ComputedRef<Storage>;
endpoints: ComputedRef<Endpoint[]>;
}
export interface ResourceUnitsProtoMsg {
typeUrl: "/akash.base.v1beta1.ResourceUnits";
value: Uint8Array;
Expand Down
Loading
Loading