Skip to content

Commit 4d320f7

Browse files
committed
Update protos and regenerate swagger
1 parent 6e58e75 commit 4d320f7

File tree

15 files changed

+62
-69
lines changed

15 files changed

+62
-69
lines changed

client/docs/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Secret Network",
55
"description": "A REST interface for queries and transactions",
6-
"version": "v1.15"
6+
"version": "v1.16"
77
},
88
"apis": [
99
{

client/docs/static/openapi/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

client/docs/static/openapi/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
title: Secret Network
44
description: A REST interface for queries and transactions
5-
version: v1.15
5+
version: v1.16
66
paths:
77
"/cosmos/auth/v1beta1/account_info/{address}":
88
get:

client/docs/static/swagger/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ swagger: '2.0'
22
info:
33
title: Secret Network
44
description: A REST interface for queries and transactions
5-
version: v1.15
5+
version: v1.16
66
paths:
77
/cosmos/auth/v1beta1/account_info/{address}:
88
get:

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.

third_party/proto/cosmos/bank/module/v1/module.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ message Module {
1717

1818
// authority defines the custom module authority. If not set, defaults to the governance module.
1919
string authority = 2;
20-
}
20+
21+
// restrictions_order specifies the order of send restrictions and should be
22+
// a list of module names which provide a send restriction instance. If no
23+
// order is provided, then restrictions will be applied in alphabetical order
24+
// of module names.
25+
repeated string restrictions_order = 3;
26+
}

third_party/proto/cosmos/staking/v1beta1/query.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ message QueryRedelegationsRequest {
292292
string delegator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
293293

294294
// src_validator_addr defines the validator address to redelegate from.
295-
string src_validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
295+
string src_validator_addr = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
296296

297297
// dst_validator_addr defines the validator address to redelegate to.
298-
string dst_validator_addr = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
298+
string dst_validator_addr = 3 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
299299

300300
// pagination defines an optional pagination for the request.
301301
cosmos.base.query.v1beta1.PageRequest pagination = 4;

third_party/proto/tendermint/blocksync/types.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ message BlockResponse {
2323
}
2424

2525
// StatusRequest requests the status of a peer.
26-
message StatusRequest {
27-
}
26+
message StatusRequest {}
2827

2928
// StatusResponse is a peer response to inform their status.
3029
message StatusResponse {

third_party/proto/tendermint/consensus/wal.proto

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ message MsgInfo {
1717

1818
// TimeoutInfo internally generated messages which may update the state
1919
message TimeoutInfo {
20-
google.protobuf.Duration duration = 1
21-
[(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
22-
int64 height = 2;
23-
int32 round = 3;
24-
uint32 step = 4;
20+
google.protobuf.Duration duration = 1 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
21+
int64 height = 2;
22+
int32 round = 3;
23+
uint32 step = 4;
2524
}
2625

2726
// EndHeight marks the end of the given height inside WAL.

third_party/proto/tendermint/state/types.proto

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ message LegacyABCIResponses {
2323

2424
// ResponseBeginBlock is kept for backwards compatibility for versions prior to v0.38
2525
message ResponseBeginBlock {
26-
repeated tendermint.abci.Event events = 1
27-
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
26+
repeated tendermint.abci.Event events = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
2827
}
2928

3029
// ResponseEndBlock is kept for backwards compatibility for versions prior to v0.38
3130
message ResponseEndBlock {
3231
repeated tendermint.abci.ValidatorUpdate validator_updates = 1 [(gogoproto.nullable) = false];
3332
tendermint.types.ConsensusParams consensus_param_updates = 2;
34-
repeated tendermint.abci.Event events = 3
35-
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
33+
repeated tendermint.abci.Event events = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
3634
}
3735

3836
// ValidatorsInfo represents the latest validator set, or the last height it changed
@@ -66,11 +64,9 @@ message State {
6664
int64 initial_height = 14;
6765

6866
// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
69-
int64 last_block_height = 3;
70-
tendermint.types.BlockID last_block_id = 4
71-
[(gogoproto.nullable) = false, (gogoproto.customname) = "LastBlockID"];
72-
google.protobuf.Timestamp last_block_time = 5
73-
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
67+
int64 last_block_height = 3;
68+
tendermint.types.BlockID last_block_id = 4 [(gogoproto.nullable) = false, (gogoproto.customname) = "LastBlockID"];
69+
google.protobuf.Timestamp last_block_time = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
7470

7571
// LastValidators is used to validate block.LastCommit.
7672
// Validators are persisted to the database separately every time they change,

0 commit comments

Comments
 (0)