-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fixup) Sync thrid_party(Tendermint/Ostracon) proto files
- Loading branch information
Showing
10 changed files
with
179 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
package ostracon.blockchain; | ||
|
||
option go_package = "github.com/Finschia/ostracon/proto/ostracon/blockchain"; | ||
|
||
import "ostracon/types/block.proto"; | ||
import "tendermint/blockchain/types.proto"; | ||
|
||
// BlockResponse returns block to the requested | ||
message BlockResponse { | ||
ostracon.types.Block block = 1; | ||
} | ||
|
||
message Message { | ||
oneof sum { | ||
tendermint.blockchain.BlockRequest block_request = 1; | ||
tendermint.blockchain.NoBlockResponse no_block_response = 2; | ||
BlockResponse block_response = 3; | ||
tendermint.blockchain.StatusRequest status_request = 4; | ||
tendermint.blockchain.StatusResponse status_response = 5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
package ostracon.privval; | ||
|
||
import "tendermint/privval/types.proto"; | ||
|
||
option go_package = "github.com/Finschia/ostracon/proto/ostracon/privval"; | ||
|
||
// VRFProofRequest is a PrivValidatorSocket message containing a message to generate proof. | ||
message VRFProofRequest { | ||
bytes message = 1; | ||
} | ||
|
||
// VRFProofResponse is a PrivValidatorSocket message containing a Proof. | ||
message VRFProofResponse { | ||
bytes proof = 1; | ||
tendermint.privval.RemoteSignerError error = 2; | ||
} | ||
|
||
message Message { | ||
oneof sum { | ||
tendermint.privval.PubKeyRequest pub_key_request = 1; | ||
tendermint.privval.PubKeyResponse pub_key_response = 2; | ||
tendermint.privval.SignVoteRequest sign_vote_request = 3; | ||
tendermint.privval.SignedVoteResponse signed_vote_response = 4; | ||
tendermint.privval.SignProposalRequest sign_proposal_request = 5; | ||
tendermint.privval.SignedProposalResponse signed_proposal_response = 6; | ||
tendermint.privval.PingRequest ping_request = 7; | ||
tendermint.privval.PingResponse ping_response = 8; | ||
VRFProofRequest vrf_proof_request = 1000; | ||
VRFProofResponse vrf_proof_response = 1001; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
package ostracon.rpc.grpc; | ||
option go_package = "github.com/Finschia/ostracon/rpc/grpc;coregrpc"; | ||
|
||
import "ostracon/abci/types.proto"; | ||
import "tendermint/abci/types.proto"; | ||
|
||
//---------------------------------------- | ||
// Request types | ||
|
||
message RequestPing {} | ||
|
||
message RequestBroadcastTx { | ||
bytes tx = 1; | ||
} | ||
|
||
//---------------------------------------- | ||
// Response types | ||
|
||
message ResponsePing {} | ||
|
||
message ResponseBroadcastTx { | ||
ostracon.abci.ResponseCheckTx check_tx = 1; | ||
tendermint.abci.ResponseDeliverTx deliver_tx = 2; | ||
} | ||
|
||
//---------------------------------------- | ||
// Service Definition | ||
|
||
service BroadcastAPI { | ||
rpc Ping(RequestPing) returns (ResponsePing); | ||
rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
syntax = "proto3"; | ||
package ostracon.state; | ||
|
||
option go_package = "github.com/Finschia/ostracon/proto/ostracon/state"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "tendermint/types/validator.proto"; | ||
import "tendermint/types/params.proto"; | ||
import "tendermint/types/types.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
import "tendermint/state/types.proto"; | ||
|
||
message State { | ||
tendermint.state.Version version = 1 [(gogoproto.nullable) = false]; | ||
|
||
// immutable | ||
string chain_id = 2 [(gogoproto.customname) = "ChainID"]; | ||
int64 initial_height = 14; | ||
|
||
// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist) | ||
int64 last_block_height = 3; | ||
tendermint.types.BlockID last_block_id = 4 | ||
[(gogoproto.nullable) = false, (gogoproto.customname) = "LastBlockID"]; | ||
google.protobuf.Timestamp last_block_time = 5 | ||
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; | ||
|
||
// LastValidators is used to validate block.LastCommit. | ||
// Validators are persisted to the database separately every time they change, | ||
// so we can query for historical validator sets. | ||
// Note that if s.LastBlockHeight causes a valset change, | ||
// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1 | ||
// Extra +1 due to nextValSet delay. | ||
tendermint.types.ValidatorSet next_validators = 6; | ||
tendermint.types.ValidatorSet validators = 7; | ||
tendermint.types.ValidatorSet last_validators = 8; | ||
int64 last_height_validators_changed = 9; | ||
|
||
// Consensus parameters used for validating blocks. | ||
// Changes returned by EndBlock and updated after Commit. | ||
tendermint.types.ConsensusParams consensus_params = 10 [(gogoproto.nullable) = false]; | ||
int64 last_height_consensus_params_changed = 11; | ||
|
||
// Merkle root of the results from executing prev block | ||
bytes last_results_hash = 12; | ||
|
||
// the latest AppHash we've received from calling abci.Commit() | ||
bytes app_hash = 13; | ||
|
||
// *** Ostracon Extended Fields *** | ||
|
||
// the VRF Proof value generated by the last Proposer | ||
bytes last_proof_hash = 1000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters