Skip to content

Commit

Permalink
fix and fixtures for grpc-gateway method with 2 or more params
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Jun 17, 2023
1 parent 37e9564 commit 1de3ab8
Show file tree
Hide file tree
Showing 1,400 changed files with 11,345 additions and 11,332 deletions.
16 changes: 8 additions & 8 deletions __fixtures__/output1/akash/audit/v1beta2/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export const protobufPackage = "akash.audit.v1beta2";
/** QueryProvidersResponse is response type for the Query/Providers RPC method */
export interface QueryProvidersResponse {
providers: Provider[];
pagination?: PageResponse;
pagination: PageResponse;
}
/** QueryProvidersResponse is response type for the Query/Providers RPC method */
export interface QueryProvidersResponseSDKType {
providers: ProviderSDKType[];
pagination?: PageResponseSDKType;
pagination: PageResponseSDKType;
}
/** QueryProviderRequest is request type for the Query/Provider RPC method */
export interface QueryProviderRequest {
Expand All @@ -25,21 +25,21 @@ export interface QueryProviderRequestSDKType {
}
/** QueryAllProvidersAttributesRequest is request type for the Query/All Providers RPC method */
export interface QueryAllProvidersAttributesRequest {
pagination?: PageRequest;
pagination: PageRequest;
}
/** QueryAllProvidersAttributesRequest is request type for the Query/All Providers RPC method */
export interface QueryAllProvidersAttributesRequestSDKType {
pagination?: PageRequestSDKType;
pagination: PageRequestSDKType;
}
/** QueryProviderAttributesRequest is request type for the Query/Provider RPC method */
export interface QueryProviderAttributesRequest {
owner: string;
pagination?: PageRequest;
pagination: PageRequest;
}
/** QueryProviderAttributesRequest is request type for the Query/Provider RPC method */
export interface QueryProviderAttributesRequestSDKType {
owner: string;
pagination?: PageRequestSDKType;
pagination: PageRequestSDKType;
}
/** QueryProviderAuditorRequest is request type for the Query/Providers RPC method */
export interface QueryProviderAuditorRequest {
Expand All @@ -54,12 +54,12 @@ export interface QueryProviderAuditorRequestSDKType {
/** QueryAuditorAttributesRequest is request type for the Query/Providers RPC method */
export interface QueryAuditorAttributesRequest {
auditor: string;
pagination?: PageRequest;
pagination: PageRequest;
}
/** QueryAuditorAttributesRequest is request type for the Query/Providers RPC method */
export interface QueryAuditorAttributesRequestSDKType {
auditor: string;
pagination?: PageRequestSDKType;
pagination: PageRequestSDKType;
}
function createBaseQueryProvidersResponse(): QueryProvidersResponse {
return {
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/base/v1beta1/attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export interface SignedBySDKType {
/** PlacementRequirements */
export interface PlacementRequirements {
/** SignedBy list of keys that tenants expect to have signatures from */
signedBy?: SignedBy;
signedBy: SignedBy;
/** Attribute list of attributes tenant expects from the provider */
attributes: Attribute[];
}
/** PlacementRequirements */
export interface PlacementRequirementsSDKType {
signed_by?: SignedBySDKType;
signed_by: SignedBySDKType;
attributes: AttributeSDKType[];
}
function createBaseAttribute(): Attribute {
Expand Down
12 changes: 6 additions & 6 deletions __fixtures__/output1/akash/base/v1beta1/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ import { isSet, DeepPartial, Exact } from "../../../helpers";
export const protobufPackage = "akash.base.v1beta1";
/** CPU stores resource units and cpu config attributes */
export interface CPU {
units?: ResourceValue;
units: ResourceValue;
attributes: Attribute[];
}
/** CPU stores resource units and cpu config attributes */
export interface CPUSDKType {
units?: ResourceValueSDKType;
units: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
/** Memory stores resource quantity and memory attributes */
export interface Memory {
quantity?: ResourceValue;
quantity: ResourceValue;
attributes: Attribute[];
}
/** Memory stores resource quantity and memory attributes */
export interface MemorySDKType {
quantity?: ResourceValueSDKType;
quantity: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
/** Storage stores resource quantity and storage attributes */
export interface Storage {
quantity?: ResourceValue;
quantity: ResourceValue;
attributes: Attribute[];
}
/** Storage stores resource quantity and storage attributes */
export interface StorageSDKType {
quantity?: ResourceValueSDKType;
quantity: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
/**
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/base/v1beta2/attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export interface SignedBySDKType {
/** PlacementRequirements */
export interface PlacementRequirements {
/** SignedBy list of keys that tenants expect to have signatures from */
signedBy?: SignedBy;
signedBy: SignedBy;
/** Attribute list of attributes tenant expects from the provider */
attributes: Attribute[];
}
/** PlacementRequirements */
export interface PlacementRequirementsSDKType {
signed_by?: SignedBySDKType;
signed_by: SignedBySDKType;
attributes: AttributeSDKType[];
}
function createBaseAttribute(): Attribute {
Expand Down
12 changes: 6 additions & 6 deletions __fixtures__/output1/akash/base/v1beta2/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ import { isSet, DeepPartial, Exact } from "../../../helpers";
export const protobufPackage = "akash.base.v1beta2";
/** CPU stores resource units and cpu config attributes */
export interface CPU {
units?: ResourceValue;
units: ResourceValue;
attributes: Attribute[];
}
/** CPU stores resource units and cpu config attributes */
export interface CPUSDKType {
units?: ResourceValueSDKType;
units: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
/** Memory stores resource quantity and memory attributes */
export interface Memory {
quantity?: ResourceValue;
quantity: ResourceValue;
attributes: Attribute[];
}
/** Memory stores resource quantity and memory attributes */
export interface MemorySDKType {
quantity?: ResourceValueSDKType;
quantity: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
/** Storage stores resource quantity and storage attributes */
export interface Storage {
name: string;
quantity?: ResourceValue;
quantity: ResourceValue;
attributes: Attribute[];
}
/** Storage stores resource quantity and storage attributes */
export interface StorageSDKType {
name: string;
quantity?: ResourceValueSDKType;
quantity: ResourceValueSDKType;
attributes: AttributeSDKType[];
}
function createBaseCPU(): CPU {
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/cert/v1beta2/cert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ export interface MsgCreateCertificateResponse {}
export interface MsgCreateCertificateResponseSDKType {}
/** MsgRevokeCertificate defines an SDK message for revoking certificate */
export interface MsgRevokeCertificate {
id?: CertificateID;
id: CertificateID;
}
/** MsgRevokeCertificate defines an SDK message for revoking certificate */
export interface MsgRevokeCertificateSDKType {
id?: CertificateIDSDKType;
id: CertificateIDSDKType;
}
/** MsgRevokeCertificateResponse defines the Msg/RevokeCertificate response type. */
export interface MsgRevokeCertificateResponse {}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/cert/v1beta2/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export const protobufPackage = "akash.cert.v1beta2";
/** GenesisCertificate defines certificate entry at genesis */
export interface GenesisCertificate {
owner: string;
certificate?: Certificate;
certificate: Certificate;
}
/** GenesisCertificate defines certificate entry at genesis */
export interface GenesisCertificateSDKType {
owner: string;
certificate?: CertificateSDKType;
certificate: CertificateSDKType;
}
/** GenesisState defines the basic genesis state used by cert module */
export interface GenesisState {
Expand Down
16 changes: 8 additions & 8 deletions __fixtures__/output1/akash/cert/v1beta2/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@ import { isSet, DeepPartial, Exact } from "../../../helpers";
export const protobufPackage = "akash.cert.v1beta2";
/** CertificateResponse contains a single X509 certificate and its serial number */
export interface CertificateResponse {
certificate?: Certificate;
certificate: Certificate;
serial: string;
}
/** CertificateResponse contains a single X509 certificate and its serial number */
export interface CertificateResponseSDKType {
certificate?: CertificateSDKType;
certificate: CertificateSDKType;
serial: string;
}
/** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */
export interface QueryCertificatesRequest {
filter?: CertificateFilter;
pagination?: PageRequest;
filter: CertificateFilter;
pagination: PageRequest;
}
/** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */
export interface QueryCertificatesRequestSDKType {
filter?: CertificateFilterSDKType;
pagination?: PageRequestSDKType;
filter: CertificateFilterSDKType;
pagination: PageRequestSDKType;
}
/** QueryCertificatesResponse is response type for the Query/Certificates RPC method */
export interface QueryCertificatesResponse {
certificates: CertificateResponse[];
pagination?: PageResponse;
pagination: PageResponse;
}
/** QueryCertificatesResponse is response type for the Query/Certificates RPC method */
export interface QueryCertificatesResponseSDKType {
certificates: CertificateResponseSDKType[];
pagination?: PageResponseSDKType;
pagination: PageResponseSDKType;
}
function createBaseCertificateResponse(): CertificateResponse {
return {
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/akash/deployment/v1beta1/authz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export interface DepositDeploymentAuthorization {
* SpendLimit is the amount the grantee is authorized to spend from the granter's account for
* the purpose of deployment.
*/
spendLimit?: Coin | undefined;
spendLimit: Coin | undefined;
}
/**
* DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from
* the granter's account for a deployment.
*/
export interface DepositDeploymentAuthorizationSDKType {
spend_limit?: CoinSDKType | undefined;
spend_limit: CoinSDKType | undefined;
}
function createBaseDepositDeploymentAuthorization(): DepositDeploymentAuthorization {
return {
Expand Down
28 changes: 14 additions & 14 deletions __fixtures__/output1/akash/deployment/v1beta1/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,45 +48,45 @@ export function deployment_StateToJSON(object: Deployment_State): string {
}
/** MsgCreateDeployment defines an SDK message for creating deployment */
export interface MsgCreateDeployment {
id?: DeploymentID | undefined;
id: DeploymentID | undefined;
groups: GroupSpec[];
version: Uint8Array;
deposit?: Coin | undefined;
deposit: Coin | undefined;
}
/** MsgCreateDeployment defines an SDK message for creating deployment */
export interface MsgCreateDeploymentSDKType {
id?: DeploymentIDSDKType | undefined;
id: DeploymentIDSDKType | undefined;
groups: GroupSpecSDKType[];
version: Uint8Array;
deposit?: CoinSDKType | undefined;
deposit: CoinSDKType | undefined;
}
/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
export interface MsgCreateDeploymentResponse {}
/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
export interface MsgCreateDeploymentResponseSDKType {}
/** MsgDepositDeployment deposits more funds into the deposit account */
export interface MsgDepositDeployment {
id?: DeploymentID | undefined;
amount?: Coin | undefined;
id: DeploymentID | undefined;
amount: Coin | undefined;
}
/** MsgDepositDeployment deposits more funds into the deposit account */
export interface MsgDepositDeploymentSDKType {
id?: DeploymentIDSDKType | undefined;
amount?: CoinSDKType | undefined;
id: DeploymentIDSDKType | undefined;
amount: CoinSDKType | undefined;
}
/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
export interface MsgDepositDeploymentResponse {}
/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
export interface MsgDepositDeploymentResponseSDKType {}
/** MsgUpdateDeployment defines an SDK message for updating deployment */
export interface MsgUpdateDeployment {
id?: DeploymentID | undefined;
id: DeploymentID | undefined;
groups: GroupSpec[];
version: Uint8Array;
}
/** MsgUpdateDeployment defines an SDK message for updating deployment */
export interface MsgUpdateDeploymentSDKType {
id?: DeploymentIDSDKType | undefined;
id: DeploymentIDSDKType | undefined;
groups: GroupSpecSDKType[];
version: Uint8Array;
}
Expand All @@ -96,11 +96,11 @@ export interface MsgUpdateDeploymentResponse {}
export interface MsgUpdateDeploymentResponseSDKType {}
/** MsgCloseDeployment defines an SDK message for closing deployment */
export interface MsgCloseDeployment {
id?: DeploymentID | undefined;
id: DeploymentID | undefined;
}
/** MsgCloseDeployment defines an SDK message for closing deployment */
export interface MsgCloseDeploymentSDKType {
id?: DeploymentIDSDKType | undefined;
id: DeploymentIDSDKType | undefined;
}
/** MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type. */
export interface MsgCloseDeploymentResponse {}
Expand All @@ -118,14 +118,14 @@ export interface DeploymentIDSDKType {
}
/** Deployment stores deploymentID, state and version details */
export interface Deployment {
deploymentId?: DeploymentID | undefined;
deploymentId: DeploymentID | undefined;
state: Deployment_State;
version: Uint8Array;
createdAt: Long;
}
/** Deployment stores deploymentID, state and version details */
export interface DeploymentSDKType {
deployment_id?: DeploymentIDSDKType | undefined;
deployment_id: DeploymentIDSDKType | undefined;
state: Deployment_State;
version: Uint8Array;
created_at: Long;
Expand Down
8 changes: 4 additions & 4 deletions __fixtures__/output1/akash/deployment/v1beta1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ import { isSet, Exact } from "../../../helpers";
export const protobufPackage = "akash.deployment.v1beta1";
/** GenesisDeployment defines the basic genesis state used by deployment module */
export interface GenesisDeployment {
deployment?: Deployment | undefined;
deployment: Deployment | undefined;
groups: Group[];
}
/** GenesisDeployment defines the basic genesis state used by deployment module */
export interface GenesisDeploymentSDKType {
deployment?: DeploymentSDKType | undefined;
deployment: DeploymentSDKType | undefined;
groups: GroupSDKType[];
}
/** GenesisState stores slice of genesis deployment instance */
export interface GenesisState {
deployments: GenesisDeployment[];
params?: Params | undefined;
params: Params | undefined;
}
/** GenesisState stores slice of genesis deployment instance */
export interface GenesisStateSDKType {
deployments: GenesisDeploymentSDKType[];
params?: ParamsSDKType | undefined;
params: ParamsSDKType | undefined;
}
function createBaseGenesisDeployment(): GenesisDeployment {
return {
Expand Down
Loading

0 comments on commit 1de3ab8

Please sign in to comment.