Skip to content

Commit c79d331

Browse files
authored
chore: fix proto / typo (#308)
* fix typo * gen swagger/pulaar * update makefile and swagger
1 parent 7930a8a commit c79d331

File tree

13 files changed

+58
-60
lines changed

13 files changed

+58
-60
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protoVer=0.14.0
156156
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
157157
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
158158

159-
proto-all: proto-format proto-lint proto-gen
159+
proto-all: proto-format proto-lint proto-gen proto-swagger-gen proto-pulsar-gen
160160

161161
proto-gen:
162162
@echo "Generating Protobuf files"

api/ibc/applications/perm/v1/types.pulsar.go

Lines changed: 24 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/initia/gov/v1/gov.pulsar.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/initia/mstaking/v1/query.pulsar.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/docs/statik/statik.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/docs/swagger-ui/swagger.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44836,7 +44836,7 @@ paths:
4483644836
bonded shares
4483744837

4483844838
multiplied by exchange rate.
44839-
description: validators defines the the validators' info of a delegator.
44839+
description: validators defines the validators' info of a delegator.
4484044840
pagination:
4484144841
description: pagination defines the pagination in the response.
4484244842
type: object
@@ -83596,7 +83596,7 @@ definitions:
8359683596
exchange rate. Voting power can be calculated as total bonded shares
8359783597

8359883598
multiplied by exchange rate.
83599-
description: validators defines the the validators' info of a delegator.
83599+
description: validators defines the validators' info of a delegator.
8360083600
pagination:
8360183601
description: pagination defines the pagination in the response.
8360283602
type: object
@@ -87557,6 +87557,7 @@ definitions:
8755787557
description: >-
8755887558
no_with_veto_count is the number of no with veto votes on a
8755987559
proposal.
87560+
description: TallyResult defines the result of a tally.
8756087561
initia.gov.v1.Vesting:
8756187562
type: object
8756287563
properties:

proto/ibc/applications/perm/v1/types.proto

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ syntax = "proto3";
22

33
package ibc.applications.perm.v1;
44

5-
import "gogoproto/gogo.proto";
6-
75
option go_package = "github.com/initia-labs/initia/x/ibc/perm/types";
86

97
// ChannelState defines the channel state for the specific port-id:channel-id pair.

proto/initia/gov/v1/gov.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ message Vesting {
142142
string creator_addr = 3;
143143
}
144144

145+
// TallyResult defines the result of a tally.
145146
message TallyResult {
146147
uint64 tally_height = 1;
147148
string total_staking_power = 2 [(cosmos_proto.scalar) = "cosmos.Int"];

proto/initia/mstaking/v1/query.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ message QueryValidatorRequest {
116116

117117
// QueryValidatorResponse is response type for the Query/Validator RPC method
118118
message QueryValidatorResponse {
119-
// validator defines the the validator info.
119+
// validator defines the validator info.
120120
Validator validator = 1 [(gogoproto.nullable) = false];
121121
}
122122

@@ -288,7 +288,7 @@ message QueryDelegatorValidatorsRequest {
288288
// QueryDelegatorValidatorsResponse is response type for the
289289
// Query/DelegatorValidators RPC method.
290290
message QueryDelegatorValidatorsResponse {
291-
// validators defines the the validators' info of a delegator.
291+
// validators defines the validators' info of a delegator.
292292
repeated Validator validators = 1 [(gogoproto.nullable) = false];
293293

294294
// pagination defines the pagination in the response.
@@ -311,7 +311,7 @@ message QueryDelegatorValidatorRequest {
311311
// QueryDelegatorValidatorResponse response type for the
312312
// Query/DelegatorValidator RPC method.
313313
message QueryDelegatorValidatorResponse {
314-
// validator defines the the validator info.
314+
// validator defines the validator info.
315315
Validator validator = 1 [(gogoproto.nullable) = false];
316316
}
317317

x/gov/types/gov.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/ibc/nft-transfer/keeper/relay.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, data t
420420
return nil
421421
}
422422

423-
// OnAcknowledgementPacket responds to the the success or failure of a packet
423+
// OnAcknowledgementPacket responds to the success or failure of a packet
424424
// acknowledgement written on the receiving chain. If the acknowledgement
425425
// was a success then nothing occurs. If the acknowledgement failed, then
426426
// the sender is refunded their tokens using the refundPacketToken function.

x/ibc/perm/types/types.pb.go

Lines changed: 16 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/mstaking/types/query.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)