Skip to content

Commit

Permalink
chore: fix proto / typo (#308)
Browse files Browse the repository at this point in the history
* fix typo

* gen swagger/pulaar

* update makefile and swagger
  • Loading branch information
Vritra4 authored Nov 22, 2024
1 parent 7930a8a commit c79d331
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 60 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

proto-all: proto-format proto-lint proto-gen
proto-all: proto-format proto-lint proto-gen proto-swagger-gen proto-pulsar-gen

proto-gen:
@echo "Generating Protobuf files"
Expand Down
50 changes: 24 additions & 26 deletions api/ibc/applications/perm/v1/types.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/initia/gov/v1/gov.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api/initia/mstaking/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44836,7 +44836,7 @@ paths:
bonded shares

multiplied by exchange rate.
description: validators defines the the validators' info of a delegator.
description: validators defines the validators' info of a delegator.
pagination:
description: pagination defines the pagination in the response.
type: object
Expand Down Expand Up @@ -83596,7 +83596,7 @@ definitions:
exchange rate. Voting power can be calculated as total bonded shares

multiplied by exchange rate.
description: validators defines the the validators' info of a delegator.
description: validators defines the validators' info of a delegator.
pagination:
description: pagination defines the pagination in the response.
type: object
Expand Down Expand Up @@ -87557,6 +87557,7 @@ definitions:
description: >-
no_with_veto_count is the number of no with veto votes on a
proposal.
description: TallyResult defines the result of a tally.
initia.gov.v1.Vesting:
type: object
properties:
Expand Down
2 changes: 0 additions & 2 deletions proto/ibc/applications/perm/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ syntax = "proto3";

package ibc.applications.perm.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/initia-labs/initia/x/ibc/perm/types";

// ChannelState defines the channel state for the specific port-id:channel-id pair.
Expand Down
1 change: 1 addition & 0 deletions proto/initia/gov/v1/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ message Vesting {
string creator_addr = 3;
}

// TallyResult defines the result of a tally.
message TallyResult {
uint64 tally_height = 1;
string total_staking_power = 2 [(cosmos_proto.scalar) = "cosmos.Int"];
Expand Down
6 changes: 3 additions & 3 deletions proto/initia/mstaking/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ message QueryValidatorRequest {

// QueryValidatorResponse is response type for the Query/Validator RPC method
message QueryValidatorResponse {
// validator defines the the validator info.
// validator defines the validator info.
Validator validator = 1 [(gogoproto.nullable) = false];
}

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

// pagination defines the pagination in the response.
Expand All @@ -311,7 +311,7 @@ message QueryDelegatorValidatorRequest {
// QueryDelegatorValidatorResponse response type for the
// Query/DelegatorValidator RPC method.
message QueryDelegatorValidatorResponse {
// validator defines the the validator info.
// validator defines the validator info.
Validator validator = 1 [(gogoproto.nullable) = false];
}

Expand Down
1 change: 1 addition & 0 deletions x/gov/types/gov.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/ibc/nft-transfer/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, data t
return nil
}

// OnAcknowledgementPacket responds to the the success or failure of a packet
// OnAcknowledgementPacket responds to the success or failure of a packet
// acknowledgement written on the receiving chain. If the acknowledgement
// was a success then nothing occurs. If the acknowledgement failed, then
// the sender is refunded their tokens using the refundPacketToken function.
Expand Down
34 changes: 16 additions & 18 deletions x/ibc/perm/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions x/mstaking/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c79d331

Please sign in to comment.