Skip to content

Commit

Permalink
feat: Rebuild for upstream Protobuf changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Aug 3, 2023
1 parent ed6c33d commit 10d2f69
Show file tree
Hide file tree
Showing 29 changed files with 121 additions and 231 deletions.
3 changes: 1 addition & 2 deletions cheqd/did/v1/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ export const KeyValuePair = {
},

create<I extends Exact<DeepPartial<KeyValuePair>, I>>(base?: I): KeyValuePair {
return KeyValuePair.fromPartial(base ?? {});
return KeyValuePair.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<KeyValuePair>, I>>(object: I): KeyValuePair {
const message = createBaseKeyValuePair();
message.key = object.key ?? "";
Expand Down
9 changes: 3 additions & 6 deletions cheqd/did/v1/did.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,8 @@ export const Did = {
},

create<I extends Exact<DeepPartial<Did>, I>>(base?: I): Did {
return Did.fromPartial(base ?? {});
return Did.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<Did>, I>>(object: I): Did {
const message = createBaseDid();
message.context = object.context?.map((e) => e) || [];
Expand Down Expand Up @@ -379,9 +378,8 @@ export const VerificationMethod = {
},

create<I extends Exact<DeepPartial<VerificationMethod>, I>>(base?: I): VerificationMethod {
return VerificationMethod.fromPartial(base ?? {});
return VerificationMethod.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<VerificationMethod>, I>>(object: I): VerificationMethod {
const message = createBaseVerificationMethod();
message.id = object.id ?? "";
Expand Down Expand Up @@ -471,9 +469,8 @@ export const Service = {
},

create<I extends Exact<DeepPartial<Service>, I>>(base?: I): Service {
return Service.fromPartial(base ?? {});
return Service.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<Service>, I>>(object: I): Service {
const message = createBaseService();
message.id = object.id ?? "";
Expand Down
3 changes: 1 addition & 2 deletions cheqd/did/v1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ export const GenesisState = {
},

create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
return GenesisState.fromPartial(base ?? {});
return GenesisState.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
const message = createBaseGenesisState();
message.didNamespace = object.didNamespace ?? "";
Expand Down
6 changes: 2 additions & 4 deletions cheqd/did/v1/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ export const QueryGetDidRequest = {
},

create<I extends Exact<DeepPartial<QueryGetDidRequest>, I>>(base?: I): QueryGetDidRequest {
return QueryGetDidRequest.fromPartial(base ?? {});
return QueryGetDidRequest.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryGetDidRequest>, I>>(object: I): QueryGetDidRequest {
const message = createBaseQueryGetDidRequest();
message.id = object.id ?? "";
Expand Down Expand Up @@ -135,9 +134,8 @@ export const QueryGetDidResponse = {
},

create<I extends Exact<DeepPartial<QueryGetDidResponse>, I>>(base?: I): QueryGetDidResponse {
return QueryGetDidResponse.fromPartial(base ?? {});
return QueryGetDidResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryGetDidResponse>, I>>(object: I): QueryGetDidResponse {
const message = createBaseQueryGetDidResponse();
message.did = (object.did !== undefined && object.did !== null) ? Did.fromPartial(object.did) : undefined;
Expand Down
6 changes: 2 additions & 4 deletions cheqd/did/v1/stateValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ export const StateValue = {
},

create<I extends Exact<DeepPartial<StateValue>, I>>(base?: I): StateValue {
return StateValue.fromPartial(base ?? {});
return StateValue.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<StateValue>, I>>(object: I): StateValue {
const message = createBaseStateValue();
message.data = (object.data !== undefined && object.data !== null) ? Any.fromPartial(object.data) : undefined;
Expand Down Expand Up @@ -203,9 +202,8 @@ export const Metadata = {
},

create<I extends Exact<DeepPartial<Metadata>, I>>(base?: I): Metadata {
return Metadata.fromPartial(base ?? {});
return Metadata.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<Metadata>, I>>(object: I): Metadata {
const message = createBaseMetadata();
message.created = object.created ?? "";
Expand Down
30 changes: 10 additions & 20 deletions cheqd/did/v1/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ export const MsgCreateDid = {
},

create<I extends Exact<DeepPartial<MsgCreateDid>, I>>(base?: I): MsgCreateDid {
return MsgCreateDid.fromPartial(base ?? {});
return MsgCreateDid.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgCreateDid>, I>>(object: I): MsgCreateDid {
const message = createBaseMsgCreateDid();
message.payload = (object.payload !== undefined && object.payload !== null)
Expand Down Expand Up @@ -214,9 +213,8 @@ export const MsgUpdateDid = {
},

create<I extends Exact<DeepPartial<MsgUpdateDid>, I>>(base?: I): MsgUpdateDid {
return MsgUpdateDid.fromPartial(base ?? {});
return MsgUpdateDid.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgUpdateDid>, I>>(object: I): MsgUpdateDid {
const message = createBaseMsgUpdateDid();
message.payload = (object.payload !== undefined && object.payload !== null)
Expand Down Expand Up @@ -291,9 +289,8 @@ export const MsgDeactivateDid = {
},

create<I extends Exact<DeepPartial<MsgDeactivateDid>, I>>(base?: I): MsgDeactivateDid {
return MsgDeactivateDid.fromPartial(base ?? {});
return MsgDeactivateDid.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgDeactivateDid>, I>>(object: I): MsgDeactivateDid {
const message = createBaseMsgDeactivateDid();
message.payload = (object.payload !== undefined && object.payload !== null)
Expand Down Expand Up @@ -368,9 +365,8 @@ export const SignInfo = {
},

create<I extends Exact<DeepPartial<SignInfo>, I>>(base?: I): SignInfo {
return SignInfo.fromPartial(base ?? {});
return SignInfo.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<SignInfo>, I>>(object: I): SignInfo {
const message = createBaseSignInfo();
message.verificationMethodId = object.verificationMethodId ?? "";
Expand Down Expand Up @@ -427,9 +423,8 @@ export const MsgDeactivateDidPayload = {
},

create<I extends Exact<DeepPartial<MsgDeactivateDidPayload>, I>>(base?: I): MsgDeactivateDidPayload {
return MsgDeactivateDidPayload.fromPartial(base ?? {});
return MsgDeactivateDidPayload.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgDeactivateDidPayload>, I>>(object: I): MsgDeactivateDidPayload {
const message = createBaseMsgDeactivateDidPayload();
message.id = object.id ?? "";
Expand Down Expand Up @@ -501,9 +496,8 @@ export const MsgDeactivateDidResponse = {
},

create<I extends Exact<DeepPartial<MsgDeactivateDidResponse>, I>>(base?: I): MsgDeactivateDidResponse {
return MsgDeactivateDidResponse.fromPartial(base ?? {});
return MsgDeactivateDidResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgDeactivateDidResponse>, I>>(object: I): MsgDeactivateDidResponse {
const message = createBaseMsgDeactivateDidResponse();
message.did = (object.did !== undefined && object.did !== null) ? Did.fromPartial(object.did) : undefined;
Expand Down Expand Up @@ -722,9 +716,8 @@ export const MsgCreateDidPayload = {
},

create<I extends Exact<DeepPartial<MsgCreateDidPayload>, I>>(base?: I): MsgCreateDidPayload {
return MsgCreateDidPayload.fromPartial(base ?? {});
return MsgCreateDidPayload.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgCreateDidPayload>, I>>(object: I): MsgCreateDidPayload {
const message = createBaseMsgCreateDidPayload();
message.context = object.context?.map((e) => e) || [];
Expand Down Expand Up @@ -790,9 +783,8 @@ export const MsgCreateDidResponse = {
},

create<I extends Exact<DeepPartial<MsgCreateDidResponse>, I>>(base?: I): MsgCreateDidResponse {
return MsgCreateDidResponse.fromPartial(base ?? {});
return MsgCreateDidResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgCreateDidResponse>, I>>(object: I): MsgCreateDidResponse {
const message = createBaseMsgCreateDidResponse();
message.id = object.id ?? "";
Expand Down Expand Up @@ -1023,9 +1015,8 @@ export const MsgUpdateDidPayload = {
},

create<I extends Exact<DeepPartial<MsgUpdateDidPayload>, I>>(base?: I): MsgUpdateDidPayload {
return MsgUpdateDidPayload.fromPartial(base ?? {});
return MsgUpdateDidPayload.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgUpdateDidPayload>, I>>(object: I): MsgUpdateDidPayload {
const message = createBaseMsgUpdateDidPayload();
message.context = object.context?.map((e) => e) || [];
Expand Down Expand Up @@ -1092,9 +1083,8 @@ export const MsgUpdateDidResponse = {
},

create<I extends Exact<DeepPartial<MsgUpdateDidResponse>, I>>(base?: I): MsgUpdateDidResponse {
return MsgUpdateDidResponse.fromPartial(base ?? {});
return MsgUpdateDidResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<MsgUpdateDidResponse>, I>>(object: I): MsgUpdateDidResponse {
const message = createBaseMsgUpdateDidResponse();
message.id = object.id ?? "";
Expand Down
15 changes: 5 additions & 10 deletions cheqd/did/v2/diddoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,8 @@ export const DidDoc = {
},

create<I extends Exact<DeepPartial<DidDoc>, I>>(base?: I): DidDoc {
return DidDoc.fromPartial(base ?? {});
return DidDoc.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<DidDoc>, I>>(object: I): DidDoc {
const message = createBaseDidDoc();
message.context = object.context?.map((e) => e) || [];
Expand Down Expand Up @@ -484,9 +483,8 @@ export const VerificationMethod = {
},

create<I extends Exact<DeepPartial<VerificationMethod>, I>>(base?: I): VerificationMethod {
return VerificationMethod.fromPartial(base ?? {});
return VerificationMethod.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<VerificationMethod>, I>>(object: I): VerificationMethod {
const message = createBaseVerificationMethod();
message.id = object.id ?? "";
Expand Down Expand Up @@ -575,9 +573,8 @@ export const Service = {
},

create<I extends Exact<DeepPartial<Service>, I>>(base?: I): Service {
return Service.fromPartial(base ?? {});
return Service.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<Service>, I>>(object: I): Service {
const message = createBaseService();
message.id = object.id ?? "";
Expand Down Expand Up @@ -651,9 +648,8 @@ export const DidDocWithMetadata = {
},

create<I extends Exact<DeepPartial<DidDocWithMetadata>, I>>(base?: I): DidDocWithMetadata {
return DidDocWithMetadata.fromPartial(base ?? {});
return DidDocWithMetadata.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<DidDocWithMetadata>, I>>(object: I): DidDocWithMetadata {
const message = createBaseDidDocWithMetadata();
message.didDoc = (object.didDoc !== undefined && object.didDoc !== null)
Expand Down Expand Up @@ -793,9 +789,8 @@ export const Metadata = {
},

create<I extends Exact<DeepPartial<Metadata>, I>>(base?: I): Metadata {
return Metadata.fromPartial(base ?? {});
return Metadata.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<Metadata>, I>>(object: I): Metadata {
const message = createBaseMetadata();
message.created = object.created ?? undefined;
Expand Down
3 changes: 1 addition & 2 deletions cheqd/did/v2/fee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ export const FeeParams = {
},

create<I extends Exact<DeepPartial<FeeParams>, I>>(base?: I): FeeParams {
return FeeParams.fromPartial(base ?? {});
return FeeParams.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<FeeParams>, I>>(object: I): FeeParams {
const message = createBaseFeeParams();
message.createDid = (object.createDid !== undefined && object.createDid !== null)
Expand Down
6 changes: 2 additions & 4 deletions cheqd/did/v2/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ export const DidDocVersionSet = {
},

create<I extends Exact<DeepPartial<DidDocVersionSet>, I>>(base?: I): DidDocVersionSet {
return DidDocVersionSet.fromPartial(base ?? {});
return DidDocVersionSet.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<DidDocVersionSet>, I>>(object: I): DidDocVersionSet {
const message = createBaseDidDocVersionSet();
message.latestVersion = object.latestVersion ?? "";
Expand Down Expand Up @@ -186,9 +185,8 @@ export const GenesisState = {
},

create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
return GenesisState.fromPartial(base ?? {});
return GenesisState.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
const message = createBaseGenesisState();
message.didNamespace = object.didNamespace ?? "";
Expand Down
18 changes: 6 additions & 12 deletions cheqd/did/v2/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ export const QueryDidDocRequest = {
},

create<I extends Exact<DeepPartial<QueryDidDocRequest>, I>>(base?: I): QueryDidDocRequest {
return QueryDidDocRequest.fromPartial(base ?? {});
return QueryDidDocRequest.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryDidDocRequest>, I>>(object: I): QueryDidDocRequest {
const message = createBaseQueryDidDocRequest();
message.id = object.id ?? "";
Expand Down Expand Up @@ -194,9 +193,8 @@ export const QueryDidDocResponse = {
},

create<I extends Exact<DeepPartial<QueryDidDocResponse>, I>>(base?: I): QueryDidDocResponse {
return QueryDidDocResponse.fromPartial(base ?? {});
return QueryDidDocResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryDidDocResponse>, I>>(object: I): QueryDidDocResponse {
const message = createBaseQueryDidDocResponse();
message.value = (object.value !== undefined && object.value !== null)
Expand Down Expand Up @@ -270,9 +268,8 @@ export const QueryDidDocVersionRequest = {
},

create<I extends Exact<DeepPartial<QueryDidDocVersionRequest>, I>>(base?: I): QueryDidDocVersionRequest {
return QueryDidDocVersionRequest.fromPartial(base ?? {});
return QueryDidDocVersionRequest.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryDidDocVersionRequest>, I>>(object: I): QueryDidDocVersionRequest {
const message = createBaseQueryDidDocVersionRequest();
message.id = object.id ?? "";
Expand Down Expand Up @@ -329,9 +326,8 @@ export const QueryDidDocVersionResponse = {
},

create<I extends Exact<DeepPartial<QueryDidDocVersionResponse>, I>>(base?: I): QueryDidDocVersionResponse {
return QueryDidDocVersionResponse.fromPartial(base ?? {});
return QueryDidDocVersionResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryDidDocVersionResponse>, I>>(object: I): QueryDidDocVersionResponse {
const message = createBaseQueryDidDocVersionResponse();
message.value = (object.value !== undefined && object.value !== null)
Expand Down Expand Up @@ -407,9 +403,8 @@ export const QueryAllDidDocVersionsMetadataRequest = {
create<I extends Exact<DeepPartial<QueryAllDidDocVersionsMetadataRequest>, I>>(
base?: I,
): QueryAllDidDocVersionsMetadataRequest {
return QueryAllDidDocVersionsMetadataRequest.fromPartial(base ?? {});
return QueryAllDidDocVersionsMetadataRequest.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryAllDidDocVersionsMetadataRequest>, I>>(
object: I,
): QueryAllDidDocVersionsMetadataRequest {
Expand Down Expand Up @@ -488,9 +483,8 @@ export const QueryAllDidDocVersionsMetadataResponse = {
create<I extends Exact<DeepPartial<QueryAllDidDocVersionsMetadataResponse>, I>>(
base?: I,
): QueryAllDidDocVersionsMetadataResponse {
return QueryAllDidDocVersionsMetadataResponse.fromPartial(base ?? {});
return QueryAllDidDocVersionsMetadataResponse.fromPartial(base ?? ({} as any));
},

fromPartial<I extends Exact<DeepPartial<QueryAllDidDocVersionsMetadataResponse>, I>>(
object: I,
): QueryAllDidDocVersionsMetadataResponse {
Expand Down
Loading

0 comments on commit 10d2f69

Please sign in to comment.