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

fixed incorrect creating default function #444

Merged
merged 2 commits into from
Aug 15, 2023
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __fixtures__/output1/cosmos/tx/signing/v1beta1/signing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const SignatureDescriptors = {
function createBaseSignatureDescriptor(): SignatureDescriptor {
return {
publicKey: Any.fromPartial({}),
data: Data.fromPartial({}),
data: SignatureDescriptor_Data.fromPartial({}),
sequence: Long.UZERO
};
}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output1/google/api/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ function createBaseDistribution(): Distribution {
count: Long.ZERO,
mean: 0,
sumOfSquaredDeviation: 0,
range: Range.fromPartial({}),
bucketOptions: BucketOptions.fromPartial({}),
range: Distribution_Range.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
bucketCounts: [],
exemplars: []
};
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output1/google/api/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function createBaseMetricDescriptor(): MetricDescriptor {
unit: "",
description: "",
displayName: "",
metadata: MetricDescriptorMetadata.fromPartial({}),
metadata: MetricDescriptor_MetricDescriptorMetadata.fromPartial({}),
launchStage: 0,
monitoredResourceTypes: []
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function createBaseCheckResponse(): CheckResponse {
checkErrors: [],
serviceConfigId: "",
serviceRolloutId: "",
checkInfo: CheckInfo.fromPartial({})
checkInfo: CheckResponse_CheckInfo.fromPartial({})
};
}
export const CheckResponse = {
Expand Down Expand Up @@ -457,7 +457,7 @@ export const CheckResponse = {
function createBaseCheckResponse_CheckInfo(): CheckResponse_CheckInfo {
return {
unusedArguments: [],
consumerInfo: ConsumerInfo.fromPartial({})
consumerInfo: CheckResponse_ConsumerInfo.fromPartial({})
};
}
export const CheckResponse_CheckInfo = {
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output1/google/logging/v2/logging_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function createBaseLogMetric(): LogMetric {
metricDescriptor: MetricDescriptor.fromPartial({}),
valueExtractor: "",
labelExtractors: {},
bucketOptions: BucketOptions.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
createTime: new Date(),
updateTime: new Date(),
version: 0
Expand Down
16 changes: 8 additions & 8 deletions __fixtures__/output1/google/rpc/context/attribute_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,13 @@ export interface AttributeContext_ResourceSDKType {
}
function createBaseAttributeContext(): AttributeContext {
return {
origin: Peer.fromPartial({}),
source: Peer.fromPartial({}),
destination: Peer.fromPartial({}),
request: Request.fromPartial({}),
response: Response.fromPartial({}),
resource: Resource.fromPartial({}),
api: Api.fromPartial({}),
origin: AttributeContext_Peer.fromPartial({}),
source: AttributeContext_Peer.fromPartial({}),
destination: AttributeContext_Peer.fromPartial({}),
request: AttributeContext_Request.fromPartial({}),
response: AttributeContext_Response.fromPartial({}),
resource: AttributeContext_Resource.fromPartial({}),
api: AttributeContext_Api.fromPartial({}),
extensions: []
};
}
Expand Down Expand Up @@ -1169,7 +1169,7 @@ function createBaseAttributeContext_Request(): AttributeContext_Request {
size: Long.ZERO,
protocol: "",
reason: "",
auth: Auth.fromPartial({})
auth: AttributeContext_Auth.fromPartial({})
};
}
export const AttributeContext_Request = {
Expand Down
6 changes: 3 additions & 3 deletions __fixtures__/output1/ibc/core/types/v1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export interface GenesisStateSDKType {
}
function createBaseGenesisState(): GenesisState {
return {
clientGenesis: GenesisState.fromPartial({}),
connectionGenesis: GenesisState.fromPartial({}),
channelGenesis: GenesisState.fromPartial({})
clientGenesis: GenesisState1.fromPartial({}),
connectionGenesis: GenesisState2.fromPartial({}),
channelGenesis: GenesisState3.fromPartial({})
};
}
export const GenesisState = {
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output2/cosmos/tx/signing/v1beta1/signing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const SignatureDescriptors = {
function createBaseSignatureDescriptor(): SignatureDescriptor {
return {
publicKey: Any.fromPartial({}),
data: Data.fromPartial({}),
data: SignatureDescriptor_Data.fromPartial({}),
sequence: Long.UZERO
};
}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/output2/google/api/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ function createBaseDistribution(): Distribution {
count: Long.ZERO,
mean: 0,
sumOfSquaredDeviation: 0,
range: Range.fromPartial({}),
bucketOptions: BucketOptions.fromPartial({}),
range: Distribution_Range.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
bucketCounts: [],
exemplars: []
};
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output2/google/api/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function createBaseMetricDescriptor(): MetricDescriptor {
unit: "",
description: "",
displayName: "",
metadata: MetricDescriptorMetadata.fromPartial({}),
metadata: MetricDescriptor_MetricDescriptorMetadata.fromPartial({}),
launchStage: 0,
monitoredResourceTypes: []
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function createBaseCheckResponse(): CheckResponse {
checkErrors: [],
serviceConfigId: "",
serviceRolloutId: "",
checkInfo: CheckInfo.fromPartial({})
checkInfo: CheckResponse_CheckInfo.fromPartial({})
};
}
export const CheckResponse = {
Expand Down Expand Up @@ -377,7 +377,7 @@ export const CheckResponse = {
function createBaseCheckResponse_CheckInfo(): CheckResponse_CheckInfo {
return {
unusedArguments: [],
consumerInfo: ConsumerInfo.fromPartial({})
consumerInfo: CheckResponse_ConsumerInfo.fromPartial({})
};
}
export const CheckResponse_CheckInfo = {
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/output2/google/logging/v2/logging_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function createBaseLogMetric(): LogMetric {
metricDescriptor: MetricDescriptor.fromPartial({}),
valueExtractor: "",
labelExtractors: {},
bucketOptions: BucketOptions.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
createTime: Timestamp.fromPartial({}),
updateTime: Timestamp.fromPartial({}),
version: 0
Expand Down
16 changes: 8 additions & 8 deletions __fixtures__/output2/google/rpc/context/attribute_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,13 @@ export interface AttributeContext_Resource {
}
function createBaseAttributeContext(): AttributeContext {
return {
origin: Peer.fromPartial({}),
source: Peer.fromPartial({}),
destination: Peer.fromPartial({}),
request: Request.fromPartial({}),
response: Response.fromPartial({}),
resource: Resource.fromPartial({}),
api: Api.fromPartial({}),
origin: AttributeContext_Peer.fromPartial({}),
source: AttributeContext_Peer.fromPartial({}),
destination: AttributeContext_Peer.fromPartial({}),
request: AttributeContext_Request.fromPartial({}),
response: AttributeContext_Response.fromPartial({}),
resource: AttributeContext_Resource.fromPartial({}),
api: AttributeContext_Api.fromPartial({}),
extensions: []
};
}
Expand Down Expand Up @@ -905,7 +905,7 @@ function createBaseAttributeContext_Request(): AttributeContext_Request {
size: Long.ZERO,
protocol: "",
reason: "",
auth: Auth.fromPartial({})
auth: AttributeContext_Auth.fromPartial({})
};
}
export const AttributeContext_Request = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function createBaseControllerGenesisState(): ControllerGenesisState {
activeChannels: [],
interchainAccounts: [],
ports: [],
params: Params.fromPartial({})
params: Params1.fromPartial({})
};
}
export const ControllerGenesisState = {
Expand Down Expand Up @@ -183,7 +183,7 @@ function createBaseHostGenesisState(): HostGenesisState {
activeChannels: [],
interchainAccounts: [],
port: "",
params: Params.fromPartial({})
params: Params2.fromPartial({})
};
}
export const HostGenesisState = {
Expand Down
6 changes: 3 additions & 3 deletions __fixtures__/output2/ibc/core/types/v1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export interface GenesisState {
}
function createBaseGenesisState(): GenesisState {
return {
clientGenesis: GenesisState.fromPartial({}),
connectionGenesis: GenesisState.fromPartial({}),
channelGenesis: GenesisState.fromPartial({})
clientGenesis: GenesisState1.fromPartial({}),
connectionGenesis: GenesisState2.fromPartial({}),
channelGenesis: GenesisState3.fromPartial({})
};
}
export const GenesisState = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const SignatureDescriptors = {
function createBaseSignatureDescriptor(): SignatureDescriptor {
return {
publicKey: Any.fromPartial({}),
data: Data.fromPartial({}),
data: SignatureDescriptor_Data.fromPartial({}),
sequence: BigInt(0)
};
}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/v-next/outputosmojs/google/api/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ function createBaseDistribution(): Distribution {
count: BigInt(0),
mean: 0,
sumOfSquaredDeviation: 0,
range: Range.fromPartial({}),
bucketOptions: BucketOptions.fromPartial({}),
range: Distribution_Range.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
bucketCounts: [],
exemplars: []
};
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/v-next/outputosmojs/google/api/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function createBaseMetricDescriptor(): MetricDescriptor {
unit: "",
description: "",
displayName: "",
metadata: MetricDescriptorMetadata.fromPartial({}),
metadata: MetricDescriptor_MetricDescriptorMetadata.fromPartial({}),
launchStage: 0,
monitoredResourceTypes: []
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function createBaseCheckResponse(): CheckResponse {
checkErrors: [],
serviceConfigId: "",
serviceRolloutId: "",
checkInfo: CheckInfo.fromPartial({})
checkInfo: CheckResponse_CheckInfo.fromPartial({})
};
}
export const CheckResponse = {
Expand Down Expand Up @@ -473,7 +473,7 @@ export const CheckResponse = {
function createBaseCheckResponse_CheckInfo(): CheckResponse_CheckInfo {
return {
unusedArguments: [],
consumerInfo: ConsumerInfo.fromPartial({})
consumerInfo: CheckResponse_ConsumerInfo.fromPartial({})
};
}
export const CheckResponse_CheckInfo = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function createBaseLogMetric(): LogMetric {
metricDescriptor: MetricDescriptor.fromPartial({}),
valueExtractor: "",
labelExtractors: {},
bucketOptions: BucketOptions.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
createTime: new Date(),
updateTime: new Date(),
version: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,13 @@ export interface AttributeContext_ResourceSDKType {
}
function createBaseAttributeContext(): AttributeContext {
return {
origin: Peer.fromPartial({}),
source: Peer.fromPartial({}),
destination: Peer.fromPartial({}),
request: Request.fromPartial({}),
response: Response.fromPartial({}),
resource: Resource.fromPartial({}),
api: Api.fromPartial({}),
origin: AttributeContext_Peer.fromPartial({}),
source: AttributeContext_Peer.fromPartial({}),
destination: AttributeContext_Peer.fromPartial({}),
request: AttributeContext_Request.fromPartial({}),
response: AttributeContext_Response.fromPartial({}),
resource: AttributeContext_Resource.fromPartial({}),
api: AttributeContext_Api.fromPartial({}),
extensions: []
};
}
Expand Down Expand Up @@ -1224,7 +1224,7 @@ function createBaseAttributeContext_Request(): AttributeContext_Request {
size: BigInt(0),
protocol: "",
reason: "",
auth: Auth.fromPartial({})
auth: AttributeContext_Auth.fromPartial({})
};
}
export const AttributeContext_Request = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function createBaseControllerGenesisState(): ControllerGenesisState {
activeChannels: [],
interchainAccounts: [],
ports: [],
params: Params.fromPartial({})
params: Params1.fromPartial({})
};
}
export const ControllerGenesisState = {
Expand Down Expand Up @@ -276,7 +276,7 @@ function createBaseHostGenesisState(): HostGenesisState {
activeChannels: [],
interchainAccounts: [],
port: "",
params: Params.fromPartial({})
params: Params2.fromPartial({})
};
}
export const HostGenesisState = {
Expand Down
6 changes: 3 additions & 3 deletions __fixtures__/v-next/outputosmojs/ibc/core/types/v1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export interface GenesisStateSDKType {
}
function createBaseGenesisState(): GenesisState {
return {
clientGenesis: GenesisState.fromPartial({}),
connectionGenesis: GenesisState.fromPartial({}),
channelGenesis: GenesisState.fromPartial({})
clientGenesis: GenesisState1.fromPartial({}),
connectionGenesis: GenesisState2.fromPartial({}),
channelGenesis: GenesisState3.fromPartial({})
};
}
export const GenesisState = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const SignatureDescriptors = {
function createBaseSignatureDescriptor(): SignatureDescriptor {
return {
publicKey: Any.fromPartial({}),
data: Data.fromPartial({}),
data: SignatureDescriptor_Data.fromPartial({}),
sequence: Long.UZERO
};
}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/v-next/outputv2/google/api/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ function createBaseDistribution(): Distribution {
count: Long.ZERO,
mean: 0,
sumOfSquaredDeviation: 0,
range: Range.fromPartial({}),
bucketOptions: BucketOptions.fromPartial({}),
range: Distribution_Range.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
bucketCounts: [],
exemplars: []
};
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/v-next/outputv2/google/api/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ function createBaseMetricDescriptor(): MetricDescriptor {
unit: "",
description: "",
displayName: "",
metadata: MetricDescriptorMetadata.fromPartial({}),
metadata: MetricDescriptor_MetricDescriptorMetadata.fromPartial({}),
launchStage: 0,
monitoredResourceTypes: []
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ function createBaseCheckResponse(): CheckResponse {
checkErrors: [],
serviceConfigId: "",
serviceRolloutId: "",
checkInfo: CheckInfo.fromPartial({})
checkInfo: CheckResponse_CheckInfo.fromPartial({})
};
}
export const CheckResponse = {
Expand Down Expand Up @@ -735,7 +735,7 @@ export const CheckResponse = {
function createBaseCheckResponse_CheckInfo(): CheckResponse_CheckInfo {
return {
unusedArguments: [],
consumerInfo: ConsumerInfo.fromPartial({})
consumerInfo: CheckResponse_ConsumerInfo.fromPartial({})
};
}
export const CheckResponse_CheckInfo = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ function createBaseLogMetric(): LogMetric {
metricDescriptor: MetricDescriptor.fromPartial({}),
valueExtractor: "",
labelExtractors: {},
bucketOptions: BucketOptions.fromPartial({}),
bucketOptions: Distribution_BucketOptions.fromPartial({}),
createTime: new Date(),
updateTime: new Date(),
version: 0
Expand Down
Loading