Skip to content

Commit

Permalink
regen to fix output1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Aug 30, 2023
1 parent ecae5cc commit 70a5df1
Show file tree
Hide file tree
Showing 339 changed files with 2,180 additions and 2,218 deletions.
3 changes: 0 additions & 3 deletions __fixtures__/output1/google/protobuf/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const protobufPackage = "google.protobuf";
* }
*/
export interface Any {
$typeUrl?: string;
/**
* A URL/resource name that uniquely identifies the type of the serialized
* protocol buffer message. This string must contain at least
Expand Down Expand Up @@ -199,13 +198,11 @@ export interface Any {
* }
*/
export interface AnySDKType {
$typeUrl?: string;
type_url: string;
value: Uint8Array;
}
function createBaseAny(): Any {
return {
$typeUrl: "/google.protobuf.Any",
typeUrl: "",
value: new Uint8Array()
};
Expand Down
18 changes: 9 additions & 9 deletions __fixtures__/output2/akash/audit/v1beta1/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
import { Attribute } from "../../base/v1beta1/attribute";
import * as _m0 from "protobufjs/minimal";
import { isSet, Rpc } from "../../../helpers";
import { isSet, DeepPartial, Rpc } from "../../../helpers";
export const protobufPackage = "akash.audit.v1beta1";
/** Provider stores owner auditor and attributes details */
export interface Provider {
Expand Down Expand Up @@ -102,7 +102,7 @@ export const Provider = {
}
return obj;
},
fromPartial(object: Partial<Provider>): Provider {
fromPartial(object: DeepPartial<Provider>): Provider {
const message = createBaseProvider();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -171,7 +171,7 @@ export const AuditedAttributes = {
}
return obj;
},
fromPartial(object: Partial<AuditedAttributes>): AuditedAttributes {
fromPartial(object: DeepPartial<AuditedAttributes>): AuditedAttributes {
const message = createBaseAuditedAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -222,7 +222,7 @@ export const AttributesResponse = {
}
return obj;
},
fromPartial(object: Partial<AttributesResponse>): AttributesResponse {
fromPartial(object: DeepPartial<AttributesResponse>): AttributesResponse {
const message = createBaseAttributesResponse();
message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
return message;
Expand Down Expand Up @@ -284,7 +284,7 @@ export const AttributesFilters = {
}
return obj;
},
fromPartial(object: Partial<AttributesFilters>): AttributesFilters {
fromPartial(object: DeepPartial<AttributesFilters>): AttributesFilters {
const message = createBaseAttributesFilters();
message.auditors = object.auditors?.map(e => e) || [];
message.owners = object.owners?.map(e => e) || [];
Expand Down Expand Up @@ -352,7 +352,7 @@ export const MsgSignProviderAttributes = {
}
return obj;
},
fromPartial(object: Partial<MsgSignProviderAttributes>): MsgSignProviderAttributes {
fromPartial(object: DeepPartial<MsgSignProviderAttributes>): MsgSignProviderAttributes {
const message = createBaseMsgSignProviderAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -388,7 +388,7 @@ export const MsgSignProviderAttributesResponse = {
const obj: any = {};
return obj;
},
fromPartial(_: Partial<MsgSignProviderAttributesResponse>): MsgSignProviderAttributesResponse {
fromPartial(_: DeepPartial<MsgSignProviderAttributesResponse>): MsgSignProviderAttributesResponse {
const message = createBaseMsgSignProviderAttributesResponse();
return message;
}
Expand Down Expand Up @@ -454,7 +454,7 @@ export const MsgDeleteProviderAttributes = {
}
return obj;
},
fromPartial(object: Partial<MsgDeleteProviderAttributes>): MsgDeleteProviderAttributes {
fromPartial(object: DeepPartial<MsgDeleteProviderAttributes>): MsgDeleteProviderAttributes {
const message = createBaseMsgDeleteProviderAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -490,7 +490,7 @@ export const MsgDeleteProviderAttributesResponse = {
const obj: any = {};
return obj;
},
fromPartial(_: Partial<MsgDeleteProviderAttributesResponse>): MsgDeleteProviderAttributesResponse {
fromPartial(_: DeepPartial<MsgDeleteProviderAttributesResponse>): MsgDeleteProviderAttributesResponse {
const message = createBaseMsgDeleteProviderAttributesResponse();
return message;
}
Expand Down
18 changes: 9 additions & 9 deletions __fixtures__/output2/akash/audit/v1beta2/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
import { Attribute } from "../../base/v1beta2/attribute";
import * as _m0 from "protobufjs/minimal";
import { isSet, Rpc } from "../../../helpers";
import { isSet, DeepPartial, Rpc } from "../../../helpers";
export const protobufPackage = "akash.audit.v1beta2";
/** Provider stores owner auditor and attributes details */
export interface Provider {
Expand Down Expand Up @@ -102,7 +102,7 @@ export const Provider = {
}
return obj;
},
fromPartial(object: Partial<Provider>): Provider {
fromPartial(object: DeepPartial<Provider>): Provider {
const message = createBaseProvider();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -171,7 +171,7 @@ export const AuditedAttributes = {
}
return obj;
},
fromPartial(object: Partial<AuditedAttributes>): AuditedAttributes {
fromPartial(object: DeepPartial<AuditedAttributes>): AuditedAttributes {
const message = createBaseAuditedAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -222,7 +222,7 @@ export const AttributesResponse = {
}
return obj;
},
fromPartial(object: Partial<AttributesResponse>): AttributesResponse {
fromPartial(object: DeepPartial<AttributesResponse>): AttributesResponse {
const message = createBaseAttributesResponse();
message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
return message;
Expand Down Expand Up @@ -284,7 +284,7 @@ export const AttributesFilters = {
}
return obj;
},
fromPartial(object: Partial<AttributesFilters>): AttributesFilters {
fromPartial(object: DeepPartial<AttributesFilters>): AttributesFilters {
const message = createBaseAttributesFilters();
message.auditors = object.auditors?.map(e => e) || [];
message.owners = object.owners?.map(e => e) || [];
Expand Down Expand Up @@ -352,7 +352,7 @@ export const MsgSignProviderAttributes = {
}
return obj;
},
fromPartial(object: Partial<MsgSignProviderAttributes>): MsgSignProviderAttributes {
fromPartial(object: DeepPartial<MsgSignProviderAttributes>): MsgSignProviderAttributes {
const message = createBaseMsgSignProviderAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -388,7 +388,7 @@ export const MsgSignProviderAttributesResponse = {
const obj: any = {};
return obj;
},
fromPartial(_: Partial<MsgSignProviderAttributesResponse>): MsgSignProviderAttributesResponse {
fromPartial(_: DeepPartial<MsgSignProviderAttributesResponse>): MsgSignProviderAttributesResponse {
const message = createBaseMsgSignProviderAttributesResponse();
return message;
}
Expand Down Expand Up @@ -454,7 +454,7 @@ export const MsgDeleteProviderAttributes = {
}
return obj;
},
fromPartial(object: Partial<MsgDeleteProviderAttributes>): MsgDeleteProviderAttributes {
fromPartial(object: DeepPartial<MsgDeleteProviderAttributes>): MsgDeleteProviderAttributes {
const message = createBaseMsgDeleteProviderAttributes();
message.owner = object.owner ?? "";
message.auditor = object.auditor ?? "";
Expand Down Expand Up @@ -490,7 +490,7 @@ export const MsgDeleteProviderAttributesResponse = {
const obj: any = {};
return obj;
},
fromPartial(_: Partial<MsgDeleteProviderAttributesResponse>): MsgDeleteProviderAttributesResponse {
fromPartial(_: DeepPartial<MsgDeleteProviderAttributesResponse>): MsgDeleteProviderAttributesResponse {
const message = createBaseMsgDeleteProviderAttributesResponse();
return message;
}
Expand Down
3 changes: 2 additions & 1 deletion __fixtures__/output2/akash/audit/v1beta2/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* eslint-disable */
import { AuditedAttributes } from "./audit";
import * as _m0 from "protobufjs/minimal";
import { DeepPartial } from "../../../helpers";
export const protobufPackage = "akash.audit.v1beta2";
/** GenesisState defines the basic genesis state used by audit module */
export interface GenesisState {
Expand Down Expand Up @@ -50,7 +51,7 @@ export const GenesisState = {
}
return obj;
},
fromPartial(object: Partial<GenesisState>): GenesisState {
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
const message = createBaseGenesisState();
message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
return message;
Expand Down
14 changes: 7 additions & 7 deletions __fixtures__/output2/akash/audit/v1beta2/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
import { Provider } from "./audit";
import * as _m0 from "protobufjs/minimal";
import { isSet, Rpc } from "../../../helpers";
import { isSet, DeepPartial, Rpc } from "../../../helpers";
export const protobufPackage = "akash.audit.v1beta2";
/** QueryProvidersResponse is response type for the Query/Providers RPC method */
export interface QueryProvidersResponse {
Expand Down Expand Up @@ -86,7 +86,7 @@ export const QueryProvidersResponse = {
message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
return obj;
},
fromPartial(object: Partial<QueryProvidersResponse>): QueryProvidersResponse {
fromPartial(object: DeepPartial<QueryProvidersResponse>): QueryProvidersResponse {
const message = createBaseQueryProvidersResponse();
message.providers = object.providers?.map(e => Provider.fromPartial(e)) || [];
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
Expand Down Expand Up @@ -141,7 +141,7 @@ export const QueryProviderRequest = {
message.owner !== undefined && (obj.owner = message.owner);
return obj;
},
fromPartial(object: Partial<QueryProviderRequest>): QueryProviderRequest {
fromPartial(object: DeepPartial<QueryProviderRequest>): QueryProviderRequest {
const message = createBaseQueryProviderRequest();
message.auditor = object.auditor ?? "";
message.owner = object.owner ?? "";
Expand Down Expand Up @@ -187,7 +187,7 @@ export const QueryAllProvidersAttributesRequest = {
message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
return obj;
},
fromPartial(object: Partial<QueryAllProvidersAttributesRequest>): QueryAllProvidersAttributesRequest {
fromPartial(object: DeepPartial<QueryAllProvidersAttributesRequest>): QueryAllProvidersAttributesRequest {
const message = createBaseQueryAllProvidersAttributesRequest();
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
return message;
Expand Down Expand Up @@ -241,7 +241,7 @@ export const QueryProviderAttributesRequest = {
message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
return obj;
},
fromPartial(object: Partial<QueryProviderAttributesRequest>): QueryProviderAttributesRequest {
fromPartial(object: DeepPartial<QueryProviderAttributesRequest>): QueryProviderAttributesRequest {
const message = createBaseQueryProviderAttributesRequest();
message.owner = object.owner ?? "";
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
Expand Down Expand Up @@ -296,7 +296,7 @@ export const QueryProviderAuditorRequest = {
message.owner !== undefined && (obj.owner = message.owner);
return obj;
},
fromPartial(object: Partial<QueryProviderAuditorRequest>): QueryProviderAuditorRequest {
fromPartial(object: DeepPartial<QueryProviderAuditorRequest>): QueryProviderAuditorRequest {
const message = createBaseQueryProviderAuditorRequest();
message.auditor = object.auditor ?? "";
message.owner = object.owner ?? "";
Expand Down Expand Up @@ -351,7 +351,7 @@ export const QueryAuditorAttributesRequest = {
message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
return obj;
},
fromPartial(object: Partial<QueryAuditorAttributesRequest>): QueryAuditorAttributesRequest {
fromPartial(object: DeepPartial<QueryAuditorAttributesRequest>): QueryAuditorAttributesRequest {
const message = createBaseQueryAuditorAttributesRequest();
message.auditor = object.auditor ?? "";
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
Expand Down
8 changes: 4 additions & 4 deletions __fixtures__/output2/akash/base/v1beta1/attribute.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ts-nocheck
/* eslint-disable */
import * as _m0 from "protobufjs/minimal";
import { isSet } from "../../../helpers";
import { isSet, DeepPartial } from "../../../helpers";
export const protobufPackage = "akash.base.v1beta1";
/** Attribute represents key value pair */
export interface Attribute {
Expand Down Expand Up @@ -75,7 +75,7 @@ export const Attribute = {
message.value !== undefined && (obj.value = message.value);
return obj;
},
fromPartial(object: Partial<Attribute>): Attribute {
fromPartial(object: DeepPartial<Attribute>): Attribute {
const message = createBaseAttribute();
message.key = object.key ?? "";
message.value = object.value ?? "";
Expand Down Expand Up @@ -138,7 +138,7 @@ export const SignedBy = {
}
return obj;
},
fromPartial(object: Partial<SignedBy>): SignedBy {
fromPartial(object: DeepPartial<SignedBy>): SignedBy {
const message = createBaseSignedBy();
message.allOf = object.allOf?.map(e => e) || [];
message.anyOf = object.anyOf?.map(e => e) || [];
Expand Down Expand Up @@ -197,7 +197,7 @@ export const PlacementRequirements = {
}
return obj;
},
fromPartial(object: Partial<PlacementRequirements>): PlacementRequirements {
fromPartial(object: DeepPartial<PlacementRequirements>): PlacementRequirements {
const message = createBasePlacementRequirements();
message.signedBy = object.signedBy !== undefined && object.signedBy !== null ? SignedBy.fromPartial(object.signedBy) : undefined;
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output2/akash/base/v1beta1/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ts-nocheck
/* eslint-disable */
import * as _m0 from "protobufjs/minimal";
import { isSet } from "../../../helpers";
import { isSet, DeepPartial } from "../../../helpers";
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 @@ -79,7 +79,7 @@ export const Endpoint = {
message.kind !== undefined && (obj.kind = endpoint_KindToJSON(message.kind));
return obj;
},
fromPartial(object: Partial<Endpoint>): Endpoint {
fromPartial(object: DeepPartial<Endpoint>): Endpoint {
const message = createBaseEndpoint();
message.kind = object.kind ?? 0;
return message;
Expand Down
10 changes: 5 additions & 5 deletions __fixtures__/output2/akash/base/v1beta1/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ResourceValue } from "./resourcevalue";
import { Attribute } from "./attribute";
import { Endpoint } from "./endpoint";
import * as _m0 from "protobufjs/minimal";
import { isSet } from "../../../helpers";
import { isSet, DeepPartial } from "../../../helpers";
export const protobufPackage = "akash.base.v1beta1";
/** CPU stores resource units and cpu config attributes */
export interface CPU {
Expand Down Expand Up @@ -83,7 +83,7 @@ export const CPU = {
}
return obj;
},
fromPartial(object: Partial<CPU>): CPU {
fromPartial(object: DeepPartial<CPU>): CPU {
const message = createBaseCPU();
message.units = object.units !== undefined && object.units !== null ? ResourceValue.fromPartial(object.units) : undefined;
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
Expand Down Expand Up @@ -142,7 +142,7 @@ export const Memory = {
}
return obj;
},
fromPartial(object: Partial<Memory>): Memory {
fromPartial(object: DeepPartial<Memory>): Memory {
const message = createBaseMemory();
message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
Expand Down Expand Up @@ -201,7 +201,7 @@ export const Storage = {
}
return obj;
},
fromPartial(object: Partial<Storage>): Storage {
fromPartial(object: DeepPartial<Storage>): Storage {
const message = createBaseStorage();
message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
Expand Down Expand Up @@ -278,7 +278,7 @@ export const ResourceUnits = {
}
return obj;
},
fromPartial(object: Partial<ResourceUnits>): ResourceUnits {
fromPartial(object: DeepPartial<ResourceUnits>): ResourceUnits {
const message = createBaseResourceUnits();
message.cpu = object.cpu !== undefined && object.cpu !== null ? CPU.fromPartial(object.cpu) : undefined;
message.memory = object.memory !== undefined && object.memory !== null ? Memory.fromPartial(object.memory) : undefined;
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output2/akash/base/v1beta1/resourcevalue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ts-nocheck
/* eslint-disable */
import * as _m0 from "protobufjs/minimal";
import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers";
import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers";
export const protobufPackage = "akash.base.v1beta1";
/** Unit stores cpu, memory and storage metrics */
export interface ResourceValue {
Expand Down Expand Up @@ -46,7 +46,7 @@ export const ResourceValue = {
message.val !== undefined && (obj.val = base64FromBytes(message.val !== undefined ? message.val : new Uint8Array()));
return obj;
},
fromPartial(object: Partial<ResourceValue>): ResourceValue {
fromPartial(object: DeepPartial<ResourceValue>): ResourceValue {
const message = createBaseResourceValue();
message.val = object.val ?? new Uint8Array();
return message;
Expand Down
Loading

0 comments on commit 70a5df1

Please sign in to comment.