chore: reset version usage and revert comet to not use buf (#24815)

This commit is contained in:
Alex | Interchain Labs
2025-05-30 09:29:33 -04:00
committed by GitHub
parent 0401bf0260
commit b5e450ec7a
85 changed files with 79557 additions and 568 deletions
-6
View File
@@ -22,12 +22,6 @@ Each entry must include the Github issue reference in the following format:
## [Unreleased]
## [v1.0.0](https://github.com/cosmos/cosmos-sdk/releases/tag/api/v1.0.0)
### Breaking Changes
- The `api` module now depends on the `cometbft` buf instead of re-exporting it or the legacy tendermint protobuf APIs
## [v0.9.0](https://github.com/cosmos/cosmos-sdk/releases/tag/api/v0.9.0) - 2025-03-31
### Features
+235
View File
@@ -0,0 +1,235 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package abciv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: cometbft/abci/v1/service.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_cometbft_abci_v1_service_proto protoreflect.FileDescriptor
var file_cometbft_abci_v1_service_proto_rawDesc = []byte{
0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f,
0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x10, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e,
0x76, 0x31, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63,
0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x32, 0xc4, 0x0b, 0x0a, 0x0b, 0x41, 0x42, 0x43, 0x49, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x45, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x63, 0x68, 0x6f,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x46, 0x6c, 0x75, 0x73, 0x68,
0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x45, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x65,
0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66,
0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x6f,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x54, 0x78, 0x12, 0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61,
0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x78,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72,
0x79, 0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x2e, 0x63,
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x54, 0x0a, 0x09, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x22, 0x2e, 0x63,
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e,
0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61,
0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e,
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27,
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4f, 0x66, 0x66, 0x65, 0x72,
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65,
0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x11, 0x4c, 0x6f, 0x61,
0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x2a,
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68,
0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x6d,
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f,
0x61, 0x64, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x6c, 0x79,
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x2b, 0x2e,
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68,
0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x6d,
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70,
0x70, 0x6c, 0x79, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x68, 0x75, 0x6e, 0x6b,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70,
0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x6f,
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65,
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x66, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f,
0x73, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61,
0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72,
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e,
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31,
0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x65,
0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64,
0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f,
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45,
0x78, 0x74, 0x65, 0x6e, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x72, 0x0a, 0x13, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45,
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69,
0x66, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,
0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a,
0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69,
0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27,
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76,
0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e,
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31,
0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x28, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69,
0x2f, 0x76, 0x31, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x58,
0xaa, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x41, 0x62, 0x63, 0x69,
0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x41,
0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var file_cometbft_abci_v1_service_proto_goTypes = []interface{}{
(*EchoRequest)(nil), // 0: cometbft.abci.v1.EchoRequest
(*FlushRequest)(nil), // 1: cometbft.abci.v1.FlushRequest
(*InfoRequest)(nil), // 2: cometbft.abci.v1.InfoRequest
(*CheckTxRequest)(nil), // 3: cometbft.abci.v1.CheckTxRequest
(*QueryRequest)(nil), // 4: cometbft.abci.v1.QueryRequest
(*CommitRequest)(nil), // 5: cometbft.abci.v1.CommitRequest
(*InitChainRequest)(nil), // 6: cometbft.abci.v1.InitChainRequest
(*ListSnapshotsRequest)(nil), // 7: cometbft.abci.v1.ListSnapshotsRequest
(*OfferSnapshotRequest)(nil), // 8: cometbft.abci.v1.OfferSnapshotRequest
(*LoadSnapshotChunkRequest)(nil), // 9: cometbft.abci.v1.LoadSnapshotChunkRequest
(*ApplySnapshotChunkRequest)(nil), // 10: cometbft.abci.v1.ApplySnapshotChunkRequest
(*PrepareProposalRequest)(nil), // 11: cometbft.abci.v1.PrepareProposalRequest
(*ProcessProposalRequest)(nil), // 12: cometbft.abci.v1.ProcessProposalRequest
(*ExtendVoteRequest)(nil), // 13: cometbft.abci.v1.ExtendVoteRequest
(*VerifyVoteExtensionRequest)(nil), // 14: cometbft.abci.v1.VerifyVoteExtensionRequest
(*FinalizeBlockRequest)(nil), // 15: cometbft.abci.v1.FinalizeBlockRequest
(*EchoResponse)(nil), // 16: cometbft.abci.v1.EchoResponse
(*FlushResponse)(nil), // 17: cometbft.abci.v1.FlushResponse
(*InfoResponse)(nil), // 18: cometbft.abci.v1.InfoResponse
(*CheckTxResponse)(nil), // 19: cometbft.abci.v1.CheckTxResponse
(*QueryResponse)(nil), // 20: cometbft.abci.v1.QueryResponse
(*CommitResponse)(nil), // 21: cometbft.abci.v1.CommitResponse
(*InitChainResponse)(nil), // 22: cometbft.abci.v1.InitChainResponse
(*ListSnapshotsResponse)(nil), // 23: cometbft.abci.v1.ListSnapshotsResponse
(*OfferSnapshotResponse)(nil), // 24: cometbft.abci.v1.OfferSnapshotResponse
(*LoadSnapshotChunkResponse)(nil), // 25: cometbft.abci.v1.LoadSnapshotChunkResponse
(*ApplySnapshotChunkResponse)(nil), // 26: cometbft.abci.v1.ApplySnapshotChunkResponse
(*PrepareProposalResponse)(nil), // 27: cometbft.abci.v1.PrepareProposalResponse
(*ProcessProposalResponse)(nil), // 28: cometbft.abci.v1.ProcessProposalResponse
(*ExtendVoteResponse)(nil), // 29: cometbft.abci.v1.ExtendVoteResponse
(*VerifyVoteExtensionResponse)(nil), // 30: cometbft.abci.v1.VerifyVoteExtensionResponse
(*FinalizeBlockResponse)(nil), // 31: cometbft.abci.v1.FinalizeBlockResponse
}
var file_cometbft_abci_v1_service_proto_depIdxs = []int32{
0, // 0: cometbft.abci.v1.ABCIService.Echo:input_type -> cometbft.abci.v1.EchoRequest
1, // 1: cometbft.abci.v1.ABCIService.Flush:input_type -> cometbft.abci.v1.FlushRequest
2, // 2: cometbft.abci.v1.ABCIService.Info:input_type -> cometbft.abci.v1.InfoRequest
3, // 3: cometbft.abci.v1.ABCIService.CheckTx:input_type -> cometbft.abci.v1.CheckTxRequest
4, // 4: cometbft.abci.v1.ABCIService.Query:input_type -> cometbft.abci.v1.QueryRequest
5, // 5: cometbft.abci.v1.ABCIService.Commit:input_type -> cometbft.abci.v1.CommitRequest
6, // 6: cometbft.abci.v1.ABCIService.InitChain:input_type -> cometbft.abci.v1.InitChainRequest
7, // 7: cometbft.abci.v1.ABCIService.ListSnapshots:input_type -> cometbft.abci.v1.ListSnapshotsRequest
8, // 8: cometbft.abci.v1.ABCIService.OfferSnapshot:input_type -> cometbft.abci.v1.OfferSnapshotRequest
9, // 9: cometbft.abci.v1.ABCIService.LoadSnapshotChunk:input_type -> cometbft.abci.v1.LoadSnapshotChunkRequest
10, // 10: cometbft.abci.v1.ABCIService.ApplySnapshotChunk:input_type -> cometbft.abci.v1.ApplySnapshotChunkRequest
11, // 11: cometbft.abci.v1.ABCIService.PrepareProposal:input_type -> cometbft.abci.v1.PrepareProposalRequest
12, // 12: cometbft.abci.v1.ABCIService.ProcessProposal:input_type -> cometbft.abci.v1.ProcessProposalRequest
13, // 13: cometbft.abci.v1.ABCIService.ExtendVote:input_type -> cometbft.abci.v1.ExtendVoteRequest
14, // 14: cometbft.abci.v1.ABCIService.VerifyVoteExtension:input_type -> cometbft.abci.v1.VerifyVoteExtensionRequest
15, // 15: cometbft.abci.v1.ABCIService.FinalizeBlock:input_type -> cometbft.abci.v1.FinalizeBlockRequest
16, // 16: cometbft.abci.v1.ABCIService.Echo:output_type -> cometbft.abci.v1.EchoResponse
17, // 17: cometbft.abci.v1.ABCIService.Flush:output_type -> cometbft.abci.v1.FlushResponse
18, // 18: cometbft.abci.v1.ABCIService.Info:output_type -> cometbft.abci.v1.InfoResponse
19, // 19: cometbft.abci.v1.ABCIService.CheckTx:output_type -> cometbft.abci.v1.CheckTxResponse
20, // 20: cometbft.abci.v1.ABCIService.Query:output_type -> cometbft.abci.v1.QueryResponse
21, // 21: cometbft.abci.v1.ABCIService.Commit:output_type -> cometbft.abci.v1.CommitResponse
22, // 22: cometbft.abci.v1.ABCIService.InitChain:output_type -> cometbft.abci.v1.InitChainResponse
23, // 23: cometbft.abci.v1.ABCIService.ListSnapshots:output_type -> cometbft.abci.v1.ListSnapshotsResponse
24, // 24: cometbft.abci.v1.ABCIService.OfferSnapshot:output_type -> cometbft.abci.v1.OfferSnapshotResponse
25, // 25: cometbft.abci.v1.ABCIService.LoadSnapshotChunk:output_type -> cometbft.abci.v1.LoadSnapshotChunkResponse
26, // 26: cometbft.abci.v1.ABCIService.ApplySnapshotChunk:output_type -> cometbft.abci.v1.ApplySnapshotChunkResponse
27, // 27: cometbft.abci.v1.ABCIService.PrepareProposal:output_type -> cometbft.abci.v1.PrepareProposalResponse
28, // 28: cometbft.abci.v1.ABCIService.ProcessProposal:output_type -> cometbft.abci.v1.ProcessProposalResponse
29, // 29: cometbft.abci.v1.ABCIService.ExtendVote:output_type -> cometbft.abci.v1.ExtendVoteResponse
30, // 30: cometbft.abci.v1.ABCIService.VerifyVoteExtension:output_type -> cometbft.abci.v1.VerifyVoteExtensionResponse
31, // 31: cometbft.abci.v1.ABCIService.FinalizeBlock:output_type -> cometbft.abci.v1.FinalizeBlockResponse
16, // [16:32] is the sub-list for method output_type
0, // [0:16] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cometbft_abci_v1_service_proto_init() }
func file_cometbft_abci_v1_service_proto_init() {
if File_cometbft_abci_v1_service_proto != nil {
return
}
file_cometbft_abci_v1_types_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cometbft_abci_v1_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_cometbft_abci_v1_service_proto_goTypes,
DependencyIndexes: file_cometbft_abci_v1_service_proto_depIdxs,
}.Build()
File_cometbft_abci_v1_service_proto = out.File
file_cometbft_abci_v1_service_proto_rawDesc = nil
file_cometbft_abci_v1_service_proto_goTypes = nil
file_cometbft_abci_v1_service_proto_depIdxs = nil
}
+727
View File
@@ -0,0 +1,727 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: cometbft/abci/v1/service.proto
package abciv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
ABCIService_Echo_FullMethodName = "/cometbft.abci.v1.ABCIService/Echo"
ABCIService_Flush_FullMethodName = "/cometbft.abci.v1.ABCIService/Flush"
ABCIService_Info_FullMethodName = "/cometbft.abci.v1.ABCIService/Info"
ABCIService_CheckTx_FullMethodName = "/cometbft.abci.v1.ABCIService/CheckTx"
ABCIService_Query_FullMethodName = "/cometbft.abci.v1.ABCIService/Query"
ABCIService_Commit_FullMethodName = "/cometbft.abci.v1.ABCIService/Commit"
ABCIService_InitChain_FullMethodName = "/cometbft.abci.v1.ABCIService/InitChain"
ABCIService_ListSnapshots_FullMethodName = "/cometbft.abci.v1.ABCIService/ListSnapshots"
ABCIService_OfferSnapshot_FullMethodName = "/cometbft.abci.v1.ABCIService/OfferSnapshot"
ABCIService_LoadSnapshotChunk_FullMethodName = "/cometbft.abci.v1.ABCIService/LoadSnapshotChunk"
ABCIService_ApplySnapshotChunk_FullMethodName = "/cometbft.abci.v1.ABCIService/ApplySnapshotChunk"
ABCIService_PrepareProposal_FullMethodName = "/cometbft.abci.v1.ABCIService/PrepareProposal"
ABCIService_ProcessProposal_FullMethodName = "/cometbft.abci.v1.ABCIService/ProcessProposal"
ABCIService_ExtendVote_FullMethodName = "/cometbft.abci.v1.ABCIService/ExtendVote"
ABCIService_VerifyVoteExtension_FullMethodName = "/cometbft.abci.v1.ABCIService/VerifyVoteExtension"
ABCIService_FinalizeBlock_FullMethodName = "/cometbft.abci.v1.ABCIService/FinalizeBlock"
)
// ABCIServiceClient is the client API for ABCIService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
//
// ABCIService is a service for an ABCI application.
type ABCIServiceClient interface {
// Echo returns back the same message it is sent.
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
// Flush flushes the write buffer.
Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error)
// Info returns information about the application state.
Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
// CheckTx validates a transaction.
CheckTx(ctx context.Context, in *CheckTxRequest, opts ...grpc.CallOption) (*CheckTxResponse, error)
// Query queries the application state.
Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
// Commit commits a block of transactions.
Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
// InitChain initializes the blockchain.
InitChain(ctx context.Context, in *InitChainRequest, opts ...grpc.CallOption) (*InitChainResponse, error)
// ListSnapshots lists all the available snapshots.
ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
// OfferSnapshot sends a snapshot offer.
OfferSnapshot(ctx context.Context, in *OfferSnapshotRequest, opts ...grpc.CallOption) (*OfferSnapshotResponse, error)
// LoadSnapshotChunk returns a chunk of snapshot.
LoadSnapshotChunk(ctx context.Context, in *LoadSnapshotChunkRequest, opts ...grpc.CallOption) (*LoadSnapshotChunkResponse, error)
// ApplySnapshotChunk applies a chunk of snapshot.
ApplySnapshotChunk(ctx context.Context, in *ApplySnapshotChunkRequest, opts ...grpc.CallOption) (*ApplySnapshotChunkResponse, error)
// PrepareProposal returns a proposal for the next block.
PrepareProposal(ctx context.Context, in *PrepareProposalRequest, opts ...grpc.CallOption) (*PrepareProposalResponse, error)
// ProcessProposal validates a proposal.
ProcessProposal(ctx context.Context, in *ProcessProposalRequest, opts ...grpc.CallOption) (*ProcessProposalResponse, error)
// ExtendVote extends a vote with application-injected data (vote extensions).
ExtendVote(ctx context.Context, in *ExtendVoteRequest, opts ...grpc.CallOption) (*ExtendVoteResponse, error)
// VerifyVoteExtension verifies a vote extension.
VerifyVoteExtension(ctx context.Context, in *VerifyVoteExtensionRequest, opts ...grpc.CallOption) (*VerifyVoteExtensionResponse, error)
// FinalizeBlock finalizes a block.
FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error)
}
type aBCIServiceClient struct {
cc grpc.ClientConnInterface
}
func NewABCIServiceClient(cc grpc.ClientConnInterface) ABCIServiceClient {
return &aBCIServiceClient{cc}
}
func (c *aBCIServiceClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(EchoResponse)
err := c.cc.Invoke(ctx, ABCIService_Echo_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(FlushResponse)
err := c.cc.Invoke(ctx, ABCIService_Flush_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(InfoResponse)
err := c.cc.Invoke(ctx, ABCIService_Info_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) CheckTx(ctx context.Context, in *CheckTxRequest, opts ...grpc.CallOption) (*CheckTxResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CheckTxResponse)
err := c.cc.Invoke(ctx, ABCIService_CheckTx_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(QueryResponse)
err := c.cc.Invoke(ctx, ABCIService_Query_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CommitResponse)
err := c.cc.Invoke(ctx, ABCIService_Commit_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) InitChain(ctx context.Context, in *InitChainRequest, opts ...grpc.CallOption) (*InitChainResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(InitChainResponse)
err := c.cc.Invoke(ctx, ABCIService_InitChain_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListSnapshotsResponse)
err := c.cc.Invoke(ctx, ABCIService_ListSnapshots_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) OfferSnapshot(ctx context.Context, in *OfferSnapshotRequest, opts ...grpc.CallOption) (*OfferSnapshotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(OfferSnapshotResponse)
err := c.cc.Invoke(ctx, ABCIService_OfferSnapshot_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) LoadSnapshotChunk(ctx context.Context, in *LoadSnapshotChunkRequest, opts ...grpc.CallOption) (*LoadSnapshotChunkResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(LoadSnapshotChunkResponse)
err := c.cc.Invoke(ctx, ABCIService_LoadSnapshotChunk_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) ApplySnapshotChunk(ctx context.Context, in *ApplySnapshotChunkRequest, opts ...grpc.CallOption) (*ApplySnapshotChunkResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ApplySnapshotChunkResponse)
err := c.cc.Invoke(ctx, ABCIService_ApplySnapshotChunk_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) PrepareProposal(ctx context.Context, in *PrepareProposalRequest, opts ...grpc.CallOption) (*PrepareProposalResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(PrepareProposalResponse)
err := c.cc.Invoke(ctx, ABCIService_PrepareProposal_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) ProcessProposal(ctx context.Context, in *ProcessProposalRequest, opts ...grpc.CallOption) (*ProcessProposalResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ProcessProposalResponse)
err := c.cc.Invoke(ctx, ABCIService_ProcessProposal_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) ExtendVote(ctx context.Context, in *ExtendVoteRequest, opts ...grpc.CallOption) (*ExtendVoteResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ExtendVoteResponse)
err := c.cc.Invoke(ctx, ABCIService_ExtendVote_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) VerifyVoteExtension(ctx context.Context, in *VerifyVoteExtensionRequest, opts ...grpc.CallOption) (*VerifyVoteExtensionResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(VerifyVoteExtensionResponse)
err := c.cc.Invoke(ctx, ABCIService_VerifyVoteExtension_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aBCIServiceClient) FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(FinalizeBlockResponse)
err := c.cc.Invoke(ctx, ABCIService_FinalizeBlock_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// ABCIServiceServer is the server API for ABCIService service.
// All implementations must embed UnimplementedABCIServiceServer
// for forward compatibility.
//
// ABCIService is a service for an ABCI application.
type ABCIServiceServer interface {
// Echo returns back the same message it is sent.
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
// Flush flushes the write buffer.
Flush(context.Context, *FlushRequest) (*FlushResponse, error)
// Info returns information about the application state.
Info(context.Context, *InfoRequest) (*InfoResponse, error)
// CheckTx validates a transaction.
CheckTx(context.Context, *CheckTxRequest) (*CheckTxResponse, error)
// Query queries the application state.
Query(context.Context, *QueryRequest) (*QueryResponse, error)
// Commit commits a block of transactions.
Commit(context.Context, *CommitRequest) (*CommitResponse, error)
// InitChain initializes the blockchain.
InitChain(context.Context, *InitChainRequest) (*InitChainResponse, error)
// ListSnapshots lists all the available snapshots.
ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
// OfferSnapshot sends a snapshot offer.
OfferSnapshot(context.Context, *OfferSnapshotRequest) (*OfferSnapshotResponse, error)
// LoadSnapshotChunk returns a chunk of snapshot.
LoadSnapshotChunk(context.Context, *LoadSnapshotChunkRequest) (*LoadSnapshotChunkResponse, error)
// ApplySnapshotChunk applies a chunk of snapshot.
ApplySnapshotChunk(context.Context, *ApplySnapshotChunkRequest) (*ApplySnapshotChunkResponse, error)
// PrepareProposal returns a proposal for the next block.
PrepareProposal(context.Context, *PrepareProposalRequest) (*PrepareProposalResponse, error)
// ProcessProposal validates a proposal.
ProcessProposal(context.Context, *ProcessProposalRequest) (*ProcessProposalResponse, error)
// ExtendVote extends a vote with application-injected data (vote extensions).
ExtendVote(context.Context, *ExtendVoteRequest) (*ExtendVoteResponse, error)
// VerifyVoteExtension verifies a vote extension.
VerifyVoteExtension(context.Context, *VerifyVoteExtensionRequest) (*VerifyVoteExtensionResponse, error)
// FinalizeBlock finalizes a block.
FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error)
mustEmbedUnimplementedABCIServiceServer()
}
// UnimplementedABCIServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedABCIServiceServer struct{}
func (UnimplementedABCIServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
}
func (UnimplementedABCIServiceServer) Flush(context.Context, *FlushRequest) (*FlushResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented")
}
func (UnimplementedABCIServiceServer) Info(context.Context, *InfoRequest) (*InfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Info not implemented")
}
func (UnimplementedABCIServiceServer) CheckTx(context.Context, *CheckTxRequest) (*CheckTxResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented")
}
func (UnimplementedABCIServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Query not implemented")
}
func (UnimplementedABCIServiceServer) Commit(context.Context, *CommitRequest) (*CommitResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented")
}
func (UnimplementedABCIServiceServer) InitChain(context.Context, *InitChainRequest) (*InitChainResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented")
}
func (UnimplementedABCIServiceServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented")
}
func (UnimplementedABCIServiceServer) OfferSnapshot(context.Context, *OfferSnapshotRequest) (*OfferSnapshotResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented")
}
func (UnimplementedABCIServiceServer) LoadSnapshotChunk(context.Context, *LoadSnapshotChunkRequest) (*LoadSnapshotChunkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented")
}
func (UnimplementedABCIServiceServer) ApplySnapshotChunk(context.Context, *ApplySnapshotChunkRequest) (*ApplySnapshotChunkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented")
}
func (UnimplementedABCIServiceServer) PrepareProposal(context.Context, *PrepareProposalRequest) (*PrepareProposalResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PrepareProposal not implemented")
}
func (UnimplementedABCIServiceServer) ProcessProposal(context.Context, *ProcessProposalRequest) (*ProcessProposalResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProcessProposal not implemented")
}
func (UnimplementedABCIServiceServer) ExtendVote(context.Context, *ExtendVoteRequest) (*ExtendVoteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExtendVote not implemented")
}
func (UnimplementedABCIServiceServer) VerifyVoteExtension(context.Context, *VerifyVoteExtensionRequest) (*VerifyVoteExtensionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyVoteExtension not implemented")
}
func (UnimplementedABCIServiceServer) FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FinalizeBlock not implemented")
}
func (UnimplementedABCIServiceServer) mustEmbedUnimplementedABCIServiceServer() {}
func (UnimplementedABCIServiceServer) testEmbeddedByValue() {}
// UnsafeABCIServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ABCIServiceServer will
// result in compilation errors.
type UnsafeABCIServiceServer interface {
mustEmbedUnimplementedABCIServiceServer()
}
func RegisterABCIServiceServer(s grpc.ServiceRegistrar, srv ABCIServiceServer) {
// If the following call pancis, it indicates UnimplementedABCIServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&ABCIService_ServiceDesc, srv)
}
func _ABCIService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EchoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).Echo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_Echo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).Echo(ctx, req.(*EchoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FlushRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).Flush(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_Flush_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).Flush(ctx, req.(*FlushRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).Info(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_Info_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).Info(ctx, req.(*InfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckTxRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).CheckTx(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_CheckTx_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).CheckTx(ctx, req.(*CheckTxRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).Query(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_Query_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).Query(ctx, req.(*QueryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CommitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).Commit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_Commit_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).Commit(ctx, req.(*CommitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InitChainRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).InitChain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_InitChain_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).InitChain(ctx, req.(*InitChainRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSnapshotsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).ListSnapshots(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_ListSnapshots_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).ListSnapshots(ctx, req.(*ListSnapshotsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OfferSnapshotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).OfferSnapshot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_OfferSnapshot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).OfferSnapshot(ctx, req.(*OfferSnapshotRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LoadSnapshotChunkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).LoadSnapshotChunk(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_LoadSnapshotChunk_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).LoadSnapshotChunk(ctx, req.(*LoadSnapshotChunkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ApplySnapshotChunkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).ApplySnapshotChunk(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_ApplySnapshotChunk_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).ApplySnapshotChunk(ctx, req.(*ApplySnapshotChunkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_PrepareProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PrepareProposalRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).PrepareProposal(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_PrepareProposal_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).PrepareProposal(ctx, req.(*PrepareProposalRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ProcessProposalRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).ProcessProposal(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_ProcessProposal_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).ProcessProposal(ctx, req.(*ProcessProposalRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_ExtendVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ExtendVoteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).ExtendVote(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_ExtendVote_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).ExtendVote(ctx, req.(*ExtendVoteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_VerifyVoteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyVoteExtensionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).VerifyVoteExtension(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_VerifyVoteExtension_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).VerifyVoteExtension(ctx, req.(*VerifyVoteExtensionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ABCIService_FinalizeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FinalizeBlockRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ABCIServiceServer).FinalizeBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ABCIService_FinalizeBlock_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ABCIServiceServer).FinalizeBlock(ctx, req.(*FinalizeBlockRequest))
}
return interceptor(ctx, in, info, handler)
}
// ABCIService_ServiceDesc is the grpc.ServiceDesc for ABCIService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ABCIService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cometbft.abci.v1.ABCIService",
HandlerType: (*ABCIServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Echo",
Handler: _ABCIService_Echo_Handler,
},
{
MethodName: "Flush",
Handler: _ABCIService_Flush_Handler,
},
{
MethodName: "Info",
Handler: _ABCIService_Info_Handler,
},
{
MethodName: "CheckTx",
Handler: _ABCIService_CheckTx_Handler,
},
{
MethodName: "Query",
Handler: _ABCIService_Query_Handler,
},
{
MethodName: "Commit",
Handler: _ABCIService_Commit_Handler,
},
{
MethodName: "InitChain",
Handler: _ABCIService_InitChain_Handler,
},
{
MethodName: "ListSnapshots",
Handler: _ABCIService_ListSnapshots_Handler,
},
{
MethodName: "OfferSnapshot",
Handler: _ABCIService_OfferSnapshot_Handler,
},
{
MethodName: "LoadSnapshotChunk",
Handler: _ABCIService_LoadSnapshotChunk_Handler,
},
{
MethodName: "ApplySnapshotChunk",
Handler: _ABCIService_ApplySnapshotChunk_Handler,
},
{
MethodName: "PrepareProposal",
Handler: _ABCIService_PrepareProposal_Handler,
},
{
MethodName: "ProcessProposal",
Handler: _ABCIService_ProcessProposal_Handler,
},
{
MethodName: "ExtendVote",
Handler: _ABCIService_ExtendVote_Handler,
},
{
MethodName: "VerifyVoteExtension",
Handler: _ABCIService_VerifyVoteExtension_Handler,
},
{
MethodName: "FinalizeBlock",
Handler: _ABCIService_FinalizeBlock_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cometbft/abci/v1/service.proto",
}
File diff suppressed because it is too large Load Diff
+821
View File
@@ -0,0 +1,821 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cryptov1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_PublicKey protoreflect.MessageDescriptor
fd_PublicKey_ed25519 protoreflect.FieldDescriptor
fd_PublicKey_secp256k1 protoreflect.FieldDescriptor
fd_PublicKey_bls12381 protoreflect.FieldDescriptor
)
func init() {
file_cometbft_crypto_v1_keys_proto_init()
md_PublicKey = File_cometbft_crypto_v1_keys_proto.Messages().ByName("PublicKey")
fd_PublicKey_ed25519 = md_PublicKey.Fields().ByName("ed25519")
fd_PublicKey_secp256k1 = md_PublicKey.Fields().ByName("secp256k1")
fd_PublicKey_bls12381 = md_PublicKey.Fields().ByName("bls12381")
}
var _ protoreflect.Message = (*fastReflection_PublicKey)(nil)
type fastReflection_PublicKey PublicKey
func (x *PublicKey) ProtoReflect() protoreflect.Message {
return (*fastReflection_PublicKey)(x)
}
func (x *PublicKey) slowProtoReflect() protoreflect.Message {
mi := &file_cometbft_crypto_v1_keys_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_PublicKey_messageType fastReflection_PublicKey_messageType
var _ protoreflect.MessageType = fastReflection_PublicKey_messageType{}
type fastReflection_PublicKey_messageType struct{}
func (x fastReflection_PublicKey_messageType) Zero() protoreflect.Message {
return (*fastReflection_PublicKey)(nil)
}
func (x fastReflection_PublicKey_messageType) New() protoreflect.Message {
return new(fastReflection_PublicKey)
}
func (x fastReflection_PublicKey_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_PublicKey
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_PublicKey) Descriptor() protoreflect.MessageDescriptor {
return md_PublicKey
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_PublicKey) Type() protoreflect.MessageType {
return _fastReflection_PublicKey_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_PublicKey) New() protoreflect.Message {
return new(fastReflection_PublicKey)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_PublicKey) Interface() protoreflect.ProtoMessage {
return (*PublicKey)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_PublicKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Sum != nil {
switch o := x.Sum.(type) {
case *PublicKey_Ed25519:
v := o.Ed25519
value := protoreflect.ValueOfBytes(v)
if !f(fd_PublicKey_ed25519, value) {
return
}
case *PublicKey_Secp256K1:
v := o.Secp256K1
value := protoreflect.ValueOfBytes(v)
if !f(fd_PublicKey_secp256k1, value) {
return
}
case *PublicKey_Bls12381:
v := o.Bls12381
value := protoreflect.ValueOfBytes(v)
if !f(fd_PublicKey_bls12381, value) {
return
}
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_PublicKey) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
if x.Sum == nil {
return false
} else if _, ok := x.Sum.(*PublicKey_Ed25519); ok {
return true
} else {
return false
}
case "cometbft.crypto.v1.PublicKey.secp256k1":
if x.Sum == nil {
return false
} else if _, ok := x.Sum.(*PublicKey_Secp256K1); ok {
return true
} else {
return false
}
case "cometbft.crypto.v1.PublicKey.bls12381":
if x.Sum == nil {
return false
} else if _, ok := x.Sum.(*PublicKey_Bls12381); ok {
return true
} else {
return false
}
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PublicKey) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
x.Sum = nil
case "cometbft.crypto.v1.PublicKey.secp256k1":
x.Sum = nil
case "cometbft.crypto.v1.PublicKey.bls12381":
x.Sum = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_PublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
if x.Sum == nil {
return protoreflect.ValueOfBytes(nil)
} else if v, ok := x.Sum.(*PublicKey_Ed25519); ok {
return protoreflect.ValueOfBytes(v.Ed25519)
} else {
return protoreflect.ValueOfBytes(nil)
}
case "cometbft.crypto.v1.PublicKey.secp256k1":
if x.Sum == nil {
return protoreflect.ValueOfBytes(nil)
} else if v, ok := x.Sum.(*PublicKey_Secp256K1); ok {
return protoreflect.ValueOfBytes(v.Secp256K1)
} else {
return protoreflect.ValueOfBytes(nil)
}
case "cometbft.crypto.v1.PublicKey.bls12381":
if x.Sum == nil {
return protoreflect.ValueOfBytes(nil)
} else if v, ok := x.Sum.(*PublicKey_Bls12381); ok {
return protoreflect.ValueOfBytes(v.Bls12381)
} else {
return protoreflect.ValueOfBytes(nil)
}
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
cv := value.Bytes()
x.Sum = &PublicKey_Ed25519{Ed25519: cv}
case "cometbft.crypto.v1.PublicKey.secp256k1":
cv := value.Bytes()
x.Sum = &PublicKey_Secp256K1{Secp256K1: cv}
case "cometbft.crypto.v1.PublicKey.bls12381":
cv := value.Bytes()
x.Sum = &PublicKey_Bls12381{Bls12381: cv}
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
panic(fmt.Errorf("field ed25519 of message cometbft.crypto.v1.PublicKey is not mutable"))
case "cometbft.crypto.v1.PublicKey.secp256k1":
panic(fmt.Errorf("field secp256k1 of message cometbft.crypto.v1.PublicKey is not mutable"))
case "cometbft.crypto.v1.PublicKey.bls12381":
panic(fmt.Errorf("field bls12381 of message cometbft.crypto.v1.PublicKey is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_PublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.crypto.v1.PublicKey.ed25519":
return protoreflect.ValueOfBytes(nil)
case "cometbft.crypto.v1.PublicKey.secp256k1":
return protoreflect.ValueOfBytes(nil)
case "cometbft.crypto.v1.PublicKey.bls12381":
return protoreflect.ValueOfBytes(nil)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.crypto.v1.PublicKey"))
}
panic(fmt.Errorf("message cometbft.crypto.v1.PublicKey does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_PublicKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
case "cometbft.crypto.v1.PublicKey.sum":
if x.Sum == nil {
return nil
}
switch x.Sum.(type) {
case *PublicKey_Ed25519:
return x.Descriptor().Fields().ByName("ed25519")
case *PublicKey_Secp256K1:
return x.Descriptor().Fields().ByName("secp256k1")
case *PublicKey_Bls12381:
return x.Descriptor().Fields().ByName("bls12381")
}
default:
panic(fmt.Errorf("%s is not a oneof field in cometbft.crypto.v1.PublicKey", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_PublicKey) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PublicKey) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_PublicKey) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_PublicKey) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*PublicKey)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
switch x := x.Sum.(type) {
case *PublicKey_Ed25519:
if x == nil {
break
}
l = len(x.Ed25519)
n += 1 + l + runtime.Sov(uint64(l))
case *PublicKey_Secp256K1:
if x == nil {
break
}
l = len(x.Secp256K1)
n += 1 + l + runtime.Sov(uint64(l))
case *PublicKey_Bls12381:
if x == nil {
break
}
l = len(x.Bls12381)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*PublicKey)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
switch x := x.Sum.(type) {
case *PublicKey_Ed25519:
i -= len(x.Ed25519)
copy(dAtA[i:], x.Ed25519)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ed25519)))
i--
dAtA[i] = 0xa
case *PublicKey_Secp256K1:
i -= len(x.Secp256K1)
copy(dAtA[i:], x.Secp256K1)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Secp256K1)))
i--
dAtA[i] = 0x12
case *PublicKey_Bls12381:
i -= len(x.Bls12381)
copy(dAtA[i:], x.Bls12381)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bls12381)))
i--
dAtA[i] = 0x1a
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*PublicKey)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PublicKey: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PublicKey: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ed25519", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
x.Sum = &PublicKey_Ed25519{v}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Secp256K1", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
x.Sum = &PublicKey_Secp256K1{v}
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bls12381", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
x.Sum = &PublicKey_Bls12381{v}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: cometbft/crypto/v1/keys.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// PublicKey is a ED25519 or a secp256k1 public key.
type PublicKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of key.
//
// Types that are assignable to Sum:
//
// *PublicKey_Ed25519
// *PublicKey_Secp256K1
// *PublicKey_Bls12381
Sum isPublicKey_Sum `protobuf_oneof:"sum"`
}
func (x *PublicKey) Reset() {
*x = PublicKey{}
if protoimpl.UnsafeEnabled {
mi := &file_cometbft_crypto_v1_keys_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PublicKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PublicKey) ProtoMessage() {}
// Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.
func (*PublicKey) Descriptor() ([]byte, []int) {
return file_cometbft_crypto_v1_keys_proto_rawDescGZIP(), []int{0}
}
func (x *PublicKey) GetSum() isPublicKey_Sum {
if x != nil {
return x.Sum
}
return nil
}
func (x *PublicKey) GetEd25519() []byte {
if x, ok := x.GetSum().(*PublicKey_Ed25519); ok {
return x.Ed25519
}
return nil
}
func (x *PublicKey) GetSecp256K1() []byte {
if x, ok := x.GetSum().(*PublicKey_Secp256K1); ok {
return x.Secp256K1
}
return nil
}
func (x *PublicKey) GetBls12381() []byte {
if x, ok := x.GetSum().(*PublicKey_Bls12381); ok {
return x.Bls12381
}
return nil
}
type isPublicKey_Sum interface {
isPublicKey_Sum()
}
type PublicKey_Ed25519 struct {
Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof"`
}
type PublicKey_Secp256K1 struct {
Secp256K1 []byte `protobuf:"bytes,2,opt,name=secp256k1,proto3,oneof"`
}
type PublicKey_Bls12381 struct {
Bls12381 []byte `protobuf:"bytes,3,opt,name=bls12381,proto3,oneof"`
}
func (*PublicKey_Ed25519) isPublicKey_Sum() {}
func (*PublicKey_Secp256K1) isPublicKey_Sum() {}
func (*PublicKey_Bls12381) isPublicKey_Sum() {}
var File_cometbft_crypto_v1_keys_proto protoreflect.FileDescriptor
var file_cometbft_crypto_v1_keys_proto_rawDesc = []byte{
0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74,
0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x12, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x09, 0x50, 0x75, 0x62,
0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31,
0x39, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x65, 0x64, 0x32, 0x35, 0x35,
0x31, 0x39, 0x12, 0x1e, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36, 0x6b, 0x31, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x63, 0x70, 0x32, 0x35, 0x36,
0x6b, 0x31, 0x12, 0x1c, 0x0a, 0x08, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x62, 0x6c, 0x73, 0x31, 0x32, 0x33, 0x38, 0x31,
0x3a, 0x08, 0xe8, 0xa0, 0x1f, 0x01, 0xe8, 0xa1, 0x1f, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75,
0x6d, 0x42, 0xbb, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
0x66, 0x74, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4b, 0x65,
0x79, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65,
0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x63,
0x72, 0x79, 0x70, 0x74, 0x6f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x12,
0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e,
0x56, 0x31, 0xca, 0x02, 0x12, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x43, 0x72,
0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62,
0x66, 0x74, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x3a, 0x3a, 0x56, 0x31, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cometbft_crypto_v1_keys_proto_rawDescOnce sync.Once
file_cometbft_crypto_v1_keys_proto_rawDescData = file_cometbft_crypto_v1_keys_proto_rawDesc
)
func file_cometbft_crypto_v1_keys_proto_rawDescGZIP() []byte {
file_cometbft_crypto_v1_keys_proto_rawDescOnce.Do(func() {
file_cometbft_crypto_v1_keys_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_crypto_v1_keys_proto_rawDescData)
})
return file_cometbft_crypto_v1_keys_proto_rawDescData
}
var file_cometbft_crypto_v1_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cometbft_crypto_v1_keys_proto_goTypes = []interface{}{
(*PublicKey)(nil), // 0: cometbft.crypto.v1.PublicKey
}
var file_cometbft_crypto_v1_keys_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cometbft_crypto_v1_keys_proto_init() }
func file_cometbft_crypto_v1_keys_proto_init() {
if File_cometbft_crypto_v1_keys_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cometbft_crypto_v1_keys_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PublicKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_cometbft_crypto_v1_keys_proto_msgTypes[0].OneofWrappers = []interface{}{
(*PublicKey_Ed25519)(nil),
(*PublicKey_Secp256K1)(nil),
(*PublicKey_Bls12381)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cometbft_crypto_v1_keys_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cometbft_crypto_v1_keys_proto_goTypes,
DependencyIndexes: file_cometbft_crypto_v1_keys_proto_depIdxs,
MessageInfos: file_cometbft_crypto_v1_keys_proto_msgTypes,
}.Build()
File_cometbft_crypto_v1_keys_proto = out.File
file_cometbft_crypto_v1_keys_proto_rawDesc = nil
file_cometbft_crypto_v1_keys_proto_goTypes = nil
file_cometbft_crypto_v1_keys_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
+743
View File
@@ -0,0 +1,743 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package bitsv1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_BitArray_2_list)(nil)
type _BitArray_2_list struct {
list *[]uint64
}
func (x *_BitArray_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_BitArray_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfUint64((*x.list)[i])
}
func (x *_BitArray_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Uint()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
func (x *_BitArray_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Uint()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
func (x *_BitArray_2_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message BitArray at list field Elems as it is not of Message kind"))
}
func (x *_BitArray_2_list) Truncate(n int) {
*x.list = (*x.list)[:n]
}
func (x *_BitArray_2_list) NewElement() protoreflect.Value {
v := uint64(0)
return protoreflect.ValueOfUint64(v)
}
func (x *_BitArray_2_list) IsValid() bool {
return x.list != nil
}
var (
md_BitArray protoreflect.MessageDescriptor
fd_BitArray_bits protoreflect.FieldDescriptor
fd_BitArray_elems protoreflect.FieldDescriptor
)
func init() {
file_cometbft_libs_bits_v1_types_proto_init()
md_BitArray = File_cometbft_libs_bits_v1_types_proto.Messages().ByName("BitArray")
fd_BitArray_bits = md_BitArray.Fields().ByName("bits")
fd_BitArray_elems = md_BitArray.Fields().ByName("elems")
}
var _ protoreflect.Message = (*fastReflection_BitArray)(nil)
type fastReflection_BitArray BitArray
func (x *BitArray) ProtoReflect() protoreflect.Message {
return (*fastReflection_BitArray)(x)
}
func (x *BitArray) slowProtoReflect() protoreflect.Message {
mi := &file_cometbft_libs_bits_v1_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_BitArray_messageType fastReflection_BitArray_messageType
var _ protoreflect.MessageType = fastReflection_BitArray_messageType{}
type fastReflection_BitArray_messageType struct{}
func (x fastReflection_BitArray_messageType) Zero() protoreflect.Message {
return (*fastReflection_BitArray)(nil)
}
func (x fastReflection_BitArray_messageType) New() protoreflect.Message {
return new(fastReflection_BitArray)
}
func (x fastReflection_BitArray_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_BitArray
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_BitArray) Descriptor() protoreflect.MessageDescriptor {
return md_BitArray
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_BitArray) Type() protoreflect.MessageType {
return _fastReflection_BitArray_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_BitArray) New() protoreflect.Message {
return new(fastReflection_BitArray)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_BitArray) Interface() protoreflect.ProtoMessage {
return (*BitArray)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_BitArray) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Bits != int64(0) {
value := protoreflect.ValueOfInt64(x.Bits)
if !f(fd_BitArray_bits, value) {
return
}
}
if len(x.Elems) != 0 {
value := protoreflect.ValueOfList(&_BitArray_2_list{list: &x.Elems})
if !f(fd_BitArray_elems, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_BitArray) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cometbft.libs.bits.v1.BitArray.bits":
return x.Bits != int64(0)
case "cometbft.libs.bits.v1.BitArray.elems":
return len(x.Elems) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_BitArray) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cometbft.libs.bits.v1.BitArray.bits":
x.Bits = int64(0)
case "cometbft.libs.bits.v1.BitArray.elems":
x.Elems = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_BitArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "cometbft.libs.bits.v1.BitArray.bits":
value := x.Bits
return protoreflect.ValueOfInt64(value)
case "cometbft.libs.bits.v1.BitArray.elems":
if len(x.Elems) == 0 {
return protoreflect.ValueOfList(&_BitArray_2_list{})
}
listValue := &_BitArray_2_list{list: &x.Elems}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_BitArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cometbft.libs.bits.v1.BitArray.bits":
x.Bits = value.Int()
case "cometbft.libs.bits.v1.BitArray.elems":
lv := value.List()
clv := lv.(*_BitArray_2_list)
x.Elems = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_BitArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.libs.bits.v1.BitArray.elems":
if x.Elems == nil {
x.Elems = []uint64{}
}
value := &_BitArray_2_list{list: &x.Elems}
return protoreflect.ValueOfList(value)
case "cometbft.libs.bits.v1.BitArray.bits":
panic(fmt.Errorf("field bits of message cometbft.libs.bits.v1.BitArray is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_BitArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.libs.bits.v1.BitArray.bits":
return protoreflect.ValueOfInt64(int64(0))
case "cometbft.libs.bits.v1.BitArray.elems":
list := []uint64{}
return protoreflect.ValueOfList(&_BitArray_2_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.libs.bits.v1.BitArray"))
}
panic(fmt.Errorf("message cometbft.libs.bits.v1.BitArray does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_BitArray) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in cometbft.libs.bits.v1.BitArray", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_BitArray) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_BitArray) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_BitArray) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_BitArray) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*BitArray)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Bits != 0 {
n += 1 + runtime.Sov(uint64(x.Bits))
}
if len(x.Elems) > 0 {
l = 0
for _, e := range x.Elems {
l += runtime.Sov(uint64(e))
}
n += 1 + runtime.Sov(uint64(l)) + l
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*BitArray)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Elems) > 0 {
var pksize2 int
for _, num := range x.Elems {
pksize2 += runtime.Sov(uint64(num))
}
i -= pksize2
j1 := i
for _, num := range x.Elems {
for num >= 1<<7 {
dAtA[j1] = uint8(uint64(num)&0x7f | 0x80)
num >>= 7
j1++
}
dAtA[j1] = uint8(num)
j1++
}
i = runtime.EncodeVarint(dAtA, i, uint64(pksize2))
i--
dAtA[i] = 0x12
}
if x.Bits != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Bits))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*BitArray)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BitArray: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BitArray: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bits", wireType)
}
x.Bits = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Bits |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType == 0 {
var v uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.Elems = append(x.Elems, v)
} else if wireType == 2 {
var packedLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
packedLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if packedLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + packedLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
var elementCount int
var count int
for _, integer := range dAtA[iNdEx:postIndex] {
if integer < 128 {
count++
}
}
elementCount = count
if elementCount != 0 && len(x.Elems) == 0 {
x.Elems = make([]uint64, 0, elementCount)
}
for iNdEx < postIndex {
var v uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.Elems = append(x.Elems, v)
}
} else {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Elems", wireType)
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: cometbft/libs/bits/v1/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// BitArray is an array of bits.
type BitArray struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bits int64 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"`
Elems []uint64 `protobuf:"varint,2,rep,packed,name=elems,proto3" json:"elems,omitempty"`
}
func (x *BitArray) Reset() {
*x = BitArray{}
if protoimpl.UnsafeEnabled {
mi := &file_cometbft_libs_bits_v1_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BitArray) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BitArray) ProtoMessage() {}
// Deprecated: Use BitArray.ProtoReflect.Descriptor instead.
func (*BitArray) Descriptor() ([]byte, []int) {
return file_cometbft_libs_bits_v1_types_proto_rawDescGZIP(), []int{0}
}
func (x *BitArray) GetBits() int64 {
if x != nil {
return x.Bits
}
return 0
}
func (x *BitArray) GetElems() []uint64 {
if x != nil {
return x.Elems
}
return nil
}
var File_cometbft_libs_bits_v1_types_proto protoreflect.FileDescriptor
var file_cometbft_libs_bits_v1_types_proto_rawDesc = []byte{
0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f,
0x62, 0x69, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x6c, 0x69,
0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x34, 0x0a, 0x08, 0x42, 0x69,
0x74, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6c,
0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x05, 0x65, 0x6c, 0x65, 0x6d, 0x73,
0x42, 0xcd, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x62, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a,
0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x62, 0x69, 0x74,
0x73, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x69, 0x74, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4c,
0x42, 0xaa, 0x02, 0x15, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x4c, 0x69, 0x62,
0x73, 0x2e, 0x42, 0x69, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x43, 0x6f, 0x6d, 0x65,
0x74, 0x62, 0x66, 0x74, 0x5c, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x42, 0x69, 0x74, 0x73, 0x5c, 0x56,
0x31, 0xe2, 0x02, 0x21, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x4c, 0x69, 0x62,
0x73, 0x5c, 0x42, 0x69, 0x74, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
0x3a, 0x3a, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x42, 0x69, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cometbft_libs_bits_v1_types_proto_rawDescOnce sync.Once
file_cometbft_libs_bits_v1_types_proto_rawDescData = file_cometbft_libs_bits_v1_types_proto_rawDesc
)
func file_cometbft_libs_bits_v1_types_proto_rawDescGZIP() []byte {
file_cometbft_libs_bits_v1_types_proto_rawDescOnce.Do(func() {
file_cometbft_libs_bits_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_libs_bits_v1_types_proto_rawDescData)
})
return file_cometbft_libs_bits_v1_types_proto_rawDescData
}
var file_cometbft_libs_bits_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cometbft_libs_bits_v1_types_proto_goTypes = []interface{}{
(*BitArray)(nil), // 0: cometbft.libs.bits.v1.BitArray
}
var file_cometbft_libs_bits_v1_types_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cometbft_libs_bits_v1_types_proto_init() }
func file_cometbft_libs_bits_v1_types_proto_init() {
if File_cometbft_libs_bits_v1_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cometbft_libs_bits_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BitArray); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cometbft_libs_bits_v1_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cometbft_libs_bits_v1_types_proto_goTypes,
DependencyIndexes: file_cometbft_libs_bits_v1_types_proto_depIdxs,
MessageInfos: file_cometbft_libs_bits_v1_types_proto_msgTypes,
}.Build()
File_cometbft_libs_bits_v1_types_proto = out.File
file_cometbft_libs_bits_v1_types_proto_rawDesc = nil
file_cometbft_libs_bits_v1_types_proto_goTypes = nil
file_cometbft_libs_bits_v1_types_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+873
View File
@@ -0,0 +1,873 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package typesv1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Block protoreflect.MessageDescriptor
fd_Block_header protoreflect.FieldDescriptor
fd_Block_data protoreflect.FieldDescriptor
fd_Block_evidence protoreflect.FieldDescriptor
fd_Block_last_commit protoreflect.FieldDescriptor
)
func init() {
file_cometbft_types_v1_block_proto_init()
md_Block = File_cometbft_types_v1_block_proto.Messages().ByName("Block")
fd_Block_header = md_Block.Fields().ByName("header")
fd_Block_data = md_Block.Fields().ByName("data")
fd_Block_evidence = md_Block.Fields().ByName("evidence")
fd_Block_last_commit = md_Block.Fields().ByName("last_commit")
}
var _ protoreflect.Message = (*fastReflection_Block)(nil)
type fastReflection_Block Block
func (x *Block) ProtoReflect() protoreflect.Message {
return (*fastReflection_Block)(x)
}
func (x *Block) slowProtoReflect() protoreflect.Message {
mi := &file_cometbft_types_v1_block_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Block_messageType fastReflection_Block_messageType
var _ protoreflect.MessageType = fastReflection_Block_messageType{}
type fastReflection_Block_messageType struct{}
func (x fastReflection_Block_messageType) Zero() protoreflect.Message {
return (*fastReflection_Block)(nil)
}
func (x fastReflection_Block_messageType) New() protoreflect.Message {
return new(fastReflection_Block)
}
func (x fastReflection_Block_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Block
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Block) Descriptor() protoreflect.MessageDescriptor {
return md_Block
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Block) Type() protoreflect.MessageType {
return _fastReflection_Block_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Block) New() protoreflect.Message {
return new(fastReflection_Block)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Block) Interface() protoreflect.ProtoMessage {
return (*Block)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Block) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Header != nil {
value := protoreflect.ValueOfMessage(x.Header.ProtoReflect())
if !f(fd_Block_header, value) {
return
}
}
if x.Data != nil {
value := protoreflect.ValueOfMessage(x.Data.ProtoReflect())
if !f(fd_Block_data, value) {
return
}
}
if x.Evidence != nil {
value := protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
if !f(fd_Block_evidence, value) {
return
}
}
if x.LastCommit != nil {
value := protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect())
if !f(fd_Block_last_commit, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Block) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cometbft.types.v1.Block.header":
return x.Header != nil
case "cometbft.types.v1.Block.data":
return x.Data != nil
case "cometbft.types.v1.Block.evidence":
return x.Evidence != nil
case "cometbft.types.v1.Block.last_commit":
return x.LastCommit != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Block) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cometbft.types.v1.Block.header":
x.Header = nil
case "cometbft.types.v1.Block.data":
x.Data = nil
case "cometbft.types.v1.Block.evidence":
x.Evidence = nil
case "cometbft.types.v1.Block.last_commit":
x.LastCommit = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Block) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "cometbft.types.v1.Block.header":
value := x.Header
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "cometbft.types.v1.Block.data":
value := x.Data
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "cometbft.types.v1.Block.evidence":
value := x.Evidence
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "cometbft.types.v1.Block.last_commit":
value := x.LastCommit
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cometbft.types.v1.Block.header":
x.Header = value.Message().Interface().(*Header)
case "cometbft.types.v1.Block.data":
x.Data = value.Message().Interface().(*Data)
case "cometbft.types.v1.Block.evidence":
x.Evidence = value.Message().Interface().(*EvidenceList)
case "cometbft.types.v1.Block.last_commit":
x.LastCommit = value.Message().Interface().(*Commit)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.types.v1.Block.header":
if x.Header == nil {
x.Header = new(Header)
}
return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
case "cometbft.types.v1.Block.data":
if x.Data == nil {
x.Data = new(Data)
}
return protoreflect.ValueOfMessage(x.Data.ProtoReflect())
case "cometbft.types.v1.Block.evidence":
if x.Evidence == nil {
x.Evidence = new(EvidenceList)
}
return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
case "cometbft.types.v1.Block.last_commit":
if x.LastCommit == nil {
x.LastCommit = new(Commit)
}
return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.types.v1.Block.header":
m := new(Header)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "cometbft.types.v1.Block.data":
m := new(Data)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "cometbft.types.v1.Block.evidence":
m := new(EvidenceList)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "cometbft.types.v1.Block.last_commit":
m := new(Commit)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Block"))
}
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Block) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v1.Block", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Block) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Block) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Block) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Block)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Header != nil {
l = options.Size(x.Header)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Data != nil {
l = options.Size(x.Data)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Evidence != nil {
l = options.Size(x.Evidence)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.LastCommit != nil {
l = options.Size(x.LastCommit)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Block)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.LastCommit != nil {
encoded, err := options.Marshal(x.LastCommit)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
if x.Evidence != nil {
encoded, err := options.Marshal(x.Evidence)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.Data != nil {
encoded, err := options.Marshal(x.Data)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if x.Header != nil {
encoded, err := options.Marshal(x.Header)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Block)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Block: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Header == nil {
x.Header = &Header{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Header); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Data == nil {
x.Data = &Data{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Evidence == nil {
x.Evidence = &EvidenceList{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.LastCommit == nil {
x.LastCommit = &Commit{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: cometbft/types/v1/block.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Block defines the structure of a block in the CometBFT blockchain.
type Block struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Evidence *EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
LastCommit *Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
}
func (x *Block) Reset() {
*x = Block{}
if protoimpl.UnsafeEnabled {
mi := &file_cometbft_types_v1_block_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Block) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Block) ProtoMessage() {}
// Deprecated: Use Block.ProtoReflect.Descriptor instead.
func (*Block) Descriptor() ([]byte, []int) {
return file_cometbft_types_v1_block_proto_rawDescGZIP(), []int{0}
}
func (x *Block) GetHeader() *Header {
if x != nil {
return x.Header
}
return nil
}
func (x *Block) GetData() *Data {
if x != nil {
return x.Data
}
return nil
}
func (x *Block) GetEvidence() *EvidenceList {
if x != nil {
return x.Evidence
}
return nil
}
func (x *Block) GetLastCommit() *Commit {
if x != nil {
return x.LastCommit
}
return nil
}
var File_cometbft_types_v1_block_proto protoreflect.FileDescriptor
var file_cometbft_types_v1_block_proto_rawDesc = []byte{
0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x42, 0x6c,
0x6f, 0x63, 0x6b, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04,
0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x04,
0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d,
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44,
0x61, 0x74, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
0x41, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70,
0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69,
0x73, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e,
0x63, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69,
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
0x69, 0x74, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0xb5,
0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64,
0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73,
0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74,
0x62, 0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x43,
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31,
0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65,
0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0xea, 0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70,
0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cometbft_types_v1_block_proto_rawDescOnce sync.Once
file_cometbft_types_v1_block_proto_rawDescData = file_cometbft_types_v1_block_proto_rawDesc
)
func file_cometbft_types_v1_block_proto_rawDescGZIP() []byte {
file_cometbft_types_v1_block_proto_rawDescOnce.Do(func() {
file_cometbft_types_v1_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v1_block_proto_rawDescData)
})
return file_cometbft_types_v1_block_proto_rawDescData
}
var file_cometbft_types_v1_block_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cometbft_types_v1_block_proto_goTypes = []interface{}{
(*Block)(nil), // 0: cometbft.types.v1.Block
(*Header)(nil), // 1: cometbft.types.v1.Header
(*Data)(nil), // 2: cometbft.types.v1.Data
(*EvidenceList)(nil), // 3: cometbft.types.v1.EvidenceList
(*Commit)(nil), // 4: cometbft.types.v1.Commit
}
var file_cometbft_types_v1_block_proto_depIdxs = []int32{
1, // 0: cometbft.types.v1.Block.header:type_name -> cometbft.types.v1.Header
2, // 1: cometbft.types.v1.Block.data:type_name -> cometbft.types.v1.Data
3, // 2: cometbft.types.v1.Block.evidence:type_name -> cometbft.types.v1.EvidenceList
4, // 3: cometbft.types.v1.Block.last_commit:type_name -> cometbft.types.v1.Commit
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_cometbft_types_v1_block_proto_init() }
func file_cometbft_types_v1_block_proto_init() {
if File_cometbft_types_v1_block_proto != nil {
return
}
file_cometbft_types_v1_types_proto_init()
file_cometbft_types_v1_evidence_proto_init()
if !protoimpl.UnsafeEnabled {
file_cometbft_types_v1_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Block); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cometbft_types_v1_block_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cometbft_types_v1_block_proto_goTypes,
DependencyIndexes: file_cometbft_types_v1_block_proto_depIdxs,
MessageInfos: file_cometbft_types_v1_block_proto_msgTypes,
}.Build()
File_cometbft_types_v1_block_proto = out.File
file_cometbft_types_v1_block_proto_rawDesc = nil
file_cometbft_types_v1_block_proto_goTypes = nil
file_cometbft_types_v1_block_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
+683
View File
@@ -0,0 +1,683 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package typesv1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_EventDataRoundState protoreflect.MessageDescriptor
fd_EventDataRoundState_height protoreflect.FieldDescriptor
fd_EventDataRoundState_round protoreflect.FieldDescriptor
fd_EventDataRoundState_step protoreflect.FieldDescriptor
)
func init() {
file_cometbft_types_v1_events_proto_init()
md_EventDataRoundState = File_cometbft_types_v1_events_proto.Messages().ByName("EventDataRoundState")
fd_EventDataRoundState_height = md_EventDataRoundState.Fields().ByName("height")
fd_EventDataRoundState_round = md_EventDataRoundState.Fields().ByName("round")
fd_EventDataRoundState_step = md_EventDataRoundState.Fields().ByName("step")
}
var _ protoreflect.Message = (*fastReflection_EventDataRoundState)(nil)
type fastReflection_EventDataRoundState EventDataRoundState
func (x *EventDataRoundState) ProtoReflect() protoreflect.Message {
return (*fastReflection_EventDataRoundState)(x)
}
func (x *EventDataRoundState) slowProtoReflect() protoreflect.Message {
mi := &file_cometbft_types_v1_events_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_EventDataRoundState_messageType fastReflection_EventDataRoundState_messageType
var _ protoreflect.MessageType = fastReflection_EventDataRoundState_messageType{}
type fastReflection_EventDataRoundState_messageType struct{}
func (x fastReflection_EventDataRoundState_messageType) Zero() protoreflect.Message {
return (*fastReflection_EventDataRoundState)(nil)
}
func (x fastReflection_EventDataRoundState_messageType) New() protoreflect.Message {
return new(fastReflection_EventDataRoundState)
}
func (x fastReflection_EventDataRoundState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_EventDataRoundState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_EventDataRoundState) Descriptor() protoreflect.MessageDescriptor {
return md_EventDataRoundState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_EventDataRoundState) Type() protoreflect.MessageType {
return _fastReflection_EventDataRoundState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_EventDataRoundState) New() protoreflect.Message {
return new(fastReflection_EventDataRoundState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_EventDataRoundState) Interface() protoreflect.ProtoMessage {
return (*EventDataRoundState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_EventDataRoundState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Height != int64(0) {
value := protoreflect.ValueOfInt64(x.Height)
if !f(fd_EventDataRoundState_height, value) {
return
}
}
if x.Round != int32(0) {
value := protoreflect.ValueOfInt32(x.Round)
if !f(fd_EventDataRoundState_round, value) {
return
}
}
if x.Step != "" {
value := protoreflect.ValueOfString(x.Step)
if !f(fd_EventDataRoundState_step, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_EventDataRoundState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
return x.Height != int64(0)
case "cometbft.types.v1.EventDataRoundState.round":
return x.Round != int32(0)
case "cometbft.types.v1.EventDataRoundState.step":
return x.Step != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_EventDataRoundState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
x.Height = int64(0)
case "cometbft.types.v1.EventDataRoundState.round":
x.Round = int32(0)
case "cometbft.types.v1.EventDataRoundState.step":
x.Step = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_EventDataRoundState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
value := x.Height
return protoreflect.ValueOfInt64(value)
case "cometbft.types.v1.EventDataRoundState.round":
value := x.Round
return protoreflect.ValueOfInt32(value)
case "cometbft.types.v1.EventDataRoundState.step":
value := x.Step
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_EventDataRoundState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
x.Height = value.Int()
case "cometbft.types.v1.EventDataRoundState.round":
x.Round = int32(value.Int())
case "cometbft.types.v1.EventDataRoundState.step":
x.Step = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_EventDataRoundState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
panic(fmt.Errorf("field height of message cometbft.types.v1.EventDataRoundState is not mutable"))
case "cometbft.types.v1.EventDataRoundState.round":
panic(fmt.Errorf("field round of message cometbft.types.v1.EventDataRoundState is not mutable"))
case "cometbft.types.v1.EventDataRoundState.step":
panic(fmt.Errorf("field step of message cometbft.types.v1.EventDataRoundState is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_EventDataRoundState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cometbft.types.v1.EventDataRoundState.height":
return protoreflect.ValueOfInt64(int64(0))
case "cometbft.types.v1.EventDataRoundState.round":
return protoreflect.ValueOfInt32(int32(0))
case "cometbft.types.v1.EventDataRoundState.step":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.EventDataRoundState"))
}
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_EventDataRoundState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v1.EventDataRoundState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_EventDataRoundState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_EventDataRoundState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_EventDataRoundState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_EventDataRoundState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*EventDataRoundState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Height != 0 {
n += 1 + runtime.Sov(uint64(x.Height))
}
if x.Round != 0 {
n += 1 + runtime.Sov(uint64(x.Round))
}
l = len(x.Step)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*EventDataRoundState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Step) > 0 {
i -= len(x.Step)
copy(dAtA[i:], x.Step)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Step)))
i--
dAtA[i] = 0x1a
}
if x.Round != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Round))
i--
dAtA[i] = 0x10
}
if x.Height != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Height))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*EventDataRoundState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDataRoundState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDataRoundState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
}
x.Height = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Height |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
}
x.Round = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Round |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Step", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Step = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: cometbft/types/v1/events.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// EventDataRoundState is emitted with each new round step.
type EventDataRoundState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
Step string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
}
func (x *EventDataRoundState) Reset() {
*x = EventDataRoundState{}
if protoimpl.UnsafeEnabled {
mi := &file_cometbft_types_v1_events_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventDataRoundState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventDataRoundState) ProtoMessage() {}
// Deprecated: Use EventDataRoundState.ProtoReflect.Descriptor instead.
func (*EventDataRoundState) Descriptor() ([]byte, []int) {
return file_cometbft_types_v1_events_proto_rawDescGZIP(), []int{0}
}
func (x *EventDataRoundState) GetHeight() int64 {
if x != nil {
return x.Height
}
return 0
}
func (x *EventDataRoundState) GetRound() int32 {
if x != nil {
return x.Round
}
return 0
}
func (x *EventDataRoundState) GetStep() string {
if x != nil {
return x.Step
}
return ""
}
var File_cometbft_types_v1_events_proto protoreflect.FileDescriptor
var file_cometbft_types_v1_events_proto_rawDesc = []byte{
0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x11, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x22, 0x57, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61,
0x52, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65,
0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67,
0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x42, 0xb6, 0x01, 0x0a,
0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b,
0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76,
0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62,
0x66, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x43, 0x6f,
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2,
0x02, 0x1d, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73,
0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
0x02, 0x13, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65,
0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cometbft_types_v1_events_proto_rawDescOnce sync.Once
file_cometbft_types_v1_events_proto_rawDescData = file_cometbft_types_v1_events_proto_rawDesc
)
func file_cometbft_types_v1_events_proto_rawDescGZIP() []byte {
file_cometbft_types_v1_events_proto_rawDescOnce.Do(func() {
file_cometbft_types_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v1_events_proto_rawDescData)
})
return file_cometbft_types_v1_events_proto_rawDescData
}
var file_cometbft_types_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cometbft_types_v1_events_proto_goTypes = []interface{}{
(*EventDataRoundState)(nil), // 0: cometbft.types.v1.EventDataRoundState
}
var file_cometbft_types_v1_events_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cometbft_types_v1_events_proto_init() }
func file_cometbft_types_v1_events_proto_init() {
if File_cometbft_types_v1_events_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cometbft_types_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EventDataRoundState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cometbft_types_v1_events_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cometbft_types_v1_events_proto_goTypes,
DependencyIndexes: file_cometbft_types_v1_events_proto_depIdxs,
MessageInfos: file_cometbft_types_v1_events_proto_msgTypes,
}.Build()
File_cometbft_types_v1_events_proto = out.File
file_cometbft_types_v1_events_proto_rawDesc = nil
file_cometbft_types_v1_events_proto_goTypes = nil
file_cometbft_types_v1_events_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -2,8 +2,8 @@
package abciv1beta1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/abci/v1"
v11 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
v1 "cosmossdk.io/api/cometbft/abci/v1"
v11 "cosmossdk.io/api/cometbft/types/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
@@ -2,9 +2,9 @@
package tendermintv1beta1
import (
v11 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/p2p/v1"
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
_ "cosmossdk.io/api/amino"
v11 "cosmossdk.io/api/cometbft/p2p/v1"
v1 "cosmossdk.io/api/cometbft/types/v1"
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
@@ -2,9 +2,9 @@
package tendermintv1beta1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
v11 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/version/v1"
_ "cosmossdk.io/api/amino"
v1 "cosmossdk.io/api/cometbft/types/v1"
v11 "cosmossdk.io/api/cometbft/version/v1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
+1 -1
View File
@@ -2,7 +2,7 @@
package consensusv1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
v1 "cosmossdk.io/api/cometbft/types/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
+1 -1
View File
@@ -2,8 +2,8 @@
package consensusv1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
_ "cosmossdk.io/api/amino"
v1 "cosmossdk.io/api/cometbft/types/v1"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
+2 -2
View File
@@ -2,9 +2,9 @@
package stakingv1beta1
import (
v11 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/abci/v1"
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
_ "cosmossdk.io/api/amino"
v11 "cosmossdk.io/api/cometbft/abci/v1"
v1 "cosmossdk.io/api/cometbft/types/v1"
v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
@@ -2,7 +2,7 @@
package abci
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/abci/v1"
v1 "cosmossdk.io/api/cometbft/abci/v1"
v1beta1 "cosmossdk.io/api/cosmos/store/v1beta1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
+1 -1
View File
@@ -2,7 +2,7 @@
package storev1beta1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/abci/v1"
v1 "cosmossdk.io/api/cometbft/abci/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
+1 -1
View File
@@ -2,7 +2,7 @@
package txv1beta1
import (
v1 "buf.build/gen/go/cometbft/cometbft/protocolbuffers/go/cometbft/types/v1"
v1 "cosmossdk.io/api/cometbft/types/v1"
v1beta11 "cosmossdk.io/api/cosmos/base/abci/v1beta1"
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
+1 -3
View File
@@ -3,16 +3,14 @@ module cosmossdk.io/api
go 1.23.0
require (
buf.build/gen/go/cometbft/cometbft/protocolbuffers/go v1.36.6-20241120201313-68e42a58b301.1
github.com/cosmos/cosmos-proto v1.0.0-beta.5
github.com/cosmos/gogoproto v1.7.0
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463
google.golang.org/grpc v1.72.2
google.golang.org/grpc v1.72.0
google.golang.org/protobuf v1.36.6
)
require (
buf.build/gen/go/cosmos/gogo-proto/protocolbuffers/go v1.36.6-20240130113600-88ef6483f90f.1 // indirect
github.com/google/go-cmp v0.7.0 // indirect
golang.org/x/net v0.40.0 // indirect
golang.org/x/sys v0.33.0 // indirect
+2 -6
View File
@@ -1,7 +1,3 @@
buf.build/gen/go/cometbft/cometbft/protocolbuffers/go v1.36.6-20241120201313-68e42a58b301.1 h1:tbAL0C7R8geKY3lrQZxV3kbVPm3zL/gIaBKre9W7FSo=
buf.build/gen/go/cometbft/cometbft/protocolbuffers/go v1.36.6-20241120201313-68e42a58b301.1/go.mod h1:vF5TQN2w0Is6cUfYSWGXlwAk8qvVVFuOVHY3mLn86rs=
buf.build/gen/go/cosmos/gogo-proto/protocolbuffers/go v1.36.6-20240130113600-88ef6483f90f.1 h1:rU7J8a7zrbZ9L0LUP2gWEFJ7+YLsSJ9h9QyyyWZd9ew=
buf.build/gen/go/cosmos/gogo-proto/protocolbuffers/go v1.36.6-20240130113600-88ef6483f90f.1/go.mod h1:ExRGMEzN3Btj2FXEiyfKHPYflSuer1dKZvz8gD5ZSng=
github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA=
github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec=
github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro=
@@ -38,7 +34,7 @@ google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 h1:
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463/go.mod h1:U90ffi8eUL9MwPcrJylN5+Mk2v3vuPDptd5yyNUiRR8=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250422160041-2d3770c4ea7f h1:N/PrbTw4kdkqNRzVfWPrBekzLuarFREcbFOiOLkXon4=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250422160041-2d3770c4ea7f/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
google.golang.org/grpc v1.72.2 h1:TdbGzwb82ty4OusHWepvFWGLgIbNo1/SUynEN0ssqv8=
google.golang.org/grpc v1.72.2/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
google.golang.org/grpc v1.72.0 h1:S7UkcVa60b5AAQTaO6ZKamFp1zMZSU0fGDK2WZLbBnM=
google.golang.org/grpc v1.72.0/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=