feat: Update Cosmos SDK to CometBFT v2 (#24837)
Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
co-authored by
aljo242
parent
b78a6c660e
commit
fd170b5140
@@ -38,6 +38,11 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
* [#24837](https://github.com/cosmos/cosmos-sdk/pull/24837) Update to using CometBFT v2.
|
||||
* This update changes the import paths from `cometbft/cometbft` to `cometbft/cometbft/v2`. Users can use the migration tool to automatically update their nodes.
|
||||
|
||||
### Features
|
||||
|
||||
* (server) [#24720](https://github.com/cosmos/cosmos-sdk/pull/24720) add `verbose_log_level` flag for configuring the log level when switching to verbose logging mode during sensitive operations (such as chain upgrades).
|
||||
|
||||
@@ -12,7 +12,7 @@ ifeq ($(findstring -,$(VERSION)),) # No "-" means it's just a hash
|
||||
VERSION := 0.0.0-$(VERSION_RAW)
|
||||
endif
|
||||
export VERSION
|
||||
export CMTVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::')
|
||||
export CMTVERSION := $(shell go list -m github.com/cometbft/cometbft/v2 | sed 's:.* ::')
|
||||
export COMMIT := $(shell git log -1 --format='%H')
|
||||
LEDGER_ENABLED ?= true
|
||||
BINDIR ?= $(GOPATH)/bin
|
||||
@@ -67,7 +67,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sim \
|
||||
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
|
||||
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
|
||||
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
|
||||
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(CMTVERSION)
|
||||
-X github.com/cometbft/cometbft/v2/version.TMCoreSemVer=$(CMTVERSION)
|
||||
|
||||
# DB backend selection
|
||||
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
|
||||
|
||||
+12
-214
@@ -1,227 +1,25 @@
|
||||
# Upgrade Reference
|
||||
|
||||
This document provides a quick reference for the upgrades from `v0.50.x` to `v0.53.x` of Cosmos SDK.
|
||||
This document provides a quick reference for the upgrades from `v0.53.x` to `v0.54.x` of Cosmos SDK.
|
||||
|
||||
Note, always read the **App Wiring Changes** section for more information on application wiring updates.
|
||||
|
||||
🚨Upgrading to v0.53.x will require a **coordinated** chain upgrade.🚨
|
||||
🚨Upgrading to v0.54.x will require a **coordinated** chain upgrade.🚨
|
||||
|
||||
### TLDR;
|
||||
|
||||
Unordered transactions, `x/protocolpool`, and `x/epoch` are the major new features added in v0.53.x.
|
||||
**The only major feature in Cosmos SDK v0.54.x is the upgrade from CometBFT v0.x.x to CometBFT v2.**
|
||||
|
||||
We also added the ability to add a `CheckTx` handler and enabled ed25519 signature verification.
|
||||
For a full list of changes, see the [Changelog](https://github.com/cosmos/cosmos-sdk/blob/release/v0.54.x/CHANGELOG.md).
|
||||
|
||||
For a full list of changes, see the [Changelog](https://github.com/cosmos/cosmos-sdk/blob/release/v0.53.x/CHANGELOG.md).
|
||||
#### Deprecation of `TimeoutCommit`
|
||||
|
||||
### Unordered Transactions
|
||||
CometBFT v2 has deprecated the use of `TimeoutCommit` for a new field, `NextBlockDelay`, that is part of the
|
||||
`FinalizeBlockResponse` ABCI message that is returned to CometBFT via the SDK baseapp. More information from
|
||||
the CometBFT repo can be found [here](https://github.com/cometbft/cometbft/blob/88ef3d267de491db98a654be0af6d791e8724ed0/spec/abci/abci%2B%2B_methods.md?plain=1#L689).
|
||||
|
||||
The Cosmos SDK now supports unordered transactions. _This is an opt-in feature_.
|
||||
For SDK application developers and node runners, this means that the `timeout_commit` value in the `config.toml` file
|
||||
is now **ignored**.
|
||||
|
||||
Clients that use this feature may now submit their transactions in a fire-and-forget manner to chains that enabled unordered transactions.
|
||||
|
||||
To submit an unordered transaction, clients must set the `unordered` flag to
|
||||
`true` and ensure a reasonable `timeout_timestamp` is set. The `timeout_timestamp` is
|
||||
used as a TTL for the transaction and provides replay protection. Each transaction's `timeout_timestamp` must be
|
||||
unique to the account; however, the difference may be as small as a nanosecond. See [ADR-070](https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-070-unordered-transactions.md) for more details.
|
||||
|
||||
Note that unordered transactions require sequence values to be zero, and will **FAIL** if a non-zero sequence value is set.
|
||||
Please ensure no sequence value is set when submitting an unordered transaction.
|
||||
Services that rely on prior assumptions about sequence values should be updated to handle unordered transactions.
|
||||
Services should be aware that when the transaction is unordered, the transaction sequence will always be zero.
|
||||
|
||||
#### Enabling Unordered Transactions
|
||||
|
||||
To enable unordered transactions, supply the `WithUnorderedTransactions` option to the `x/auth` keeper:
|
||||
|
||||
```go
|
||||
app.AccountKeeper = authkeeper.NewAccountKeeper(
|
||||
appCodec,
|
||||
runtime.NewKVStoreService(keys[authtypes.StoreKey]),
|
||||
authtypes.ProtoBaseAccount,
|
||||
maccPerms,
|
||||
authcodec.NewBech32Codec(sdk.Bech32MainPrefix),
|
||||
sdk.Bech32MainPrefix,
|
||||
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
|
||||
authkeeper.WithUnorderedTransactions(true), // new option!
|
||||
)
|
||||
```
|
||||
|
||||
If using dependency injection, update the auth module config.
|
||||
|
||||
```go
|
||||
{
|
||||
Name: authtypes.ModuleName,
|
||||
Config: appconfig.WrapAny(&authmodulev1.Module{
|
||||
Bech32Prefix: "cosmos",
|
||||
ModuleAccountPermissions: moduleAccPerms,
|
||||
EnableUnorderedTransactions: true, // remove this line if you do not want unordered transactions.
|
||||
}),
|
||||
},
|
||||
```
|
||||
|
||||
By default, unordered transactions use a transaction timeout duration of 10 minutes and a default gas charge of 2240 gas units.
|
||||
To modify these default values, pass in the corresponding options to the new `SigVerifyOptions` field in `x/auth's` `ante.HandlerOptions`.
|
||||
|
||||
```go
|
||||
options := ante.HandlerOptions{
|
||||
SigVerifyOptions: []ante.SigVerificationDecoratorOption{
|
||||
// change below as needed.
|
||||
ante.WithUnorderedTxGasCost(ante.DefaultUnorderedTxGasCost),
|
||||
ante.WithMaxUnorderedTxTimeoutDuration(ante.DefaultMaxTimoutDuration),
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
```go
|
||||
anteDecorators := []sdk.AnteDecorator{
|
||||
// ... other decorators ...
|
||||
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler, options.SigVerifyOptions...), // supply new options
|
||||
}
|
||||
```
|
||||
|
||||
### App Wiring Changes
|
||||
|
||||
In this section, we describe the required app wiring changes to run a v0.53.x Cosmos SDK application.
|
||||
|
||||
**These changes are directly applicable to your application wiring.**
|
||||
|
||||
The `x/auth` module now contains a `PreBlocker` that _must_ be set in the module manager's `SetOrderPreBlockers` method.
|
||||
|
||||
```go
|
||||
app.ModuleManager.SetOrderPreBlockers(
|
||||
upgradetypes.ModuleName,
|
||||
authtypes.ModuleName, // NEW
|
||||
)
|
||||
```
|
||||
|
||||
That's it.
|
||||
|
||||
### New Modules
|
||||
|
||||
Below are some **optional** new modules you can include in your chain.
|
||||
To see a full example of wiring these modules, please check out the [SimApp](https://github.com/cosmos/cosmos-sdk/blob/release/v0.53.x/simapp/app.go).
|
||||
|
||||
#### Epochs
|
||||
|
||||
⚠️Adding this module requires a `StoreUpgrade`⚠️
|
||||
|
||||
The new, supplemental `x/epochs` module provides Cosmos SDK modules functionality to register and execute custom logic at fixed time-intervals.
|
||||
|
||||
Required wiring:
|
||||
- Keeper Instantiation
|
||||
- StoreKey addition
|
||||
- Hooks Registration
|
||||
- App Module Registration
|
||||
- entry in SetOrderBeginBlockers
|
||||
- entry in SetGenesisModuleOrder
|
||||
- entry in SetExportModuleOrder
|
||||
|
||||
#### ProtocolPool
|
||||
|
||||
:::warning
|
||||
|
||||
Using `protocolpool` will cause the following `x/distribution` handlers to return an error:
|
||||
|
||||
|
||||
**QueryService**
|
||||
|
||||
- `CommunityPool`
|
||||
|
||||
**MsgService**
|
||||
|
||||
- `CommunityPoolSpend`
|
||||
- `FundCommunityPool`
|
||||
|
||||
If you have services that rely on this functionality from `x/distribution`, please update them to use the `x/protocolpool` equivalents.
|
||||
|
||||
:::
|
||||
|
||||
⚠️Adding this module requires a `StoreUpgrade`⚠️
|
||||
|
||||
The new, supplemental `x/protocolpool` module provides extended functionality for managing and distributing block reward revenue.
|
||||
|
||||
Required wiring:
|
||||
- Module Account Permissions
|
||||
- protocolpooltypes.ModuleName (nil)
|
||||
- protocolpooltypes.ProtocolPoolEscrowAccount (nil)
|
||||
- Keeper Instantiation
|
||||
- StoreKey addition
|
||||
- Passing the keeper to the Distribution Keeper
|
||||
- `distrkeeper.WithExternalCommunityPool(app.ProtocolPoolKeeper)`
|
||||
- App Module Registration
|
||||
- entry in SetOrderBeginBlockers
|
||||
- entry in SetOrderEndBlockers
|
||||
- entry in SetGenesisModuleOrder
|
||||
- entry in SetExportModuleOrder **before `x/bank`**
|
||||
|
||||
## Custom Minting Function in `x/mint`
|
||||
|
||||
This release introduces the ability to configure a custom mint function in `x/mint`. The minting logic is now abstracted as a `MintFn` with a default implementation that can be overridden.
|
||||
|
||||
### What’s New
|
||||
|
||||
- **Configurable Mint Function:**
|
||||
A new `MintFn` abstraction is introduced. By default, the module uses `DefaultMintFn`, but you can supply your own implementation.
|
||||
|
||||
- **Deprecated InflationCalculationFn Parameter:**
|
||||
The `InflationCalculationFn` argument previously provided to `mint.NewAppModule()` is now ignored and must be `nil`. To customize the default minter’s inflation behavior, wrap your custom function with `mintkeeper.DefaultMintFn` and pass it via the `WithMintFn` option:
|
||||
|
||||
```go
|
||||
mintkeeper.WithMintFn(mintkeeper.DefaultMintFn(customInflationFn))
|
||||
```
|
||||
|
||||
### How to Upgrade
|
||||
|
||||
1. **Using the Default Minting Function**
|
||||
|
||||
No action is needed if you’re happy with the default behavior. Make sure your application wiring initializes the MintKeeper like this:
|
||||
|
||||
```go
|
||||
mintKeeper := mintkeeper.NewKeeper(
|
||||
appCodec,
|
||||
storeService,
|
||||
stakingKeeper,
|
||||
accountKeeper,
|
||||
bankKeeper,
|
||||
authtypes.FeeCollectorName,
|
||||
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
|
||||
)
|
||||
```
|
||||
|
||||
2. **Using a Custom Minting Function**
|
||||
|
||||
To use a custom minting function, define it as follows and pass it you your mintKeeper when constructing it:
|
||||
|
||||
```go
|
||||
func myCustomMintFunc(ctx sdk.Context, k *mintkeeper.Keeper) {
|
||||
// do minting...
|
||||
}
|
||||
|
||||
// ...
|
||||
mintKeeper := mintkeeper.NewKeeper(
|
||||
appCodec,
|
||||
storeService,
|
||||
stakingKeeper,
|
||||
accountKeeper,
|
||||
bankKeeper,
|
||||
authtypes.FeeCollectorName,
|
||||
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
|
||||
mintkeeper.WithMintFn(myCustomMintFunc), // Use custom minting function
|
||||
)
|
||||
```
|
||||
|
||||
### Misc Changes
|
||||
|
||||
#### Testnet's init-files Command
|
||||
|
||||
Some changes were made to `testnet`'s `init-files` command to support our new testing framework, `Systemtest`.
|
||||
|
||||
##### Flag Changes
|
||||
|
||||
- The flag for validator count was changed from `--v` to `--validator-count`(shorthand: `-v`).
|
||||
|
||||
##### Flag Additions
|
||||
- `--staking-denom` allows changing the default stake denom, `stake`.
|
||||
- `--commit-timeout` enables changing the commit timeout of the chain.
|
||||
- `--single-host` enables running a multi-node network on a single host. This bumps each subsequent node's network addresses by 1. For example, node1's gRPC address will be 9090, node2's 9091, etc...
|
||||
For similar behavior, there is a new `baseapp` option, `SetNextBlockDelay` which can be passed to your application upon
|
||||
initialization in `app.go`.
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package abciv1
|
||||
package abciv2
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cometbft/abci/v1/service.proto
|
||||
// source: cometbft/abci/v2/service.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@@ -20,188 +20,188 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
var File_cometbft_abci_v1_service_proto protoreflect.FileDescriptor
|
||||
var File_cometbft_abci_v2_service_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cometbft_abci_v1_service_proto_rawDesc = []byte{
|
||||
var file_cometbft_abci_v2_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,
|
||||
0x76, 0x32, 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,
|
||||
0x76, 0x32, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63,
|
||||
0x69, 0x2f, 0x76, 0x32, 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,
|
||||
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32,
|
||||
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,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x32, 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,
|
||||
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x76, 0x32, 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,
|
||||
0x32, 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,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32,
|
||||
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,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32,
|
||||
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,
|
||||
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 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,
|
||||
0x32, 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,
|
||||
0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32,
|
||||
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,
|
||||
0x2f, 0x76, 0x32, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x32, 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,
|
||||
0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x41,
|
||||
0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
|
||||
0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 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,
|
||||
0x3a, 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x32, 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_v2_service_proto_goTypes = []interface{}{
|
||||
(*EchoRequest)(nil), // 0: cometbft.abci.v2.EchoRequest
|
||||
(*FlushRequest)(nil), // 1: cometbft.abci.v2.FlushRequest
|
||||
(*InfoRequest)(nil), // 2: cometbft.abci.v2.InfoRequest
|
||||
(*CheckTxRequest)(nil), // 3: cometbft.abci.v2.CheckTxRequest
|
||||
(*QueryRequest)(nil), // 4: cometbft.abci.v2.QueryRequest
|
||||
(*CommitRequest)(nil), // 5: cometbft.abci.v2.CommitRequest
|
||||
(*InitChainRequest)(nil), // 6: cometbft.abci.v2.InitChainRequest
|
||||
(*ListSnapshotsRequest)(nil), // 7: cometbft.abci.v2.ListSnapshotsRequest
|
||||
(*OfferSnapshotRequest)(nil), // 8: cometbft.abci.v2.OfferSnapshotRequest
|
||||
(*LoadSnapshotChunkRequest)(nil), // 9: cometbft.abci.v2.LoadSnapshotChunkRequest
|
||||
(*ApplySnapshotChunkRequest)(nil), // 10: cometbft.abci.v2.ApplySnapshotChunkRequest
|
||||
(*PrepareProposalRequest)(nil), // 11: cometbft.abci.v2.PrepareProposalRequest
|
||||
(*ProcessProposalRequest)(nil), // 12: cometbft.abci.v2.ProcessProposalRequest
|
||||
(*ExtendVoteRequest)(nil), // 13: cometbft.abci.v2.ExtendVoteRequest
|
||||
(*VerifyVoteExtensionRequest)(nil), // 14: cometbft.abci.v2.VerifyVoteExtensionRequest
|
||||
(*FinalizeBlockRequest)(nil), // 15: cometbft.abci.v2.FinalizeBlockRequest
|
||||
(*EchoResponse)(nil), // 16: cometbft.abci.v2.EchoResponse
|
||||
(*FlushResponse)(nil), // 17: cometbft.abci.v2.FlushResponse
|
||||
(*InfoResponse)(nil), // 18: cometbft.abci.v2.InfoResponse
|
||||
(*CheckTxResponse)(nil), // 19: cometbft.abci.v2.CheckTxResponse
|
||||
(*QueryResponse)(nil), // 20: cometbft.abci.v2.QueryResponse
|
||||
(*CommitResponse)(nil), // 21: cometbft.abci.v2.CommitResponse
|
||||
(*InitChainResponse)(nil), // 22: cometbft.abci.v2.InitChainResponse
|
||||
(*ListSnapshotsResponse)(nil), // 23: cometbft.abci.v2.ListSnapshotsResponse
|
||||
(*OfferSnapshotResponse)(nil), // 24: cometbft.abci.v2.OfferSnapshotResponse
|
||||
(*LoadSnapshotChunkResponse)(nil), // 25: cometbft.abci.v2.LoadSnapshotChunkResponse
|
||||
(*ApplySnapshotChunkResponse)(nil), // 26: cometbft.abci.v2.ApplySnapshotChunkResponse
|
||||
(*PrepareProposalResponse)(nil), // 27: cometbft.abci.v2.PrepareProposalResponse
|
||||
(*ProcessProposalResponse)(nil), // 28: cometbft.abci.v2.ProcessProposalResponse
|
||||
(*ExtendVoteResponse)(nil), // 29: cometbft.abci.v2.ExtendVoteResponse
|
||||
(*VerifyVoteExtensionResponse)(nil), // 30: cometbft.abci.v2.VerifyVoteExtensionResponse
|
||||
(*FinalizeBlockResponse)(nil), // 31: cometbft.abci.v2.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
|
||||
var file_cometbft_abci_v2_service_proto_depIdxs = []int32{
|
||||
0, // 0: cometbft.abci.v2.ABCIService.Echo:input_type -> cometbft.abci.v2.EchoRequest
|
||||
1, // 1: cometbft.abci.v2.ABCIService.Flush:input_type -> cometbft.abci.v2.FlushRequest
|
||||
2, // 2: cometbft.abci.v2.ABCIService.Info:input_type -> cometbft.abci.v2.InfoRequest
|
||||
3, // 3: cometbft.abci.v2.ABCIService.CheckTx:input_type -> cometbft.abci.v2.CheckTxRequest
|
||||
4, // 4: cometbft.abci.v2.ABCIService.Query:input_type -> cometbft.abci.v2.QueryRequest
|
||||
5, // 5: cometbft.abci.v2.ABCIService.Commit:input_type -> cometbft.abci.v2.CommitRequest
|
||||
6, // 6: cometbft.abci.v2.ABCIService.InitChain:input_type -> cometbft.abci.v2.InitChainRequest
|
||||
7, // 7: cometbft.abci.v2.ABCIService.ListSnapshots:input_type -> cometbft.abci.v2.ListSnapshotsRequest
|
||||
8, // 8: cometbft.abci.v2.ABCIService.OfferSnapshot:input_type -> cometbft.abci.v2.OfferSnapshotRequest
|
||||
9, // 9: cometbft.abci.v2.ABCIService.LoadSnapshotChunk:input_type -> cometbft.abci.v2.LoadSnapshotChunkRequest
|
||||
10, // 10: cometbft.abci.v2.ABCIService.ApplySnapshotChunk:input_type -> cometbft.abci.v2.ApplySnapshotChunkRequest
|
||||
11, // 11: cometbft.abci.v2.ABCIService.PrepareProposal:input_type -> cometbft.abci.v2.PrepareProposalRequest
|
||||
12, // 12: cometbft.abci.v2.ABCIService.ProcessProposal:input_type -> cometbft.abci.v2.ProcessProposalRequest
|
||||
13, // 13: cometbft.abci.v2.ABCIService.ExtendVote:input_type -> cometbft.abci.v2.ExtendVoteRequest
|
||||
14, // 14: cometbft.abci.v2.ABCIService.VerifyVoteExtension:input_type -> cometbft.abci.v2.VerifyVoteExtensionRequest
|
||||
15, // 15: cometbft.abci.v2.ABCIService.FinalizeBlock:input_type -> cometbft.abci.v2.FinalizeBlockRequest
|
||||
16, // 16: cometbft.abci.v2.ABCIService.Echo:output_type -> cometbft.abci.v2.EchoResponse
|
||||
17, // 17: cometbft.abci.v2.ABCIService.Flush:output_type -> cometbft.abci.v2.FlushResponse
|
||||
18, // 18: cometbft.abci.v2.ABCIService.Info:output_type -> cometbft.abci.v2.InfoResponse
|
||||
19, // 19: cometbft.abci.v2.ABCIService.CheckTx:output_type -> cometbft.abci.v2.CheckTxResponse
|
||||
20, // 20: cometbft.abci.v2.ABCIService.Query:output_type -> cometbft.abci.v2.QueryResponse
|
||||
21, // 21: cometbft.abci.v2.ABCIService.Commit:output_type -> cometbft.abci.v2.CommitResponse
|
||||
22, // 22: cometbft.abci.v2.ABCIService.InitChain:output_type -> cometbft.abci.v2.InitChainResponse
|
||||
23, // 23: cometbft.abci.v2.ABCIService.ListSnapshots:output_type -> cometbft.abci.v2.ListSnapshotsResponse
|
||||
24, // 24: cometbft.abci.v2.ABCIService.OfferSnapshot:output_type -> cometbft.abci.v2.OfferSnapshotResponse
|
||||
25, // 25: cometbft.abci.v2.ABCIService.LoadSnapshotChunk:output_type -> cometbft.abci.v2.LoadSnapshotChunkResponse
|
||||
26, // 26: cometbft.abci.v2.ABCIService.ApplySnapshotChunk:output_type -> cometbft.abci.v2.ApplySnapshotChunkResponse
|
||||
27, // 27: cometbft.abci.v2.ABCIService.PrepareProposal:output_type -> cometbft.abci.v2.PrepareProposalResponse
|
||||
28, // 28: cometbft.abci.v2.ABCIService.ProcessProposal:output_type -> cometbft.abci.v2.ProcessProposalResponse
|
||||
29, // 29: cometbft.abci.v2.ABCIService.ExtendVote:output_type -> cometbft.abci.v2.ExtendVoteResponse
|
||||
30, // 30: cometbft.abci.v2.ABCIService.VerifyVoteExtension:output_type -> cometbft.abci.v2.VerifyVoteExtensionResponse
|
||||
31, // 31: cometbft.abci.v2.ABCIService.FinalizeBlock:output_type -> cometbft.abci.v2.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
|
||||
@@ -209,27 +209,27 @@ var file_cometbft_abci_v1_service_proto_depIdxs = []int32{
|
||||
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 {
|
||||
func init() { file_cometbft_abci_v2_service_proto_init() }
|
||||
func file_cometbft_abci_v2_service_proto_init() {
|
||||
if File_cometbft_abci_v2_service_proto != nil {
|
||||
return
|
||||
}
|
||||
file_cometbft_abci_v1_types_proto_init()
|
||||
file_cometbft_abci_v2_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,
|
||||
RawDescriptor: file_cometbft_abci_v2_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,
|
||||
GoTypes: file_cometbft_abci_v2_service_proto_goTypes,
|
||||
DependencyIndexes: file_cometbft_abci_v2_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
|
||||
File_cometbft_abci_v2_service_proto = out.File
|
||||
file_cometbft_abci_v2_service_proto_rawDesc = nil
|
||||
file_cometbft_abci_v2_service_proto_goTypes = nil
|
||||
file_cometbft_abci_v2_service_proto_depIdxs = nil
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: cometbft/abci/v1/service.proto
|
||||
// source: cometbft/abci/v2/service.proto
|
||||
|
||||
package abciv1
|
||||
package abciv2
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@@ -19,22 +19,22 @@ import (
|
||||
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"
|
||||
ABCIService_Echo_FullMethodName = "/cometbft.abci.v2.ABCIService/Echo"
|
||||
ABCIService_Flush_FullMethodName = "/cometbft.abci.v2.ABCIService/Flush"
|
||||
ABCIService_Info_FullMethodName = "/cometbft.abci.v2.ABCIService/Info"
|
||||
ABCIService_CheckTx_FullMethodName = "/cometbft.abci.v2.ABCIService/CheckTx"
|
||||
ABCIService_Query_FullMethodName = "/cometbft.abci.v2.ABCIService/Query"
|
||||
ABCIService_Commit_FullMethodName = "/cometbft.abci.v2.ABCIService/Commit"
|
||||
ABCIService_InitChain_FullMethodName = "/cometbft.abci.v2.ABCIService/InitChain"
|
||||
ABCIService_ListSnapshots_FullMethodName = "/cometbft.abci.v2.ABCIService/ListSnapshots"
|
||||
ABCIService_OfferSnapshot_FullMethodName = "/cometbft.abci.v2.ABCIService/OfferSnapshot"
|
||||
ABCIService_LoadSnapshotChunk_FullMethodName = "/cometbft.abci.v2.ABCIService/LoadSnapshotChunk"
|
||||
ABCIService_ApplySnapshotChunk_FullMethodName = "/cometbft.abci.v2.ABCIService/ApplySnapshotChunk"
|
||||
ABCIService_PrepareProposal_FullMethodName = "/cometbft.abci.v2.ABCIService/PrepareProposal"
|
||||
ABCIService_ProcessProposal_FullMethodName = "/cometbft.abci.v2.ABCIService/ProcessProposal"
|
||||
ABCIService_ExtendVote_FullMethodName = "/cometbft.abci.v2.ABCIService/ExtendVote"
|
||||
ABCIService_VerifyVoteExtension_FullMethodName = "/cometbft.abci.v2.ABCIService/VerifyVoteExtension"
|
||||
ABCIService_FinalizeBlock_FullMethodName = "/cometbft.abci.v2.ABCIService/FinalizeBlock"
|
||||
)
|
||||
|
||||
// ABCIServiceClient is the client API for ABCIService service.
|
||||
@@ -654,7 +654,7 @@ func _ABCIService_FinalizeBlock_Handler(srv interface{}, ctx context.Context, de
|
||||
// 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",
|
||||
ServiceName: "cometbft.abci.v2.ABCIService",
|
||||
HandlerType: (*ABCIServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@@ -723,5 +723,5 @@ var ABCIService_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cometbft/abci/v1/service.proto",
|
||||
Metadata: "cometbft/abci/v2/service.proto",
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package typesv1
|
||||
package typesv2
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@@ -22,8 +22,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cometbft_types_v1_block_proto_init()
|
||||
md_Block = File_cometbft_types_v1_block_proto.Messages().ByName("Block")
|
||||
file_cometbft_types_v2_block_proto_init()
|
||||
md_Block = File_cometbft_types_v2_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")
|
||||
@@ -39,7 +39,7 @@ func (x *Block) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *Block) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cometbft_types_v1_block_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_block_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -134,19 +134,19 @@ func (x *fastReflection_Block) Range(f func(protoreflect.FieldDescriptor, protor
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
return x.Header != nil
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
return x.Data != nil
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
return x.Evidence != nil
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,19 +158,19 @@ func (x *fastReflection_Block) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
x.Header = nil
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
x.Data = nil
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
x.Evidence = nil
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,23 +182,23 @@ func (x *fastReflection_Block) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
value := x.Header
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
value := x.Data
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
value := x.Evidence
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,19 +214,19 @@ func (x *fastReflection_Block) Get(descriptor protoreflect.FieldDescriptor) prot
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
x.Header = value.Message().Interface().(*Header)
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
x.Data = value.Message().Interface().(*Data)
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
x.Evidence = value.Message().Interface().(*EvidenceList)
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,31 +242,31 @@ func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protor
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
if x.Header == nil {
|
||||
x.Header = new(Header)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
if x.Data == nil {
|
||||
x.Data = new(Data)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Data.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = new(EvidenceList)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,23 +275,23 @@ func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoref
|
||||
// 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":
|
||||
case "cometbft.types.v2.Block.header":
|
||||
m := new(Header)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.data":
|
||||
case "cometbft.types.v2.Block.data":
|
||||
m := new(Data)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.evidence":
|
||||
case "cometbft.types.v2.Block.evidence":
|
||||
m := new(EvidenceList)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.Block.last_commit":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.Block"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Block does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Block does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protore
|
||||
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(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Block", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@@ -689,7 +689,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cometbft/types/v1/block.proto
|
||||
// source: cometbft/types/v2/block.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@@ -713,7 +713,7 @@ type Block struct {
|
||||
func (x *Block) Reset() {
|
||||
*x = Block{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cometbft_types_v1_block_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_block_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -727,7 +727,7 @@ func (*Block) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use Block.ProtoReflect.Descriptor instead.
|
||||
func (*Block) Descriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_block_proto_rawDescGZIP(), []int{0}
|
||||
return file_cometbft_types_v2_block_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Block) GetHeader() *Header {
|
||||
@@ -758,72 +758,72 @@ func (x *Block) GetLastCommit() *Commit {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_cometbft_types_v1_block_proto protoreflect.FileDescriptor
|
||||
var File_cometbft_types_v2_block_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cometbft_types_v1_block_proto_rawDesc = []byte{
|
||||
var file_cometbft_types_v2_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,
|
||||
0x2f, 0x76, 0x32, 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,
|
||||
0x76, 0x32, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x73, 0x2f, 0x76, 0x32, 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,
|
||||
0x73, 0x2f, 0x76, 0x32, 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,
|
||||
0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||||
0x76, 0x32, 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, 0x32, 0xca, 0x02, 0x11, 0x43,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32,
|
||||
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,
|
||||
0x73, 0x5c, 0x56, 0x32, 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,
|
||||
0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 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
|
||||
file_cometbft_types_v2_block_proto_rawDescOnce sync.Once
|
||||
file_cometbft_types_v2_block_proto_rawDescData = file_cometbft_types_v2_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)
|
||||
func file_cometbft_types_v2_block_proto_rawDescGZIP() []byte {
|
||||
file_cometbft_types_v2_block_proto_rawDescOnce.Do(func() {
|
||||
file_cometbft_types_v2_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_block_proto_rawDescData)
|
||||
})
|
||||
return file_cometbft_types_v1_block_proto_rawDescData
|
||||
return file_cometbft_types_v2_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_v2_block_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cometbft_types_v2_block_proto_goTypes = []interface{}{
|
||||
(*Block)(nil), // 0: cometbft.types.v2.Block
|
||||
(*Header)(nil), // 1: cometbft.types.v2.Header
|
||||
(*Data)(nil), // 2: cometbft.types.v2.Data
|
||||
(*EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList
|
||||
(*Commit)(nil), // 4: cometbft.types.v2.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
|
||||
var file_cometbft_types_v2_block_proto_depIdxs = []int32{
|
||||
1, // 0: cometbft.types.v2.Block.header:type_name -> cometbft.types.v2.Header
|
||||
2, // 1: cometbft.types.v2.Block.data:type_name -> cometbft.types.v2.Data
|
||||
3, // 2: cometbft.types.v2.Block.evidence:type_name -> cometbft.types.v2.EvidenceList
|
||||
4, // 3: cometbft.types.v2.Block.last_commit:type_name -> cometbft.types.v2.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
|
||||
@@ -831,15 +831,15 @@ var file_cometbft_types_v1_block_proto_depIdxs = []int32{
|
||||
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 {
|
||||
func init() { file_cometbft_types_v2_block_proto_init() }
|
||||
func file_cometbft_types_v2_block_proto_init() {
|
||||
if File_cometbft_types_v2_block_proto != nil {
|
||||
return
|
||||
}
|
||||
file_cometbft_types_v1_types_proto_init()
|
||||
file_cometbft_types_v1_evidence_proto_init()
|
||||
file_cometbft_types_v2_types_proto_init()
|
||||
file_cometbft_types_v2_evidence_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cometbft_types_v1_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cometbft_types_v2_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Block); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -856,18 +856,18 @@ func file_cometbft_types_v1_block_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_cometbft_types_v1_block_proto_rawDesc,
|
||||
RawDescriptor: file_cometbft_types_v2_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,
|
||||
GoTypes: file_cometbft_types_v2_block_proto_goTypes,
|
||||
DependencyIndexes: file_cometbft_types_v2_block_proto_depIdxs,
|
||||
MessageInfos: file_cometbft_types_v2_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_cometbft_types_v2_block_proto = out.File
|
||||
file_cometbft_types_v2_block_proto_rawDesc = nil
|
||||
file_cometbft_types_v2_block_proto_goTypes = nil
|
||||
file_cometbft_types_v2_block_proto_depIdxs = nil
|
||||
}
|
||||
+292
-292
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package typesv1
|
||||
package typesv2
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
@@ -20,8 +20,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cometbft_types_v1_events_proto_init()
|
||||
md_EventDataRoundState = File_cometbft_types_v1_events_proto.Messages().ByName("EventDataRoundState")
|
||||
file_cometbft_types_v2_events_proto_init()
|
||||
md_EventDataRoundState = File_cometbft_types_v2_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")
|
||||
@@ -36,7 +36,7 @@ func (x *EventDataRoundState) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *EventDataRoundState) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cometbft_types_v1_events_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_events_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -125,17 +125,17 @@ func (x *fastReflection_EventDataRoundState) Range(f func(protoreflect.FieldDesc
|
||||
// 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":
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
return x.Height != int64(0)
|
||||
case "cometbft.types.v1.EventDataRoundState.round":
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
return x.Round != int32(0)
|
||||
case "cometbft.types.v1.EventDataRoundState.step":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,17 +147,17 @@ func (x *fastReflection_EventDataRoundState) Has(fd protoreflect.FieldDescriptor
|
||||
// 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":
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
x.Height = int64(0)
|
||||
case "cometbft.types.v1.EventDataRoundState.round":
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
x.Round = int32(0)
|
||||
case "cometbft.types.v1.EventDataRoundState.step":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,20 +169,20 @@ func (x *fastReflection_EventDataRoundState) Clear(fd protoreflect.FieldDescript
|
||||
// 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":
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
value := x.Height
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
case "cometbft.types.v1.EventDataRoundState.round":
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
value := x.Round
|
||||
return protoreflect.ValueOfInt32(value)
|
||||
case "cometbft.types.v1.EventDataRoundState.step":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,17 +198,17 @@ func (x *fastReflection_EventDataRoundState) Get(descriptor protoreflect.FieldDe
|
||||
// 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":
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
x.Height = value.Int()
|
||||
case "cometbft.types.v1.EventDataRoundState.round":
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
x.Round = int32(value.Int())
|
||||
case "cometbft.types.v1.EventDataRoundState.step":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,17 +224,17 @@ func (x *fastReflection_EventDataRoundState) Set(fd protoreflect.FieldDescriptor
|
||||
// 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"))
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
panic(fmt.Errorf("field height of message cometbft.types.v2.EventDataRoundState is not mutable"))
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
panic(fmt.Errorf("field round of message cometbft.types.v2.EventDataRoundState is not mutable"))
|
||||
case "cometbft.types.v2.EventDataRoundState.step":
|
||||
panic(fmt.Errorf("field step of message cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,17 +243,17 @@ func (x *fastReflection_EventDataRoundState) Mutable(fd protoreflect.FieldDescri
|
||||
// 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":
|
||||
case "cometbft.types.v2.EventDataRoundState.height":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cometbft.types.v1.EventDataRoundState.round":
|
||||
case "cometbft.types.v2.EventDataRoundState.round":
|
||||
return protoreflect.ValueOfInt32(int32(0))
|
||||
case "cometbft.types.v1.EventDataRoundState.step":
|
||||
case "cometbft.types.v2.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("proto3 declared messages do not support extensions: cometbft.types.v2.EventDataRoundState"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.EventDataRoundState does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ func (x *fastReflection_EventDataRoundState) NewField(fd protoreflect.FieldDescr
|
||||
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(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.EventDataRoundState", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@@ -532,7 +532,7 @@ func (x *fastReflection_EventDataRoundState) ProtoMethods() *protoiface.Methods
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cometbft/types/v1/events.proto
|
||||
// source: cometbft/types/v2/events.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@@ -555,7 +555,7 @@ type EventDataRoundState struct {
|
||||
func (x *EventDataRoundState) Reset() {
|
||||
*x = EventDataRoundState{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cometbft_types_v1_events_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_events_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -569,7 +569,7 @@ func (*EventDataRoundState) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use EventDataRoundState.ProtoReflect.Descriptor instead.
|
||||
func (*EventDataRoundState) Descriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_events_proto_rawDescGZIP(), []int{0}
|
||||
return file_cometbft_types_v2_events_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *EventDataRoundState) GetHeight() int64 {
|
||||
@@ -593,49 +593,49 @@ func (x *EventDataRoundState) GetStep() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_cometbft_types_v1_events_proto protoreflect.FileDescriptor
|
||||
var File_cometbft_types_v2_events_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cometbft_types_v1_events_proto_rawDesc = []byte{
|
||||
var file_cometbft_types_v2_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,
|
||||
0x2f, 0x76, 0x32, 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,
|
||||
0x2e, 0x76, 0x32, 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,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 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,
|
||||
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76,
|
||||
0x32, 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, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 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,
|
||||
0x5c, 0x56, 0x32, 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,
|
||||
0x73, 0x3a, 0x3a, 0x56, 0x32, 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
|
||||
file_cometbft_types_v2_events_proto_rawDescOnce sync.Once
|
||||
file_cometbft_types_v2_events_proto_rawDescData = file_cometbft_types_v2_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)
|
||||
func file_cometbft_types_v2_events_proto_rawDescGZIP() []byte {
|
||||
file_cometbft_types_v2_events_proto_rawDescOnce.Do(func() {
|
||||
file_cometbft_types_v2_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_events_proto_rawDescData)
|
||||
})
|
||||
return file_cometbft_types_v1_events_proto_rawDescData
|
||||
return file_cometbft_types_v2_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_v2_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cometbft_types_v2_events_proto_goTypes = []interface{}{
|
||||
(*EventDataRoundState)(nil), // 0: cometbft.types.v2.EventDataRoundState
|
||||
}
|
||||
var file_cometbft_types_v1_events_proto_depIdxs = []int32{
|
||||
var file_cometbft_types_v2_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
|
||||
@@ -643,13 +643,13 @@ var file_cometbft_types_v1_events_proto_depIdxs = []int32{
|
||||
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 {
|
||||
func init() { file_cometbft_types_v2_events_proto_init() }
|
||||
func file_cometbft_types_v2_events_proto_init() {
|
||||
if File_cometbft_types_v2_events_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cometbft_types_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cometbft_types_v2_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*EventDataRoundState); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -666,18 +666,18 @@ func file_cometbft_types_v1_events_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_cometbft_types_v1_events_proto_rawDesc,
|
||||
RawDescriptor: file_cometbft_types_v2_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,
|
||||
GoTypes: file_cometbft_types_v2_events_proto_goTypes,
|
||||
DependencyIndexes: file_cometbft_types_v2_events_proto_depIdxs,
|
||||
MessageInfos: file_cometbft_types_v2_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_cometbft_types_v2_events_proto = out.File
|
||||
file_cometbft_types_v2_events_proto_rawDesc = nil
|
||||
file_cometbft_types_v2_events_proto_goTypes = nil
|
||||
file_cometbft_types_v2_events_proto_depIdxs = nil
|
||||
}
|
||||
+220
-220
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
+177
-177
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
||||
package typesv1
|
||||
package typesv2
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/crypto/v1"
|
||||
@@ -73,8 +73,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cometbft_types_v1_validator_proto_init()
|
||||
md_ValidatorSet = File_cometbft_types_v1_validator_proto.Messages().ByName("ValidatorSet")
|
||||
file_cometbft_types_v2_validator_proto_init()
|
||||
md_ValidatorSet = File_cometbft_types_v2_validator_proto.Messages().ByName("ValidatorSet")
|
||||
fd_ValidatorSet_validators = md_ValidatorSet.Fields().ByName("validators")
|
||||
fd_ValidatorSet_proposer = md_ValidatorSet.Fields().ByName("proposer")
|
||||
fd_ValidatorSet_total_voting_power = md_ValidatorSet.Fields().ByName("total_voting_power")
|
||||
@@ -89,7 +89,7 @@ func (x *ValidatorSet) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *ValidatorSet) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -178,17 +178,17 @@ func (x *fastReflection_ValidatorSet) Range(f func(protoreflect.FieldDescriptor,
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_ValidatorSet) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
return len(x.Validators) != 0
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
return x.Proposer != nil
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
return x.TotalVotingPower != int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -200,17 +200,17 @@ func (x *fastReflection_ValidatorSet) Has(fd protoreflect.FieldDescriptor) bool
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_ValidatorSet) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
x.Validators = nil
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
x.Proposer = nil
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
x.TotalVotingPower = int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,23 +222,23 @@ func (x *fastReflection_ValidatorSet) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_ValidatorSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
if len(x.Validators) == 0 {
|
||||
return protoreflect.ValueOfList(&_ValidatorSet_1_list{})
|
||||
}
|
||||
listValue := &_ValidatorSet_1_list{list: &x.Validators}
|
||||
return protoreflect.ValueOfList(listValue)
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
value := x.Proposer
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
value := x.TotalVotingPower
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,19 +254,19 @@ func (x *fastReflection_ValidatorSet) Get(descriptor protoreflect.FieldDescripto
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_ValidatorSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
lv := value.List()
|
||||
clv := lv.(*_ValidatorSet_1_list)
|
||||
x.Validators = *clv.list
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
x.Proposer = value.Message().Interface().(*Validator)
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
x.TotalVotingPower = value.Int()
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,24 +282,24 @@ func (x *fastReflection_ValidatorSet) Set(fd protoreflect.FieldDescriptor, value
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_ValidatorSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
if x.Validators == nil {
|
||||
x.Validators = []*Validator{}
|
||||
}
|
||||
value := &_ValidatorSet_1_list{list: &x.Validators}
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
if x.Proposer == nil {
|
||||
x.Proposer = new(Validator)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Proposer.ProtoReflect())
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
panic(fmt.Errorf("field total_voting_power of message cometbft.types.v1.ValidatorSet is not mutable"))
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
panic(fmt.Errorf("field total_voting_power of message cometbft.types.v2.ValidatorSet is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,19 +308,19 @@ func (x *fastReflection_ValidatorSet) Mutable(fd protoreflect.FieldDescriptor) p
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_ValidatorSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.ValidatorSet.validators":
|
||||
case "cometbft.types.v2.ValidatorSet.validators":
|
||||
list := []*Validator{}
|
||||
return protoreflect.ValueOfList(&_ValidatorSet_1_list{list: &list})
|
||||
case "cometbft.types.v1.ValidatorSet.proposer":
|
||||
case "cometbft.types.v2.ValidatorSet.proposer":
|
||||
m := new(Validator)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.ValidatorSet.total_voting_power":
|
||||
case "cometbft.types.v2.ValidatorSet.total_voting_power":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.ValidatorSet"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.ValidatorSet"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.ValidatorSet does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ func (x *fastReflection_ValidatorSet) NewField(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_ValidatorSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v1.ValidatorSet", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.ValidatorSet", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@@ -646,8 +646,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cometbft_types_v1_validator_proto_init()
|
||||
md_Validator = File_cometbft_types_v1_validator_proto.Messages().ByName("Validator")
|
||||
file_cometbft_types_v2_validator_proto_init()
|
||||
md_Validator = File_cometbft_types_v2_validator_proto.Messages().ByName("Validator")
|
||||
fd_Validator_address = md_Validator.Fields().ByName("address")
|
||||
fd_Validator_pub_key = md_Validator.Fields().ByName("pub_key")
|
||||
fd_Validator_voting_power = md_Validator.Fields().ByName("voting_power")
|
||||
@@ -665,7 +665,7 @@ func (x *Validator) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *Validator) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[1]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -772,23 +772,23 @@ func (x *fastReflection_Validator) Range(f func(protoreflect.FieldDescriptor, pr
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
return len(x.Address) != 0
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
return x.PubKey != nil
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
return x.VotingPower != int64(0)
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
return x.ProposerPriority != int64(0)
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
return len(x.PubKeyBytes) != 0
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
return x.PubKeyType != ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -800,23 +800,23 @@ func (x *fastReflection_Validator) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
x.Address = nil
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
x.PubKey = nil
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
x.VotingPower = int64(0)
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
x.ProposerPriority = int64(0)
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
x.PubKeyBytes = nil
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
x.PubKeyType = ""
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -828,29 +828,29 @@ func (x *fastReflection_Validator) Clear(fd protoreflect.FieldDescriptor) {
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
value := x.Address
|
||||
return protoreflect.ValueOfBytes(value)
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
value := x.PubKey
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
value := x.VotingPower
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
value := x.ProposerPriority
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
value := x.PubKeyBytes
|
||||
return protoreflect.ValueOfBytes(value)
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
value := x.PubKeyType
|
||||
return protoreflect.ValueOfString(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -866,23 +866,23 @@ func (x *fastReflection_Validator) Get(descriptor protoreflect.FieldDescriptor)
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
x.Address = value.Bytes()
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
x.PubKey = value.Message().Interface().(*v1.PublicKey)
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
x.VotingPower = value.Int()
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
x.ProposerPriority = value.Int()
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
x.PubKeyBytes = value.Bytes()
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
x.PubKeyType = value.Interface().(string)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -898,26 +898,26 @@ func (x *fastReflection_Validator) Set(fd protoreflect.FieldDescriptor, value pr
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
if x.PubKey == nil {
|
||||
x.PubKey = new(v1.PublicKey)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect())
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
panic(fmt.Errorf("field address of message cometbft.types.v1.Validator is not mutable"))
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
panic(fmt.Errorf("field voting_power of message cometbft.types.v1.Validator is not mutable"))
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
panic(fmt.Errorf("field proposer_priority of message cometbft.types.v1.Validator is not mutable"))
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
panic(fmt.Errorf("field pub_key_bytes of message cometbft.types.v1.Validator is not mutable"))
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
panic(fmt.Errorf("field pub_key_type of message cometbft.types.v1.Validator is not mutable"))
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
panic(fmt.Errorf("field address of message cometbft.types.v2.Validator is not mutable"))
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
panic(fmt.Errorf("field voting_power of message cometbft.types.v2.Validator is not mutable"))
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
panic(fmt.Errorf("field proposer_priority of message cometbft.types.v2.Validator is not mutable"))
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
panic(fmt.Errorf("field pub_key_bytes of message cometbft.types.v2.Validator is not mutable"))
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
panic(fmt.Errorf("field pub_key_type of message cometbft.types.v2.Validator is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -926,24 +926,24 @@ func (x *fastReflection_Validator) Mutable(fd protoreflect.FieldDescriptor) prot
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.Validator.address":
|
||||
case "cometbft.types.v2.Validator.address":
|
||||
return protoreflect.ValueOfBytes(nil)
|
||||
case "cometbft.types.v1.Validator.pub_key":
|
||||
case "cometbft.types.v2.Validator.pub_key":
|
||||
m := new(v1.PublicKey)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.Validator.voting_power":
|
||||
case "cometbft.types.v2.Validator.voting_power":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cometbft.types.v1.Validator.proposer_priority":
|
||||
case "cometbft.types.v2.Validator.proposer_priority":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cometbft.types.v1.Validator.pub_key_bytes":
|
||||
case "cometbft.types.v2.Validator.pub_key_bytes":
|
||||
return protoreflect.ValueOfBytes(nil)
|
||||
case "cometbft.types.v1.Validator.pub_key_type":
|
||||
case "cometbft.types.v2.Validator.pub_key_type":
|
||||
return protoreflect.ValueOfString("")
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.Validator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.Validator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.Validator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.Validator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -953,7 +953,7 @@ func (x *fastReflection_Validator) NewField(fd protoreflect.FieldDescriptor) pro
|
||||
func (x *fastReflection_Validator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v1.Validator", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.Validator", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@@ -1369,8 +1369,8 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
file_cometbft_types_v1_validator_proto_init()
|
||||
md_SimpleValidator = File_cometbft_types_v1_validator_proto.Messages().ByName("SimpleValidator")
|
||||
file_cometbft_types_v2_validator_proto_init()
|
||||
md_SimpleValidator = File_cometbft_types_v2_validator_proto.Messages().ByName("SimpleValidator")
|
||||
fd_SimpleValidator_pub_key = md_SimpleValidator.Fields().ByName("pub_key")
|
||||
fd_SimpleValidator_voting_power = md_SimpleValidator.Fields().ByName("voting_power")
|
||||
}
|
||||
@@ -1384,7 +1384,7 @@ func (x *SimpleValidator) ProtoReflect() protoreflect.Message {
|
||||
}
|
||||
|
||||
func (x *SimpleValidator) slowProtoReflect() protoreflect.Message {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[2]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1467,15 +1467,15 @@ func (x *fastReflection_SimpleValidator) Range(f func(protoreflect.FieldDescript
|
||||
// a repeated field is populated if it is non-empty.
|
||||
func (x *fastReflection_SimpleValidator) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
return x.PubKey != nil
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
return x.VotingPower != int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1487,15 +1487,15 @@ func (x *fastReflection_SimpleValidator) Has(fd protoreflect.FieldDescriptor) bo
|
||||
// Clear is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_SimpleValidator) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
x.PubKey = nil
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
x.VotingPower = int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1507,17 +1507,17 @@ func (x *fastReflection_SimpleValidator) Clear(fd protoreflect.FieldDescriptor)
|
||||
// of the value; to obtain a mutable reference, use Mutable.
|
||||
func (x *fastReflection_SimpleValidator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch descriptor.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
value := x.PubKey
|
||||
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
value := x.VotingPower
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", descriptor.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", descriptor.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1533,15 +1533,15 @@ func (x *fastReflection_SimpleValidator) Get(descriptor protoreflect.FieldDescri
|
||||
// Set is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_SimpleValidator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
x.PubKey = value.Message().Interface().(*v1.PublicKey)
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
x.VotingPower = value.Int()
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1557,18 +1557,18 @@ func (x *fastReflection_SimpleValidator) Set(fd protoreflect.FieldDescriptor, va
|
||||
// Mutable is a mutating operation and unsafe for concurrent use.
|
||||
func (x *fastReflection_SimpleValidator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
if x.PubKey == nil {
|
||||
x.PubKey = new(v1.PublicKey)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect())
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
panic(fmt.Errorf("field voting_power of message cometbft.types.v1.SimpleValidator is not mutable"))
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
panic(fmt.Errorf("field voting_power of message cometbft.types.v2.SimpleValidator is not mutable"))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1577,16 +1577,16 @@ func (x *fastReflection_SimpleValidator) Mutable(fd protoreflect.FieldDescriptor
|
||||
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||||
func (x *fastReflection_SimpleValidator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cometbft.types.v1.SimpleValidator.pub_key":
|
||||
case "cometbft.types.v2.SimpleValidator.pub_key":
|
||||
m := new(v1.PublicKey)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cometbft.types.v1.SimpleValidator.voting_power":
|
||||
case "cometbft.types.v2.SimpleValidator.voting_power":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v1.SimpleValidator"))
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cometbft.types.v2.SimpleValidator"))
|
||||
}
|
||||
panic(fmt.Errorf("message cometbft.types.v1.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
panic(fmt.Errorf("message cometbft.types.v2.SimpleValidator does not contain field %s", fd.FullName()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1596,7 +1596,7 @@ func (x *fastReflection_SimpleValidator) NewField(fd protoreflect.FieldDescripto
|
||||
func (x *fastReflection_SimpleValidator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||||
switch d.FullName() {
|
||||
default:
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v1.SimpleValidator", d.FullName()))
|
||||
panic(fmt.Errorf("%s is not a oneof field in cometbft.types.v2.SimpleValidator", d.FullName()))
|
||||
}
|
||||
panic("unreachable")
|
||||
}
|
||||
@@ -1849,7 +1849,7 @@ func (x *fastReflection_SimpleValidator) ProtoMethods() *protoiface.Methods {
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.0
|
||||
// protoc (unknown)
|
||||
// source: cometbft/types/v1/validator.proto
|
||||
// source: cometbft/types/v2/validator.proto
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
@@ -1899,11 +1899,11 @@ func (x BlockIDFlag) String() string {
|
||||
}
|
||||
|
||||
func (BlockIDFlag) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_cometbft_types_v1_validator_proto_enumTypes[0].Descriptor()
|
||||
return file_cometbft_types_v2_validator_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (BlockIDFlag) Type() protoreflect.EnumType {
|
||||
return &file_cometbft_types_v1_validator_proto_enumTypes[0]
|
||||
return &file_cometbft_types_v2_validator_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x BlockIDFlag) Number() protoreflect.EnumNumber {
|
||||
@@ -1912,7 +1912,7 @@ func (x BlockIDFlag) Number() protoreflect.EnumNumber {
|
||||
|
||||
// Deprecated: Use BlockIDFlag.Descriptor instead.
|
||||
func (BlockIDFlag) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_validator_proto_rawDescGZIP(), []int{0}
|
||||
return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// ValidatorSet defines a set of validators.
|
||||
@@ -1929,7 +1929,7 @@ type ValidatorSet struct {
|
||||
func (x *ValidatorSet) Reset() {
|
||||
*x = ValidatorSet{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[0]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1943,7 +1943,7 @@ func (*ValidatorSet) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead.
|
||||
func (*ValidatorSet) Descriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_validator_proto_rawDescGZIP(), []int{0}
|
||||
return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *ValidatorSet) GetValidators() []*Validator {
|
||||
@@ -1985,7 +1985,7 @@ type Validator struct {
|
||||
func (x *Validator) Reset() {
|
||||
*x = Validator{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[1]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1999,7 +1999,7 @@ func (*Validator) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use Validator.ProtoReflect.Descriptor instead.
|
||||
func (*Validator) Descriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_validator_proto_rawDescGZIP(), []int{1}
|
||||
return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Validator) GetAddress() []byte {
|
||||
@@ -2060,7 +2060,7 @@ type SimpleValidator struct {
|
||||
func (x *SimpleValidator) Reset() {
|
||||
*x = SimpleValidator{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_cometbft_types_v1_validator_proto_msgTypes[2]
|
||||
mi := &file_cometbft_types_v2_validator_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -2074,7 +2074,7 @@ func (*SimpleValidator) ProtoMessage() {}
|
||||
|
||||
// Deprecated: Use SimpleValidator.ProtoReflect.Descriptor instead.
|
||||
func (*SimpleValidator) Descriptor() ([]byte, []int) {
|
||||
return file_cometbft_types_v1_validator_proto_rawDescGZIP(), []int{2}
|
||||
return file_cometbft_types_v2_validator_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SimpleValidator) GetPubKey() *v1.PublicKey {
|
||||
@@ -2091,23 +2091,23 @@ func (x *SimpleValidator) GetVotingPower() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_cometbft_types_v1_validator_proto protoreflect.FileDescriptor
|
||||
var File_cometbft_types_v2_validator_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_cometbft_types_v1_validator_proto_rawDesc = []byte{
|
||||
var file_cometbft_types_v2_validator_proto_rawDesc = []byte{
|
||||
0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||||
0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
|
||||
0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 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,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x1a, 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, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0c,
|
||||
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x3c, 0x0a, 0x0a,
|
||||
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65,
|
||||
0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a,
|
||||
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a,
|
||||
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x38, 0x0a, 0x08, 0x70, 0x72,
|
||||
0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32,
|
||||
0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70,
|
||||
0x6f, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
|
||||
@@ -2149,46 +2149,46 @@ var file_cometbft_types_v1_validator_proto_rawDesc = []byte{
|
||||
0x5f, 0x4e, 0x49, 0x4c, 0x10, 0x03, 0x1a, 0x12, 0x8a, 0x9d, 0x20, 0x0e, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x49, 0x44, 0x46, 0x6c, 0x61, 0x67, 0x4e, 0x69, 0x6c, 0x1a, 0x08, 0x88, 0xa3, 0x1e, 0x00,
|
||||
0xa8, 0xa4, 0x1e, 0x01, 0x42, 0xb9, 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, 0x0e,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0e,
|
||||
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 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,
|
||||
0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, 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,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
|
||||
0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 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,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_cometbft_types_v1_validator_proto_rawDescOnce sync.Once
|
||||
file_cometbft_types_v1_validator_proto_rawDescData = file_cometbft_types_v1_validator_proto_rawDesc
|
||||
file_cometbft_types_v2_validator_proto_rawDescOnce sync.Once
|
||||
file_cometbft_types_v2_validator_proto_rawDescData = file_cometbft_types_v2_validator_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_cometbft_types_v1_validator_proto_rawDescGZIP() []byte {
|
||||
file_cometbft_types_v1_validator_proto_rawDescOnce.Do(func() {
|
||||
file_cometbft_types_v1_validator_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v1_validator_proto_rawDescData)
|
||||
func file_cometbft_types_v2_validator_proto_rawDescGZIP() []byte {
|
||||
file_cometbft_types_v2_validator_proto_rawDescOnce.Do(func() {
|
||||
file_cometbft_types_v2_validator_proto_rawDescData = protoimpl.X.CompressGZIP(file_cometbft_types_v2_validator_proto_rawDescData)
|
||||
})
|
||||
return file_cometbft_types_v1_validator_proto_rawDescData
|
||||
return file_cometbft_types_v2_validator_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cometbft_types_v1_validator_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cometbft_types_v1_validator_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_cometbft_types_v1_validator_proto_goTypes = []interface{}{
|
||||
(BlockIDFlag)(0), // 0: cometbft.types.v1.BlockIDFlag
|
||||
(*ValidatorSet)(nil), // 1: cometbft.types.v1.ValidatorSet
|
||||
(*Validator)(nil), // 2: cometbft.types.v1.Validator
|
||||
(*SimpleValidator)(nil), // 3: cometbft.types.v1.SimpleValidator
|
||||
var file_cometbft_types_v2_validator_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cometbft_types_v2_validator_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_cometbft_types_v2_validator_proto_goTypes = []interface{}{
|
||||
(BlockIDFlag)(0), // 0: cometbft.types.v2.BlockIDFlag
|
||||
(*ValidatorSet)(nil), // 1: cometbft.types.v2.ValidatorSet
|
||||
(*Validator)(nil), // 2: cometbft.types.v2.Validator
|
||||
(*SimpleValidator)(nil), // 3: cometbft.types.v2.SimpleValidator
|
||||
(*v1.PublicKey)(nil), // 4: cometbft.crypto.v1.PublicKey
|
||||
}
|
||||
var file_cometbft_types_v1_validator_proto_depIdxs = []int32{
|
||||
2, // 0: cometbft.types.v1.ValidatorSet.validators:type_name -> cometbft.types.v1.Validator
|
||||
2, // 1: cometbft.types.v1.ValidatorSet.proposer:type_name -> cometbft.types.v1.Validator
|
||||
4, // 2: cometbft.types.v1.Validator.pub_key:type_name -> cometbft.crypto.v1.PublicKey
|
||||
4, // 3: cometbft.types.v1.SimpleValidator.pub_key:type_name -> cometbft.crypto.v1.PublicKey
|
||||
var file_cometbft_types_v2_validator_proto_depIdxs = []int32{
|
||||
2, // 0: cometbft.types.v2.ValidatorSet.validators:type_name -> cometbft.types.v2.Validator
|
||||
2, // 1: cometbft.types.v2.ValidatorSet.proposer:type_name -> cometbft.types.v2.Validator
|
||||
4, // 2: cometbft.types.v2.Validator.pub_key:type_name -> cometbft.crypto.v1.PublicKey
|
||||
4, // 3: cometbft.types.v2.SimpleValidator.pub_key:type_name -> cometbft.crypto.v1.PublicKey
|
||||
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
|
||||
@@ -2196,13 +2196,13 @@ var file_cometbft_types_v1_validator_proto_depIdxs = []int32{
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_cometbft_types_v1_validator_proto_init() }
|
||||
func file_cometbft_types_v1_validator_proto_init() {
|
||||
if File_cometbft_types_v1_validator_proto != nil {
|
||||
func init() { file_cometbft_types_v2_validator_proto_init() }
|
||||
func file_cometbft_types_v2_validator_proto_init() {
|
||||
if File_cometbft_types_v2_validator_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cometbft_types_v1_validator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cometbft_types_v2_validator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ValidatorSet); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2214,7 +2214,7 @@ func file_cometbft_types_v1_validator_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cometbft_types_v1_validator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cometbft_types_v2_validator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Validator); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2226,7 +2226,7 @@ func file_cometbft_types_v1_validator_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cometbft_types_v1_validator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cometbft_types_v2_validator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SimpleValidator); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2243,19 +2243,19 @@ func file_cometbft_types_v1_validator_proto_init() {
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_cometbft_types_v1_validator_proto_rawDesc,
|
||||
RawDescriptor: file_cometbft_types_v2_validator_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_cometbft_types_v1_validator_proto_goTypes,
|
||||
DependencyIndexes: file_cometbft_types_v1_validator_proto_depIdxs,
|
||||
EnumInfos: file_cometbft_types_v1_validator_proto_enumTypes,
|
||||
MessageInfos: file_cometbft_types_v1_validator_proto_msgTypes,
|
||||
GoTypes: file_cometbft_types_v2_validator_proto_goTypes,
|
||||
DependencyIndexes: file_cometbft_types_v2_validator_proto_depIdxs,
|
||||
EnumInfos: file_cometbft_types_v2_validator_proto_enumTypes,
|
||||
MessageInfos: file_cometbft_types_v2_validator_proto_msgTypes,
|
||||
}.Build()
|
||||
File_cometbft_types_v1_validator_proto = out.File
|
||||
file_cometbft_types_v1_validator_proto_rawDesc = nil
|
||||
file_cometbft_types_v1_validator_proto_goTypes = nil
|
||||
file_cometbft_types_v1_validator_proto_depIdxs = nil
|
||||
File_cometbft_types_v2_validator_proto = out.File
|
||||
file_cometbft_types_v2_validator_proto_rawDesc = nil
|
||||
file_cometbft_types_v2_validator_proto_goTypes = nil
|
||||
file_cometbft_types_v2_validator_proto_depIdxs = nil
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
package abciv1beta1
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/abci/v1"
|
||||
v11 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/abci/v2"
|
||||
v21 "cosmossdk.io/api/cometbft/types/v2"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
@@ -71,7 +71,7 @@ func (x *_TxResponse_7_list) IsValid() bool {
|
||||
var _ protoreflect.List = (*_TxResponse_13_list)(nil)
|
||||
|
||||
type _TxResponse_13_list struct {
|
||||
list *[]*v1.Event
|
||||
list *[]*v2.Event
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) Len() int {
|
||||
@@ -87,18 +87,18 @@ func (x *_TxResponse_13_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_TxResponse_13_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func (x *_TxResponse_13_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) NewElement() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -524,7 +524,7 @@ func (x *fastReflection_TxResponse) Mutable(fd protoreflect.FieldDescriptor) pro
|
||||
return protoreflect.ValueOfMessage(x.Tx.ProtoReflect())
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.events":
|
||||
if x.Events == nil {
|
||||
x.Events = []*v1.Event{}
|
||||
x.Events = []*v2.Event{}
|
||||
}
|
||||
value := &_TxResponse_13_list{list: &x.Events}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -588,7 +588,7 @@ func (x *fastReflection_TxResponse) NewField(fd protoreflect.FieldDescriptor) pr
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.timestamp":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.events":
|
||||
list := []*v1.Event{}
|
||||
list := []*v2.Event{}
|
||||
return protoreflect.ValueOfList(&_TxResponse_13_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -1264,7 +1264,7 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Events = append(x.Events, &v1.Event{})
|
||||
x.Events = append(x.Events, &v2.Event{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -3407,7 +3407,7 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods {
|
||||
var _ protoreflect.List = (*_Result_3_list)(nil)
|
||||
|
||||
type _Result_3_list struct {
|
||||
list *[]*v1.Event
|
||||
list *[]*v2.Event
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) Len() int {
|
||||
@@ -3423,18 +3423,18 @@ func (x *_Result_3_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_Result_3_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -3447,7 +3447,7 @@ func (x *_Result_3_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) NewElement() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -3747,7 +3747,7 @@ func (x *fastReflection_Result) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.abci.v1beta1.Result.events":
|
||||
if x.Events == nil {
|
||||
x.Events = []*v1.Event{}
|
||||
x.Events = []*v2.Event{}
|
||||
}
|
||||
value := &_Result_3_list{list: &x.Events}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -3779,7 +3779,7 @@ func (x *fastReflection_Result) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
case "cosmos.base.abci.v1beta1.Result.log":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.base.abci.v1beta1.Result.events":
|
||||
list := []*v1.Event{}
|
||||
list := []*v2.Event{}
|
||||
return protoreflect.ValueOfList(&_Result_3_list{list: &list})
|
||||
case "cosmos.base.abci.v1beta1.Result.msg_responses":
|
||||
list := []*anypb.Any{}
|
||||
@@ -4092,7 +4092,7 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Events = append(x.Events, &v1.Event{})
|
||||
x.Events = append(x.Events, &v2.Event{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -6535,7 +6535,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods {
|
||||
var _ protoreflect.List = (*_SearchBlocksResult_6_list)(nil)
|
||||
|
||||
type _SearchBlocksResult_6_list struct {
|
||||
list *[]*v11.Block
|
||||
list *[]*v21.Block
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Len() int {
|
||||
@@ -6551,18 +6551,18 @@ func (x *_SearchBlocksResult_6_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.Block)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.Block)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.Block)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.Block)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v11.Block)
|
||||
v := new(v21.Block)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -6575,7 +6575,7 @@ func (x *_SearchBlocksResult_6_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) NewElement() protoreflect.Value {
|
||||
v := new(v11.Block)
|
||||
v := new(v21.Block)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -6853,7 +6853,7 @@ func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescrip
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks":
|
||||
if x.Blocks == nil {
|
||||
x.Blocks = []*v11.Block{}
|
||||
x.Blocks = []*v21.Block{}
|
||||
}
|
||||
value := &_SearchBlocksResult_6_list{list: &x.Blocks}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -6891,7 +6891,7 @@ func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescri
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks":
|
||||
list := []*v11.Block{}
|
||||
list := []*v21.Block{}
|
||||
return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -7226,7 +7226,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Blocks = append(x.Blocks, &v11.Block{})
|
||||
x.Blocks = append(x.Blocks, &v21.Block{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Blocks[len(x.Blocks)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -7317,7 +7317,7 @@ type TxResponse struct {
|
||||
// these events include those emitted by processing all the messages and those
|
||||
// emitted from the ante. Whereas Logs contains the events, with
|
||||
// additional metadata, emitted only by processing the messages.
|
||||
Events []*v1.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
|
||||
Events []*v2.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TxResponse) Reset() {
|
||||
@@ -7424,7 +7424,7 @@ func (x *TxResponse) GetTimestamp() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TxResponse) GetEvents() []*v1.Event {
|
||||
func (x *TxResponse) GetEvents() []*v2.Event {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
}
|
||||
@@ -7638,7 +7638,7 @@ type Result struct {
|
||||
Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
|
||||
// Events contains a slice of Event objects that were emitted during message
|
||||
// or handler execution.
|
||||
Events []*v1.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
|
||||
Events []*v2.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
|
||||
// msg_responses contains the Msg handler responses type packed in Anys.
|
||||
MsgResponses []*anypb.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
|
||||
}
|
||||
@@ -7678,7 +7678,7 @@ func (x *Result) GetLog() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Result) GetEvents() []*v1.Event {
|
||||
func (x *Result) GetEvents() []*v2.Event {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
}
|
||||
@@ -7933,7 +7933,7 @@ type SearchBlocksResult struct {
|
||||
// Max count blocks per page
|
||||
Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
// List of blocks in current page
|
||||
Blocks []*v11.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
Blocks []*v21.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SearchBlocksResult) Reset() {
|
||||
@@ -7991,7 +7991,7 @@ func (x *SearchBlocksResult) GetLimit() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SearchBlocksResult) GetBlocks() []*v11.Block {
|
||||
func (x *SearchBlocksResult) GetBlocks() []*v21.Block {
|
||||
if x != nil {
|
||||
return x.Blocks
|
||||
}
|
||||
@@ -8007,9 +8007,9 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
|
||||
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 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,
|
||||
0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 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,
|
||||
0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
|
||||
@@ -8040,7 +8040,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x48, 0x0a, 0x06, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x52, 0x06, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e,
|
||||
@@ -8074,7 +8074,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76,
|
||||
0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74,
|
||||
0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
@@ -8131,7 +8131,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c,
|
||||
0x69, 0x6d, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0xd8,
|
||||
0xe1, 0x1e, 0x00, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
@@ -8176,23 +8176,23 @@ var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{
|
||||
(*SearchTxsResult)(nil), // 9: cosmos.base.abci.v1beta1.SearchTxsResult
|
||||
(*SearchBlocksResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchBlocksResult
|
||||
(*anypb.Any)(nil), // 11: google.protobuf.Any
|
||||
(*v1.Event)(nil), // 12: cometbft.abci.v1.Event
|
||||
(*v11.Block)(nil), // 13: cometbft.types.v1.Block
|
||||
(*v2.Event)(nil), // 12: cometbft.abci.v2.Event
|
||||
(*v21.Block)(nil), // 13: cometbft.types.v2.Block
|
||||
}
|
||||
var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog
|
||||
11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any
|
||||
12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> cometbft.abci.v1.Event
|
||||
12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> cometbft.abci.v2.Event
|
||||
2, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent
|
||||
3, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute
|
||||
12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> cometbft.abci.v1.Event
|
||||
12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> cometbft.abci.v2.Event
|
||||
11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any
|
||||
4, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo
|
||||
5, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result
|
||||
7, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData
|
||||
11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any
|
||||
0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse
|
||||
13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cometbft.types.v1.Block
|
||||
13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cometbft.types.v2.Block
|
||||
13, // [13:13] is the sub-list for method output_type
|
||||
13, // [13:13] is the sub-list for method input_type
|
||||
13, // [13:13] is the sub-list for extension type_name
|
||||
|
||||
@@ -3,8 +3,8 @@ package tendermintv1beta1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v11 "cosmossdk.io/api/cometbft/p2p/v1"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v1 "cosmossdk.io/api/cometbft/p2p/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
@@ -3366,9 +3366,9 @@ func (x *fastReflection_GetBlockByHeightResponse) Get(descriptor protoreflect.Fi
|
||||
func (x *fastReflection_GetBlockByHeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
x.BlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.BlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
x.Block = value.Message().Interface().(*v1.Block)
|
||||
x.Block = value.Message().Interface().(*v2.Block)
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
x.SdkBlock = value.Message().Interface().(*Block)
|
||||
default:
|
||||
@@ -3393,12 +3393,12 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = new(v1.BlockID)
|
||||
x.BlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.Block)
|
||||
x.Block = new(v2.Block)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
@@ -3420,10 +3420,10 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD
|
||||
func (x *fastReflection_GetBlockByHeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
m := new(v1.Block)
|
||||
m := new(v2.Block)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
m := new(Block)
|
||||
@@ -3659,7 +3659,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = &v1.BlockID{}
|
||||
x.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -3695,7 +3695,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.Block{}
|
||||
x.Block = &v2.Block{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -4315,9 +4315,9 @@ func (x *fastReflection_GetLatestBlockResponse) Get(descriptor protoreflect.Fiel
|
||||
func (x *fastReflection_GetLatestBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
x.BlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.BlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
x.Block = value.Message().Interface().(*v1.Block)
|
||||
x.Block = value.Message().Interface().(*v2.Block)
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
x.SdkBlock = value.Message().Interface().(*Block)
|
||||
default:
|
||||
@@ -4342,12 +4342,12 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = new(v1.BlockID)
|
||||
x.BlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.Block)
|
||||
x.Block = new(v2.Block)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
@@ -4369,10 +4369,10 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes
|
||||
func (x *fastReflection_GetLatestBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
m := new(v1.Block)
|
||||
m := new(v2.Block)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
m := new(Block)
|
||||
@@ -4608,7 +4608,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = &v1.BlockID{}
|
||||
x.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -4644,7 +4644,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.Block{}
|
||||
x.Block = &v2.Block{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -6015,7 +6015,7 @@ func (x *fastReflection_GetNodeInfoResponse) Get(descriptor protoreflect.FieldDe
|
||||
func (x *fastReflection_GetNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
x.DefaultNodeInfo = value.Message().Interface().(*v11.DefaultNodeInfo)
|
||||
x.DefaultNodeInfo = value.Message().Interface().(*v1.DefaultNodeInfo)
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
x.ApplicationVersion = value.Message().Interface().(*VersionInfo)
|
||||
default:
|
||||
@@ -6040,7 +6040,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
if x.DefaultNodeInfo == nil {
|
||||
x.DefaultNodeInfo = new(v11.DefaultNodeInfo)
|
||||
x.DefaultNodeInfo = new(v1.DefaultNodeInfo)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.DefaultNodeInfo.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
@@ -6062,7 +6062,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri
|
||||
func (x *fastReflection_GetNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
m := new(v11.DefaultNodeInfo)
|
||||
m := new(v1.DefaultNodeInfo)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
m := new(VersionInfo)
|
||||
@@ -6280,7 +6280,7 @@ func (x *fastReflection_GetNodeInfoResponse) ProtoMethods() *protoiface.Methods
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.DefaultNodeInfo == nil {
|
||||
x.DefaultNodeInfo = &v11.DefaultNodeInfo{}
|
||||
x.DefaultNodeInfo = &v1.DefaultNodeInfo{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DefaultNodeInfo); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -10687,9 +10687,9 @@ type GetBlockByHeightResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -10713,14 +10713,14 @@ func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *GetBlockByHeightResponse) GetBlockId() *v1.BlockID {
|
||||
func (x *GetBlockByHeightResponse) GetBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetBlockByHeightResponse) GetBlock() *v1.Block {
|
||||
func (x *GetBlockByHeightResponse) GetBlock() *v2.Block {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
@@ -10767,9 +10767,9 @@ type GetLatestBlockResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -10793,14 +10793,14 @@ func (*GetLatestBlockResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *GetLatestBlockResponse) GetBlockId() *v1.BlockID {
|
||||
func (x *GetLatestBlockResponse) GetBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetLatestBlockResponse) GetBlock() *v1.Block {
|
||||
func (x *GetLatestBlockResponse) GetBlock() *v2.Block {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
@@ -10910,8 +10910,8 @@ type GetNodeInfoResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DefaultNodeInfo *v11.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
DefaultNodeInfo *v1.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetNodeInfoResponse) Reset() {
|
||||
@@ -10934,7 +10934,7 @@ func (*GetNodeInfoResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *v11.DefaultNodeInfo {
|
||||
func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *v1.DefaultNodeInfo {
|
||||
if x != nil {
|
||||
return x.DefaultNodeInfo
|
||||
}
|
||||
@@ -11367,7 +11367,7 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
|
||||
0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
||||
0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
||||
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
|
||||
@@ -11376,7 +11376,7 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
|
||||
0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a,
|
||||
0x1e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74,
|
||||
@@ -11440,10 +11440,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
|
||||
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e,
|
||||
@@ -11455,10 +11455,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x35, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
|
||||
0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d,
|
||||
@@ -11681,10 +11681,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_goTypes = []interface{}{
|
||||
(*v1beta1.PageRequest)(nil), // 19: cosmos.base.query.v1beta1.PageRequest
|
||||
(*v1beta1.PageResponse)(nil), // 20: cosmos.base.query.v1beta1.PageResponse
|
||||
(*anypb.Any)(nil), // 21: google.protobuf.Any
|
||||
(*v1.BlockID)(nil), // 22: cometbft.types.v1.BlockID
|
||||
(*v1.Block)(nil), // 23: cometbft.types.v1.Block
|
||||
(*v2.BlockID)(nil), // 22: cometbft.types.v2.BlockID
|
||||
(*v2.Block)(nil), // 23: cometbft.types.v2.Block
|
||||
(*Block)(nil), // 24: cosmos.base.tendermint.v1beta1.Block
|
||||
(*v11.DefaultNodeInfo)(nil), // 25: cometbft.p2p.v1.DefaultNodeInfo
|
||||
(*v1.DefaultNodeInfo)(nil), // 25: cometbft.p2p.v1.DefaultNodeInfo
|
||||
}
|
||||
var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{
|
||||
19, // 0: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||||
@@ -11694,11 +11694,11 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{
|
||||
4, // 4: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.validators:type_name -> cosmos.base.tendermint.v1beta1.Validator
|
||||
20, // 5: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||||
21, // 6: cosmos.base.tendermint.v1beta1.Validator.pub_key:type_name -> google.protobuf.Any
|
||||
22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> cometbft.types.v1.BlockID
|
||||
23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> cometbft.types.v1.Block
|
||||
22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> cometbft.types.v2.BlockID
|
||||
23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> cometbft.types.v2.Block
|
||||
24, // 9: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block
|
||||
22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> cometbft.types.v1.BlockID
|
||||
23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> cometbft.types.v1.Block
|
||||
22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> cometbft.types.v2.BlockID
|
||||
23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> cometbft.types.v2.Block
|
||||
24, // 12: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block
|
||||
25, // 13: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info:type_name -> cometbft.p2p.v1.DefaultNodeInfo
|
||||
13, // 14: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version:type_name -> cosmos.base.tendermint.v1beta1.VersionInfo
|
||||
|
||||
@@ -3,8 +3,8 @@ package tendermintv1beta1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v11 "cosmossdk.io/api/cometbft/version/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1 "cosmossdk.io/api/cometbft/version/v1"
|
||||
fmt "fmt"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||
@@ -221,11 +221,11 @@ func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protor
|
||||
case "cosmos.base.tendermint.v1beta1.Block.header":
|
||||
x.Header = value.Message().Interface().(*Header)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
x.Data = value.Message().Interface().(*v1.Data)
|
||||
x.Data = value.Message().Interface().(*v2.Data)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
x.Evidence = value.Message().Interface().(*v1.EvidenceList)
|
||||
x.Evidence = value.Message().Interface().(*v2.EvidenceList)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
x.LastCommit = value.Message().Interface().(*v1.Commit)
|
||||
x.LastCommit = value.Message().Interface().(*v2.Commit)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.tendermint.v1beta1.Block"))
|
||||
@@ -253,17 +253,17 @@ func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoref
|
||||
return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
if x.Data == nil {
|
||||
x.Data = new(v1.Data)
|
||||
x.Data = new(v2.Data)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Data.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = new(v1.EvidenceList)
|
||||
x.Evidence = new(v2.EvidenceList)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
if x.LastCommit == nil {
|
||||
x.LastCommit = new(v1.Commit)
|
||||
x.LastCommit = new(v2.Commit)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect())
|
||||
default:
|
||||
@@ -283,13 +283,13 @@ func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protore
|
||||
m := new(Header)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
m := new(v1.Data)
|
||||
m := new(v2.Data)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
m := new(v1.EvidenceList)
|
||||
m := new(v2.EvidenceList)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
m := new(v1.Commit)
|
||||
m := new(v2.Commit)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -576,7 +576,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Data == nil {
|
||||
x.Data = &v1.Data{}
|
||||
x.Data = &v2.Data{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -612,7 +612,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = &v1.EvidenceList{}
|
||||
x.Evidence = &v2.EvidenceList{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -648,7 +648,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.LastCommit == nil {
|
||||
x.LastCommit = &v1.Commit{}
|
||||
x.LastCommit = &v2.Commit{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1041,7 +1041,7 @@ func (x *fastReflection_Header) Get(descriptor protoreflect.FieldDescriptor) pro
|
||||
func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
x.Version = value.Message().Interface().(*v11.Consensus)
|
||||
x.Version = value.Message().Interface().(*v1.Consensus)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
x.ChainId = value.Interface().(string)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.height":
|
||||
@@ -1049,7 +1049,7 @@ func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value proto
|
||||
case "cosmos.base.tendermint.v1beta1.Header.time":
|
||||
x.Time = value.Message().Interface().(*timestamppb.Timestamp)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
x.LastBlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.LastBlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash":
|
||||
x.LastCommitHash = value.Bytes()
|
||||
case "cosmos.base.tendermint.v1beta1.Header.data_hash":
|
||||
@@ -1090,7 +1090,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
if x.Version == nil {
|
||||
x.Version = new(v11.Consensus)
|
||||
x.Version = new(v1.Consensus)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Version.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.time":
|
||||
@@ -1100,7 +1100,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
return protoreflect.ValueOfMessage(x.Time.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
if x.LastBlockId == nil {
|
||||
x.LastBlockId = new(v1.BlockID)
|
||||
x.LastBlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.LastBlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
@@ -1139,7 +1139,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
m := new(v11.Consensus)
|
||||
m := new(v1.Consensus)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
return protoreflect.ValueOfString("")
|
||||
@@ -1149,7 +1149,7 @@ func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
m := new(timestamppb.Timestamp)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash":
|
||||
return protoreflect.ValueOfBytes(nil)
|
||||
@@ -1518,7 +1518,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Version == nil {
|
||||
x.Version = &v11.Consensus{}
|
||||
x.Version = &v1.Consensus{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Version); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1641,7 +1641,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.LastBlockId == nil {
|
||||
x.LastBlockId = &v1.BlockID{}
|
||||
x.LastBlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastBlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -2007,9 +2007,9 @@ type Block struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Data *v1.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Evidence *v1.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
LastCommit *v1.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
Data *v2.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Evidence *v2.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
LastCommit *v2.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Block) Reset() {
|
||||
@@ -2039,21 +2039,21 @@ func (x *Block) GetHeader() *Header {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetData() *v1.Data {
|
||||
func (x *Block) GetData() *v2.Data {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetEvidence() *v1.EvidenceList {
|
||||
func (x *Block) GetEvidence() *v2.EvidenceList {
|
||||
if x != nil {
|
||||
return x.Evidence
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetLastCommit() *v1.Commit {
|
||||
func (x *Block) GetLastCommit() *v2.Commit {
|
||||
if x != nil {
|
||||
return x.LastCommit
|
||||
}
|
||||
@@ -2067,12 +2067,12 @@ type Header struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// basic block info
|
||||
Version *v11.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Version *v1.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
|
||||
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
|
||||
// prev block info
|
||||
LastBlockId *v1.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
|
||||
LastBlockId *v2.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
|
||||
// hashes of block data
|
||||
LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block
|
||||
DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // transactions
|
||||
@@ -2110,7 +2110,7 @@ func (*Header) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_types_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Header) GetVersion() *v11.Consensus {
|
||||
func (x *Header) GetVersion() *v1.Consensus {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
@@ -2138,7 +2138,7 @@ func (x *Header) GetTime() *timestamppb.Timestamp {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Header) GetLastBlockId() *v1.BlockID {
|
||||
func (x *Header) GetLastBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.LastBlockId
|
||||
}
|
||||
@@ -2218,9 +2218,9 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f,
|
||||
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 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,
|
||||
0x65, 0x73, 0x2f, 0x76, 0x32, 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,
|
||||
0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x76, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
||||
@@ -2233,16 +2233,16 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x74, 0x61, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00,
|
||||
0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x36, 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,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
||||
0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 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,
|
||||
0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64,
|
||||
0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
|
||||
0xb0, 0x2a, 0x01, 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,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c,
|
||||
0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0xf7, 0x04, 0x0a, 0x06, 0x48, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
|
||||
@@ -2259,7 +2259,7 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x2a, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74,
|
||||
0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f,
|
||||
0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f,
|
||||
0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
|
||||
0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c,
|
||||
@@ -2319,21 +2319,21 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_msgTypes = make([]protoimpl.
|
||||
var file_cosmos_base_tendermint_v1beta1_types_proto_goTypes = []interface{}{
|
||||
(*Block)(nil), // 0: cosmos.base.tendermint.v1beta1.Block
|
||||
(*Header)(nil), // 1: cosmos.base.tendermint.v1beta1.Header
|
||||
(*v1.Data)(nil), // 2: cometbft.types.v1.Data
|
||||
(*v1.EvidenceList)(nil), // 3: cometbft.types.v1.EvidenceList
|
||||
(*v1.Commit)(nil), // 4: cometbft.types.v1.Commit
|
||||
(*v11.Consensus)(nil), // 5: cometbft.version.v1.Consensus
|
||||
(*v2.Data)(nil), // 2: cometbft.types.v2.Data
|
||||
(*v2.EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList
|
||||
(*v2.Commit)(nil), // 4: cometbft.types.v2.Commit
|
||||
(*v1.Consensus)(nil), // 5: cometbft.version.v1.Consensus
|
||||
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
||||
(*v1.BlockID)(nil), // 7: cometbft.types.v1.BlockID
|
||||
(*v2.BlockID)(nil), // 7: cometbft.types.v2.BlockID
|
||||
}
|
||||
var file_cosmos_base_tendermint_v1beta1_types_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.base.tendermint.v1beta1.Block.header:type_name -> cosmos.base.tendermint.v1beta1.Header
|
||||
2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> cometbft.types.v1.Data
|
||||
3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> cometbft.types.v1.EvidenceList
|
||||
4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> cometbft.types.v1.Commit
|
||||
2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> cometbft.types.v2.Data
|
||||
3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> cometbft.types.v2.EvidenceList
|
||||
4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> cometbft.types.v2.Commit
|
||||
5, // 4: cosmos.base.tendermint.v1beta1.Header.version:type_name -> cometbft.version.v1.Consensus
|
||||
6, // 5: cosmos.base.tendermint.v1beta1.Header.time:type_name -> google.protobuf.Timestamp
|
||||
7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> cometbft.types.v1.BlockID
|
||||
7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> cometbft.types.v2.BlockID
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package consensusv1
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
@@ -528,7 +528,7 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe
|
||||
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.consensus.v1.QueryParamsResponse.params":
|
||||
x.Params = value.Message().Interface().(*v1.ConsensusParams)
|
||||
x.Params = value.Message().Interface().(*v2.ConsensusParams)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.QueryParamsResponse"))
|
||||
@@ -551,7 +551,7 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
case "cosmos.consensus.v1.QueryParamsResponse.params":
|
||||
if x.Params == nil {
|
||||
x.Params = new(v1.ConsensusParams)
|
||||
x.Params = new(v2.ConsensusParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
||||
default:
|
||||
@@ -568,7 +568,7 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri
|
||||
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.consensus.v1.QueryParamsResponse.params":
|
||||
m := new(v1.ConsensusParams)
|
||||
m := new(v2.ConsensusParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -765,7 +765,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Params == nil {
|
||||
x.Params = &v1.ConsensusParams{}
|
||||
x.Params = &v2.ConsensusParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -855,7 +855,7 @@ type QueryParamsResponse struct {
|
||||
// params are the tendermint consensus params stored in the consensus module.
|
||||
// Please note that `params.version` is not populated in this response, it is
|
||||
// tracked separately in the x/upgrade module.
|
||||
Params *v1.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
|
||||
Params *v2.ConsensusParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QueryParamsResponse) Reset() {
|
||||
@@ -878,7 +878,7 @@ func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_consensus_v1_query_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *QueryParamsResponse) GetParams() *v1.ConsensusParams {
|
||||
func (x *QueryParamsResponse) GetParams() *v2.ConsensusParams {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
@@ -894,14 +894,14 @@ var file_cosmos_consensus_v1_query_proto_rawDesc = []byte{
|
||||
0x73, 0x75, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
|
||||
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74,
|
||||
0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70,
|
||||
0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
||||
0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06,
|
||||
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32,
|
||||
0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
||||
0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x9d, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e,
|
||||
@@ -945,10 +945,10 @@ var file_cosmos_consensus_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo
|
||||
var file_cosmos_consensus_v1_query_proto_goTypes = []interface{}{
|
||||
(*QueryParamsRequest)(nil), // 0: cosmos.consensus.v1.QueryParamsRequest
|
||||
(*QueryParamsResponse)(nil), // 1: cosmos.consensus.v1.QueryParamsResponse
|
||||
(*v1.ConsensusParams)(nil), // 2: cometbft.types.v1.ConsensusParams
|
||||
(*v2.ConsensusParams)(nil), // 2: cometbft.types.v2.ConsensusParams
|
||||
}
|
||||
var file_cosmos_consensus_v1_query_proto_depIdxs = []int32{
|
||||
2, // 0: cosmos.consensus.v1.QueryParamsResponse.params:type_name -> cometbft.types.v1.ConsensusParams
|
||||
2, // 0: cosmos.consensus.v1.QueryParamsResponse.params:type_name -> cometbft.types.v2.ConsensusParams
|
||||
0, // 1: cosmos.consensus.v1.Query.Params:input_type -> cosmos.consensus.v1.QueryParamsRequest
|
||||
1, // 2: cosmos.consensus.v1.Query.Params:output_type -> cosmos.consensus.v1.QueryParamsResponse
|
||||
2, // [2:3] is the sub-list for method output_type
|
||||
|
||||
@@ -3,7 +3,7 @@ package consensusv1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
_ "cosmossdk.io/api/cosmos/msg/v1"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
@@ -265,17 +265,17 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.authority":
|
||||
x.Authority = value.Interface().(string)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.block":
|
||||
x.Block = value.Message().Interface().(*v1.BlockParams)
|
||||
x.Block = value.Message().Interface().(*v2.BlockParams)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.evidence":
|
||||
x.Evidence = value.Message().Interface().(*v1.EvidenceParams)
|
||||
x.Evidence = value.Message().Interface().(*v2.EvidenceParams)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.validator":
|
||||
x.Validator = value.Message().Interface().(*v1.ValidatorParams)
|
||||
x.Validator = value.Message().Interface().(*v2.ValidatorParams)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.abci":
|
||||
x.Abci = value.Message().Interface().(*v1.ABCIParams)
|
||||
x.Abci = value.Message().Interface().(*v2.ABCIParams)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.synchrony":
|
||||
x.Synchrony = value.Message().Interface().(*v1.SynchronyParams)
|
||||
x.Synchrony = value.Message().Interface().(*v2.SynchronyParams)
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.feature":
|
||||
x.Feature = value.Message().Interface().(*v1.FeatureParams)
|
||||
x.Feature = value.Message().Interface().(*v2.FeatureParams)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgUpdateParams"))
|
||||
@@ -298,32 +298,32 @@ func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor
|
||||
switch fd.FullName() {
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.BlockParams)
|
||||
x.Block = new(v2.BlockParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.evidence":
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = new(v1.EvidenceParams)
|
||||
x.Evidence = new(v2.EvidenceParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.validator":
|
||||
if x.Validator == nil {
|
||||
x.Validator = new(v1.ValidatorParams)
|
||||
x.Validator = new(v2.ValidatorParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Validator.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.abci":
|
||||
if x.Abci == nil {
|
||||
x.Abci = new(v1.ABCIParams)
|
||||
x.Abci = new(v2.ABCIParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Abci.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.synchrony":
|
||||
if x.Synchrony == nil {
|
||||
x.Synchrony = new(v1.SynchronyParams)
|
||||
x.Synchrony = new(v2.SynchronyParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Synchrony.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.feature":
|
||||
if x.Feature == nil {
|
||||
x.Feature = new(v1.FeatureParams)
|
||||
x.Feature = new(v2.FeatureParams)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Feature.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.authority":
|
||||
@@ -344,22 +344,22 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.authority":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.block":
|
||||
m := new(v1.BlockParams)
|
||||
m := new(v2.BlockParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.evidence":
|
||||
m := new(v1.EvidenceParams)
|
||||
m := new(v2.EvidenceParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.validator":
|
||||
m := new(v1.ValidatorParams)
|
||||
m := new(v2.ValidatorParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.abci":
|
||||
m := new(v1.ABCIParams)
|
||||
m := new(v2.ABCIParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.synchrony":
|
||||
m := new(v1.SynchronyParams)
|
||||
m := new(v2.SynchronyParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.consensus.v1.MsgUpdateParams.feature":
|
||||
m := new(v1.FeatureParams)
|
||||
m := new(v2.FeatureParams)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -689,7 +689,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.BlockParams{}
|
||||
x.Block = &v2.BlockParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -725,7 +725,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = &v1.EvidenceParams{}
|
||||
x.Evidence = &v2.EvidenceParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -761,7 +761,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Validator == nil {
|
||||
x.Validator = &v1.ValidatorParams{}
|
||||
x.Validator = &v2.ValidatorParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Validator); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -797,7 +797,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Abci == nil {
|
||||
x.Abci = &v1.ABCIParams{}
|
||||
x.Abci = &v2.ABCIParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Abci); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -833,7 +833,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Synchrony == nil {
|
||||
x.Synchrony = &v1.SynchronyParams{}
|
||||
x.Synchrony = &v2.SynchronyParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Synchrony); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -869,7 +869,7 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Feature == nil {
|
||||
x.Feature = &v1.FeatureParams{}
|
||||
x.Feature = &v2.FeatureParams{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Feature); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1292,13 +1292,13 @@ type MsgUpdateParams struct {
|
||||
// separarately in x/upgrade.
|
||||
//
|
||||
// NOTE: All parameters must be supplied.
|
||||
Block *v1.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Evidence *v1.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
Validator *v1.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"`
|
||||
Block *v2.BlockParams `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Evidence *v2.EvidenceParams `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
Validator *v2.ValidatorParams `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"`
|
||||
// Deprecated: Do not use.
|
||||
Abci *v1.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"`
|
||||
Synchrony *v1.SynchronyParams `protobuf:"bytes,6,opt,name=synchrony,proto3" json:"synchrony,omitempty"`
|
||||
Feature *v1.FeatureParams `protobuf:"bytes,7,opt,name=feature,proto3" json:"feature,omitempty"`
|
||||
Abci *v2.ABCIParams `protobuf:"bytes,5,opt,name=abci,proto3" json:"abci,omitempty"`
|
||||
Synchrony *v2.SynchronyParams `protobuf:"bytes,6,opt,name=synchrony,proto3" json:"synchrony,omitempty"`
|
||||
Feature *v2.FeatureParams `protobuf:"bytes,7,opt,name=feature,proto3" json:"feature,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) Reset() {
|
||||
@@ -1328,21 +1328,21 @@ func (x *MsgUpdateParams) GetAuthority() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetBlock() *v1.BlockParams {
|
||||
func (x *MsgUpdateParams) GetBlock() *v2.BlockParams {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetEvidence() *v1.EvidenceParams {
|
||||
func (x *MsgUpdateParams) GetEvidence() *v2.EvidenceParams {
|
||||
if x != nil {
|
||||
return x.Evidence
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetValidator() *v1.ValidatorParams {
|
||||
func (x *MsgUpdateParams) GetValidator() *v2.ValidatorParams {
|
||||
if x != nil {
|
||||
return x.Validator
|
||||
}
|
||||
@@ -1350,21 +1350,21 @@ func (x *MsgUpdateParams) GetValidator() *v1.ValidatorParams {
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (x *MsgUpdateParams) GetAbci() *v1.ABCIParams {
|
||||
func (x *MsgUpdateParams) GetAbci() *v2.ABCIParams {
|
||||
if x != nil {
|
||||
return x.Abci
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetSynchrony() *v1.SynchronyParams {
|
||||
func (x *MsgUpdateParams) GetSynchrony() *v2.SynchronyParams {
|
||||
if x != nil {
|
||||
return x.Synchrony
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MsgUpdateParams) GetFeature() *v1.FeatureParams {
|
||||
func (x *MsgUpdateParams) GetFeature() *v2.FeatureParams {
|
||||
if x != nil {
|
||||
return x.Feature
|
||||
}
|
||||
@@ -1410,7 +1410,7 @@ var file_cosmos_consensus_v1_tx_proto_rawDesc = []byte{
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x6d, 0x65,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61,
|
||||
0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x04, 0x0a, 0x0f, 0x4d,
|
||||
0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36,
|
||||
0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
@@ -1418,29 +1418,29 @@ var file_cosmos_consensus_v1_tx_proto_rawDesc = []byte{
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74,
|
||||
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
|
||||
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50,
|
||||
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50,
|
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3d, 0x0a, 0x08,
|
||||
0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
|
||||
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, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x76,
|
||||
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
|
||||
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61,
|
||||
0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x72, 0x61,
|
||||
0x6d, 0x73, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a,
|
||||
0x04, 0x61, 0x62, 0x63, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
||||
0x41, 0x42, 0x43, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x15, 0xda, 0xb4, 0x2d, 0x0f,
|
||||
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x35, 0x30, 0x18,
|
||||
0x01, 0x52, 0x04, 0x61, 0x62, 0x63, 0x69, 0x12, 0x55, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x68,
|
||||
0x72, 0x6f, 0x6e, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53,
|
||||
0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x13,
|
||||
0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30,
|
||||
0x2e, 0x35, 0x34, 0x52, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x79, 0x12, 0x4f,
|
||||
0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x42, 0x13, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64,
|
||||
0x6b, 0x20, 0x30, 0x2e, 0x35, 0x34, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x3a,
|
||||
0x39, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a,
|
||||
@@ -1488,20 +1488,20 @@ var file_cosmos_consensus_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2
|
||||
var file_cosmos_consensus_v1_tx_proto_goTypes = []interface{}{
|
||||
(*MsgUpdateParams)(nil), // 0: cosmos.consensus.v1.MsgUpdateParams
|
||||
(*MsgUpdateParamsResponse)(nil), // 1: cosmos.consensus.v1.MsgUpdateParamsResponse
|
||||
(*v1.BlockParams)(nil), // 2: cometbft.types.v1.BlockParams
|
||||
(*v1.EvidenceParams)(nil), // 3: cometbft.types.v1.EvidenceParams
|
||||
(*v1.ValidatorParams)(nil), // 4: cometbft.types.v1.ValidatorParams
|
||||
(*v1.ABCIParams)(nil), // 5: cometbft.types.v1.ABCIParams
|
||||
(*v1.SynchronyParams)(nil), // 6: cometbft.types.v1.SynchronyParams
|
||||
(*v1.FeatureParams)(nil), // 7: cometbft.types.v1.FeatureParams
|
||||
(*v2.BlockParams)(nil), // 2: cometbft.types.v2.BlockParams
|
||||
(*v2.EvidenceParams)(nil), // 3: cometbft.types.v2.EvidenceParams
|
||||
(*v2.ValidatorParams)(nil), // 4: cometbft.types.v2.ValidatorParams
|
||||
(*v2.ABCIParams)(nil), // 5: cometbft.types.v2.ABCIParams
|
||||
(*v2.SynchronyParams)(nil), // 6: cometbft.types.v2.SynchronyParams
|
||||
(*v2.FeatureParams)(nil), // 7: cometbft.types.v2.FeatureParams
|
||||
}
|
||||
var file_cosmos_consensus_v1_tx_proto_depIdxs = []int32{
|
||||
2, // 0: cosmos.consensus.v1.MsgUpdateParams.block:type_name -> cometbft.types.v1.BlockParams
|
||||
3, // 1: cosmos.consensus.v1.MsgUpdateParams.evidence:type_name -> cometbft.types.v1.EvidenceParams
|
||||
4, // 2: cosmos.consensus.v1.MsgUpdateParams.validator:type_name -> cometbft.types.v1.ValidatorParams
|
||||
5, // 3: cosmos.consensus.v1.MsgUpdateParams.abci:type_name -> cometbft.types.v1.ABCIParams
|
||||
6, // 4: cosmos.consensus.v1.MsgUpdateParams.synchrony:type_name -> cometbft.types.v1.SynchronyParams
|
||||
7, // 5: cosmos.consensus.v1.MsgUpdateParams.feature:type_name -> cometbft.types.v1.FeatureParams
|
||||
2, // 0: cosmos.consensus.v1.MsgUpdateParams.block:type_name -> cometbft.types.v2.BlockParams
|
||||
3, // 1: cosmos.consensus.v1.MsgUpdateParams.evidence:type_name -> cometbft.types.v2.EvidenceParams
|
||||
4, // 2: cosmos.consensus.v1.MsgUpdateParams.validator:type_name -> cometbft.types.v2.ValidatorParams
|
||||
5, // 3: cosmos.consensus.v1.MsgUpdateParams.abci:type_name -> cometbft.types.v2.ABCIParams
|
||||
6, // 4: cosmos.consensus.v1.MsgUpdateParams.synchrony:type_name -> cometbft.types.v2.SynchronyParams
|
||||
7, // 5: cosmos.consensus.v1.MsgUpdateParams.feature:type_name -> cometbft.types.v2.FeatureParams
|
||||
0, // 6: cosmos.consensus.v1.Msg.UpdateParams:input_type -> cosmos.consensus.v1.MsgUpdateParams
|
||||
1, // 7: cosmos.consensus.v1.Msg.UpdateParams:output_type -> cosmos.consensus.v1.MsgUpdateParamsResponse
|
||||
7, // [7:8] is the sub-list for method output_type
|
||||
|
||||
@@ -3,8 +3,8 @@ package stakingv1beta1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v11 "cosmossdk.io/api/cometbft/abci/v1"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v21 "cosmossdk.io/api/cometbft/abci/v2"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
@@ -247,7 +247,7 @@ func (x *fastReflection_HistoricalInfo) Get(descriptor protoreflect.FieldDescrip
|
||||
func (x *fastReflection_HistoricalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.header":
|
||||
x.Header = value.Message().Interface().(*v1.Header)
|
||||
x.Header = value.Message().Interface().(*v2.Header)
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.valset":
|
||||
lv := value.List()
|
||||
clv := lv.(*_HistoricalInfo_2_list)
|
||||
@@ -274,7 +274,7 @@ func (x *fastReflection_HistoricalInfo) Mutable(fd protoreflect.FieldDescriptor)
|
||||
switch fd.FullName() {
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.header":
|
||||
if x.Header == nil {
|
||||
x.Header = new(v1.Header)
|
||||
x.Header = new(v2.Header)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.valset":
|
||||
@@ -297,7 +297,7 @@ func (x *fastReflection_HistoricalInfo) Mutable(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_HistoricalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.header":
|
||||
m := new(v1.Header)
|
||||
m := new(v2.Header)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.staking.v1beta1.HistoricalInfo.valset":
|
||||
list := []*Validator{}
|
||||
@@ -519,7 +519,7 @@ func (x *fastReflection_HistoricalInfo) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Header == nil {
|
||||
x.Header = &v1.Header{}
|
||||
x.Header = &v2.Header{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Header); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -12188,7 +12188,7 @@ func (x *fastReflection_Pool) ProtoMethods() *protoiface.Methods {
|
||||
var _ protoreflect.List = (*_ValidatorUpdates_1_list)(nil)
|
||||
|
||||
type _ValidatorUpdates_1_list struct {
|
||||
list *[]*v11.ValidatorUpdate
|
||||
list *[]*v21.ValidatorUpdate
|
||||
}
|
||||
|
||||
func (x *_ValidatorUpdates_1_list) Len() int {
|
||||
@@ -12204,18 +12204,18 @@ func (x *_ValidatorUpdates_1_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_ValidatorUpdates_1_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.ValidatorUpdate)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.ValidatorUpdate)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_ValidatorUpdates_1_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.ValidatorUpdate)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.ValidatorUpdate)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_ValidatorUpdates_1_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v11.ValidatorUpdate)
|
||||
v := new(v21.ValidatorUpdate)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -12228,7 +12228,7 @@ func (x *_ValidatorUpdates_1_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_ValidatorUpdates_1_list) NewElement() protoreflect.Value {
|
||||
v := new(v11.ValidatorUpdate)
|
||||
v := new(v21.ValidatorUpdate)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -12421,7 +12421,7 @@ func (x *fastReflection_ValidatorUpdates) Mutable(fd protoreflect.FieldDescripto
|
||||
switch fd.FullName() {
|
||||
case "cosmos.staking.v1beta1.ValidatorUpdates.updates":
|
||||
if x.Updates == nil {
|
||||
x.Updates = []*v11.ValidatorUpdate{}
|
||||
x.Updates = []*v21.ValidatorUpdate{}
|
||||
}
|
||||
value := &_ValidatorUpdates_1_list{list: &x.Updates}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -12439,7 +12439,7 @@ func (x *fastReflection_ValidatorUpdates) Mutable(fd protoreflect.FieldDescripto
|
||||
func (x *fastReflection_ValidatorUpdates) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.staking.v1beta1.ValidatorUpdates.updates":
|
||||
list := []*v11.ValidatorUpdate{}
|
||||
list := []*v21.ValidatorUpdate{}
|
||||
return protoreflect.ValueOfList(&_ValidatorUpdates_1_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -12639,7 +12639,7 @@ func (x *fastReflection_ValidatorUpdates) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Updates = append(x.Updates, &v11.ValidatorUpdate{})
|
||||
x.Updates = append(x.Updates, &v21.ValidatorUpdate{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Updates[len(x.Updates)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -12811,7 +12811,7 @@ type HistoricalInfo struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *v1.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Header *v2.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Valset []*Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset,omitempty"`
|
||||
}
|
||||
|
||||
@@ -12835,7 +12835,7 @@ func (*HistoricalInfo) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_staking_v1beta1_staking_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HistoricalInfo) GetHeader() *v1.Header {
|
||||
func (x *HistoricalInfo) GetHeader() *v2.Header {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
@@ -13998,7 +13998,7 @@ type ValidatorUpdates struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Updates []*v11.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
|
||||
Updates []*v21.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ValidatorUpdates) Reset() {
|
||||
@@ -14021,7 +14021,7 @@ func (*ValidatorUpdates) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_staking_v1beta1_staking_proto_rawDescGZIP(), []int{20}
|
||||
}
|
||||
|
||||
func (x *ValidatorUpdates) GetUpdates() []*v11.ValidatorUpdate {
|
||||
func (x *ValidatorUpdates) GetUpdates() []*v21.ValidatorUpdate {
|
||||
if x != nil {
|
||||
return x.Updates
|
||||
}
|
||||
@@ -14048,13 +14048,13 @@ var file_cosmos_staking_v1beta1_staking_proto_rawDesc = []byte{
|
||||
0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69,
|
||||
0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x1c, 0x63,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x2f,
|
||||
0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x0e,
|
||||
0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3c,
|
||||
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, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8,
|
||||
0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8,
|
||||
0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x06,
|
||||
0x76, 0x61, 0x6c, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
|
||||
@@ -14388,7 +14388,7 @@ var file_cosmos_staking_v1beta1_staking_proto_rawDesc = []byte{
|
||||
0x1f, 0x01, 0x22, 0x5a, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
|
||||
0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64,
|
||||
0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64,
|
||||
0x61, 0x74, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00,
|
||||
0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2a, 0xb6,
|
||||
0x01, 0x0a, 0x0a, 0x42, 0x6f, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x0a,
|
||||
@@ -14463,15 +14463,15 @@ var file_cosmos_staking_v1beta1_staking_proto_goTypes = []interface{}{
|
||||
(*RedelegationResponse)(nil), // 20: cosmos.staking.v1beta1.RedelegationResponse
|
||||
(*Pool)(nil), // 21: cosmos.staking.v1beta1.Pool
|
||||
(*ValidatorUpdates)(nil), // 22: cosmos.staking.v1beta1.ValidatorUpdates
|
||||
(*v1.Header)(nil), // 23: cometbft.types.v1.Header
|
||||
(*v2.Header)(nil), // 23: cometbft.types.v2.Header
|
||||
(*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp
|
||||
(*anypb.Any)(nil), // 25: google.protobuf.Any
|
||||
(*durationpb.Duration)(nil), // 26: google.protobuf.Duration
|
||||
(*v1beta1.Coin)(nil), // 27: cosmos.base.v1beta1.Coin
|
||||
(*v11.ValidatorUpdate)(nil), // 28: cometbft.abci.v1.ValidatorUpdate
|
||||
(*v21.ValidatorUpdate)(nil), // 28: cometbft.abci.v2.ValidatorUpdate
|
||||
}
|
||||
var file_cosmos_staking_v1beta1_staking_proto_depIdxs = []int32{
|
||||
23, // 0: cosmos.staking.v1beta1.HistoricalInfo.header:type_name -> cometbft.types.v1.Header
|
||||
23, // 0: cosmos.staking.v1beta1.HistoricalInfo.header:type_name -> cometbft.types.v2.Header
|
||||
6, // 1: cosmos.staking.v1beta1.HistoricalInfo.valset:type_name -> cosmos.staking.v1beta1.Validator
|
||||
3, // 2: cosmos.staking.v1beta1.Commission.commission_rates:type_name -> cosmos.staking.v1beta1.CommissionRates
|
||||
24, // 3: cosmos.staking.v1beta1.Commission.update_time:type_name -> google.protobuf.Timestamp
|
||||
@@ -14492,7 +14492,7 @@ var file_cosmos_staking_v1beta1_staking_proto_depIdxs = []int32{
|
||||
15, // 18: cosmos.staking.v1beta1.RedelegationEntryResponse.redelegation_entry:type_name -> cosmos.staking.v1beta1.RedelegationEntry
|
||||
16, // 19: cosmos.staking.v1beta1.RedelegationResponse.redelegation:type_name -> cosmos.staking.v1beta1.Redelegation
|
||||
19, // 20: cosmos.staking.v1beta1.RedelegationResponse.entries:type_name -> cosmos.staking.v1beta1.RedelegationEntryResponse
|
||||
28, // 21: cosmos.staking.v1beta1.ValidatorUpdates.updates:type_name -> cometbft.abci.v1.ValidatorUpdate
|
||||
28, // 21: cosmos.staking.v1beta1.ValidatorUpdates.updates:type_name -> cometbft.abci.v2.ValidatorUpdate
|
||||
22, // [22:22] is the sub-list for method output_type
|
||||
22, // [22:22] is the sub-list for method input_type
|
||||
22, // [22:22] is the sub-list for extension type_name
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package abci
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/abci/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/abci/v2"
|
||||
v1beta1 "cosmossdk.io/api/cosmos/store/v1beta1"
|
||||
fmt "fmt"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
@@ -186,9 +186,9 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Get(descriptor protoreflect.
|
||||
func (x *fastReflection_ListenFinalizeBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req":
|
||||
x.Req = value.Message().Interface().(*v1.FinalizeBlockRequest)
|
||||
x.Req = value.Message().Interface().(*v2.FinalizeBlockRequest)
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res":
|
||||
x.Res = value.Message().Interface().(*v1.FinalizeBlockResponse)
|
||||
x.Res = value.Message().Interface().(*v2.FinalizeBlockResponse)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.store.streaming.abci.ListenFinalizeBlockRequest"))
|
||||
@@ -211,12 +211,12 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Mutable(fd protoreflect.Fiel
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req":
|
||||
if x.Req == nil {
|
||||
x.Req = new(v1.FinalizeBlockRequest)
|
||||
x.Req = new(v2.FinalizeBlockRequest)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Req.ProtoReflect())
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res":
|
||||
if x.Res == nil {
|
||||
x.Res = new(v1.FinalizeBlockResponse)
|
||||
x.Res = new(v2.FinalizeBlockResponse)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Res.ProtoReflect())
|
||||
default:
|
||||
@@ -233,10 +233,10 @@ func (x *fastReflection_ListenFinalizeBlockRequest) Mutable(fd protoreflect.Fiel
|
||||
func (x *fastReflection_ListenFinalizeBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req":
|
||||
m := new(v1.FinalizeBlockRequest)
|
||||
m := new(v2.FinalizeBlockRequest)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res":
|
||||
m := new(v1.FinalizeBlockResponse)
|
||||
m := new(v2.FinalizeBlockResponse)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -451,7 +451,7 @@ func (x *fastReflection_ListenFinalizeBlockRequest) ProtoMethods() *protoiface.M
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Req == nil {
|
||||
x.Req = &v1.FinalizeBlockRequest{}
|
||||
x.Req = &v2.FinalizeBlockRequest{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Req); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -487,7 +487,7 @@ func (x *fastReflection_ListenFinalizeBlockRequest) ProtoMethods() *protoiface.M
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Res == nil {
|
||||
x.Res = &v1.FinalizeBlockResponse{}
|
||||
x.Res = &v2.FinalizeBlockResponse{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Res); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1127,7 +1127,7 @@ func (x *fastReflection_ListenCommitRequest) Set(fd protoreflect.FieldDescriptor
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.block_height":
|
||||
x.BlockHeight = value.Int()
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.res":
|
||||
x.Res = value.Message().Interface().(*v1.CommitResponse)
|
||||
x.Res = value.Message().Interface().(*v2.CommitResponse)
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.change_set":
|
||||
lv := value.List()
|
||||
clv := lv.(*_ListenCommitRequest_3_list)
|
||||
@@ -1154,7 +1154,7 @@ func (x *fastReflection_ListenCommitRequest) Mutable(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.res":
|
||||
if x.Res == nil {
|
||||
x.Res = new(v1.CommitResponse)
|
||||
x.Res = new(v2.CommitResponse)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Res.ProtoReflect())
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.change_set":
|
||||
@@ -1181,7 +1181,7 @@ func (x *fastReflection_ListenCommitRequest) NewField(fd protoreflect.FieldDescr
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.block_height":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.res":
|
||||
m := new(v1.CommitResponse)
|
||||
m := new(v2.CommitResponse)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.store.streaming.abci.ListenCommitRequest.change_set":
|
||||
list := []*v1beta1.StoreKVPair{}
|
||||
@@ -1430,7 +1430,7 @@ func (x *fastReflection_ListenCommitRequest) ProtoMethods() *protoiface.Methods
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Res == nil {
|
||||
x.Res = &v1.CommitResponse{}
|
||||
x.Res = &v2.CommitResponse{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Res); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1880,8 +1880,8 @@ type ListenFinalizeBlockRequest struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Req *v1.FinalizeBlockRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
|
||||
Res *v1.FinalizeBlockResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
|
||||
Req *v2.FinalizeBlockRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
|
||||
Res *v2.FinalizeBlockResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ListenFinalizeBlockRequest) Reset() {
|
||||
@@ -1904,14 +1904,14 @@ func (*ListenFinalizeBlockRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_store_streaming_abci_grpc_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *ListenFinalizeBlockRequest) GetReq() *v1.FinalizeBlockRequest {
|
||||
func (x *ListenFinalizeBlockRequest) GetReq() *v2.FinalizeBlockRequest {
|
||||
if x != nil {
|
||||
return x.Req
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListenFinalizeBlockRequest) GetRes() *v1.FinalizeBlockResponse {
|
||||
func (x *ListenFinalizeBlockRequest) GetRes() *v2.FinalizeBlockResponse {
|
||||
if x != nil {
|
||||
return x.Res
|
||||
}
|
||||
@@ -1953,7 +1953,7 @@ type ListenCommitRequest struct {
|
||||
|
||||
// explicitly pass in block height as ResponseCommit does not contain this info
|
||||
BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
|
||||
Res *v1.CommitResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
|
||||
Res *v2.CommitResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
|
||||
ChangeSet []*v1beta1.StoreKVPair `protobuf:"bytes,3,rep,name=change_set,json=changeSet,proto3" json:"change_set,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1984,7 +1984,7 @@ func (x *ListenCommitRequest) GetBlockHeight() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListenCommitRequest) GetRes() *v1.CommitResponse {
|
||||
func (x *ListenCommitRequest) GetRes() *v2.CommitResponse {
|
||||
if x != nil {
|
||||
return x.Res
|
||||
}
|
||||
@@ -2033,18 +2033,18 @@ var file_cosmos_store_streaming_abci_grpc_proto_rawDesc = []byte{
|
||||
0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||||
0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67,
|
||||
0x2e, 0x61, 0x62, 0x63, 0x69, 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,
|
||||
0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72,
|
||||
0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e,
|
||||
0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x1a, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x03, 0x72, 0x65, 0x71, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 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,
|
||||
0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a,
|
||||
0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x72,
|
||||
0x65, 0x71, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
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,
|
||||
0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x1d, 0x0a,
|
||||
0x1b, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a,
|
||||
@@ -2053,7 +2053,7 @@ var file_cosmos_store_streaming_abci_grpc_proto_rawDesc = []byte{
|
||||
0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 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,
|
||||
0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x72, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x0a, 0x63,
|
||||
0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x21, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
|
||||
@@ -2114,15 +2114,15 @@ var file_cosmos_store_streaming_abci_grpc_proto_goTypes = []interface{}{
|
||||
(*ListenFinalizeBlockResponse)(nil), // 1: cosmos.store.streaming.abci.ListenFinalizeBlockResponse
|
||||
(*ListenCommitRequest)(nil), // 2: cosmos.store.streaming.abci.ListenCommitRequest
|
||||
(*ListenCommitResponse)(nil), // 3: cosmos.store.streaming.abci.ListenCommitResponse
|
||||
(*v1.FinalizeBlockRequest)(nil), // 4: cometbft.abci.v1.FinalizeBlockRequest
|
||||
(*v1.FinalizeBlockResponse)(nil), // 5: cometbft.abci.v1.FinalizeBlockResponse
|
||||
(*v1.CommitResponse)(nil), // 6: cometbft.abci.v1.CommitResponse
|
||||
(*v2.FinalizeBlockRequest)(nil), // 4: cometbft.abci.v2.FinalizeBlockRequest
|
||||
(*v2.FinalizeBlockResponse)(nil), // 5: cometbft.abci.v2.FinalizeBlockResponse
|
||||
(*v2.CommitResponse)(nil), // 6: cometbft.abci.v2.CommitResponse
|
||||
(*v1beta1.StoreKVPair)(nil), // 7: cosmos.store.v1beta1.StoreKVPair
|
||||
}
|
||||
var file_cosmos_store_streaming_abci_grpc_proto_depIdxs = []int32{
|
||||
4, // 0: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req:type_name -> cometbft.abci.v1.FinalizeBlockRequest
|
||||
5, // 1: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res:type_name -> cometbft.abci.v1.FinalizeBlockResponse
|
||||
6, // 2: cosmos.store.streaming.abci.ListenCommitRequest.res:type_name -> cometbft.abci.v1.CommitResponse
|
||||
4, // 0: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.req:type_name -> cometbft.abci.v2.FinalizeBlockRequest
|
||||
5, // 1: cosmos.store.streaming.abci.ListenFinalizeBlockRequest.res:type_name -> cometbft.abci.v2.FinalizeBlockResponse
|
||||
6, // 2: cosmos.store.streaming.abci.ListenCommitRequest.res:type_name -> cometbft.abci.v2.CommitResponse
|
||||
7, // 3: cosmos.store.streaming.abci.ListenCommitRequest.change_set:type_name -> cosmos.store.v1beta1.StoreKVPair
|
||||
0, // 4: cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock:input_type -> cosmos.store.streaming.abci.ListenFinalizeBlockRequest
|
||||
2, // 5: cosmos.store.streaming.abci.ABCIListenerService.ListenCommit:input_type -> cosmos.store.streaming.abci.ListenCommitRequest
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package storev1beta1
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/abci/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/abci/v2"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
@@ -807,11 +807,11 @@ func (x *fastReflection_BlockMetadata) Get(descriptor protoreflect.FieldDescript
|
||||
func (x *fastReflection_BlockMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_commit":
|
||||
x.ResponseCommit = value.Message().Interface().(*v1.CommitResponse)
|
||||
x.ResponseCommit = value.Message().Interface().(*v2.CommitResponse)
|
||||
case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block":
|
||||
x.RequestFinalizeBlock = value.Message().Interface().(*v1.FinalizeBlockRequest)
|
||||
x.RequestFinalizeBlock = value.Message().Interface().(*v2.FinalizeBlockRequest)
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block":
|
||||
x.ResponseFinalizeBlock = value.Message().Interface().(*v1.FinalizeBlockResponse)
|
||||
x.ResponseFinalizeBlock = value.Message().Interface().(*v2.FinalizeBlockResponse)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.store.v1beta1.BlockMetadata"))
|
||||
@@ -834,17 +834,17 @@ func (x *fastReflection_BlockMetadata) Mutable(fd protoreflect.FieldDescriptor)
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_commit":
|
||||
if x.ResponseCommit == nil {
|
||||
x.ResponseCommit = new(v1.CommitResponse)
|
||||
x.ResponseCommit = new(v2.CommitResponse)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.ResponseCommit.ProtoReflect())
|
||||
case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block":
|
||||
if x.RequestFinalizeBlock == nil {
|
||||
x.RequestFinalizeBlock = new(v1.FinalizeBlockRequest)
|
||||
x.RequestFinalizeBlock = new(v2.FinalizeBlockRequest)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.RequestFinalizeBlock.ProtoReflect())
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block":
|
||||
if x.ResponseFinalizeBlock == nil {
|
||||
x.ResponseFinalizeBlock = new(v1.FinalizeBlockResponse)
|
||||
x.ResponseFinalizeBlock = new(v2.FinalizeBlockResponse)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.ResponseFinalizeBlock.ProtoReflect())
|
||||
default:
|
||||
@@ -861,13 +861,13 @@ func (x *fastReflection_BlockMetadata) Mutable(fd protoreflect.FieldDescriptor)
|
||||
func (x *fastReflection_BlockMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_commit":
|
||||
m := new(v1.CommitResponse)
|
||||
m := new(v2.CommitResponse)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.store.v1beta1.BlockMetadata.request_finalize_block":
|
||||
m := new(v1.FinalizeBlockRequest)
|
||||
m := new(v2.FinalizeBlockRequest)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.store.v1beta1.BlockMetadata.response_finalize_block":
|
||||
m := new(v1.FinalizeBlockResponse)
|
||||
m := new(v2.FinalizeBlockResponse)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -1100,7 +1100,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.ResponseCommit == nil {
|
||||
x.ResponseCommit = &v1.CommitResponse{}
|
||||
x.ResponseCommit = &v2.CommitResponse{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ResponseCommit); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1136,7 +1136,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.RequestFinalizeBlock == nil {
|
||||
x.RequestFinalizeBlock = &v1.FinalizeBlockRequest{}
|
||||
x.RequestFinalizeBlock = &v2.FinalizeBlockRequest{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestFinalizeBlock); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1172,7 +1172,7 @@ func (x *fastReflection_BlockMetadata) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.ResponseFinalizeBlock == nil {
|
||||
x.ResponseFinalizeBlock = &v1.FinalizeBlockResponse{}
|
||||
x.ResponseFinalizeBlock = &v2.FinalizeBlockResponse{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ResponseFinalizeBlock); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1295,9 +1295,9 @@ type BlockMetadata struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ResponseCommit *v1.CommitResponse `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"`
|
||||
RequestFinalizeBlock *v1.FinalizeBlockRequest `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"`
|
||||
ResponseFinalizeBlock *v1.FinalizeBlockResponse `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` // TODO: should we renumber this?
|
||||
ResponseCommit *v2.CommitResponse `protobuf:"bytes,6,opt,name=response_commit,json=responseCommit,proto3" json:"response_commit,omitempty"`
|
||||
RequestFinalizeBlock *v2.FinalizeBlockRequest `protobuf:"bytes,7,opt,name=request_finalize_block,json=requestFinalizeBlock,proto3" json:"request_finalize_block,omitempty"`
|
||||
ResponseFinalizeBlock *v2.FinalizeBlockResponse `protobuf:"bytes,8,opt,name=response_finalize_block,json=responseFinalizeBlock,proto3" json:"response_finalize_block,omitempty"` // TODO: should we renumber this?
|
||||
}
|
||||
|
||||
func (x *BlockMetadata) Reset() {
|
||||
@@ -1320,21 +1320,21 @@ func (*BlockMetadata) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_store_v1beta1_listening_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *BlockMetadata) GetResponseCommit() *v1.CommitResponse {
|
||||
func (x *BlockMetadata) GetResponseCommit() *v2.CommitResponse {
|
||||
if x != nil {
|
||||
return x.ResponseCommit
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *BlockMetadata) GetRequestFinalizeBlock() *v1.FinalizeBlockRequest {
|
||||
func (x *BlockMetadata) GetRequestFinalizeBlock() *v2.FinalizeBlockRequest {
|
||||
if x != nil {
|
||||
return x.RequestFinalizeBlock
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *BlockMetadata) GetResponseFinalizeBlock() *v1.FinalizeBlockResponse {
|
||||
func (x *BlockMetadata) GetResponseFinalizeBlock() *v2.FinalizeBlockResponse {
|
||||
if x != nil {
|
||||
return x.ResponseFinalizeBlock
|
||||
}
|
||||
@@ -1348,7 +1348,7 @@ var file_cosmos_store_v1beta1_listening_proto_rawDesc = []byte{
|
||||
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
|
||||
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74,
|
||||
0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x56,
|
||||
@@ -1363,18 +1363,18 @@ var file_cosmos_store_v1beta1_listening_proto_rawDesc = []byte{
|
||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x49, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 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,
|
||||
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d,
|
||||
0x6d, 0x69, 0x74, 0x12, 0x5c, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x66,
|
||||
0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x07, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 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,
|
||||
0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x14, 0x72, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x12, 0x5f, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x66, 0x69,
|
||||
0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 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,
|
||||
0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x15, 0x72, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04,
|
||||
@@ -1411,14 +1411,14 @@ var file_cosmos_store_v1beta1_listening_proto_msgTypes = make([]protoimpl.Messag
|
||||
var file_cosmos_store_v1beta1_listening_proto_goTypes = []interface{}{
|
||||
(*StoreKVPair)(nil), // 0: cosmos.store.v1beta1.StoreKVPair
|
||||
(*BlockMetadata)(nil), // 1: cosmos.store.v1beta1.BlockMetadata
|
||||
(*v1.CommitResponse)(nil), // 2: cometbft.abci.v1.CommitResponse
|
||||
(*v1.FinalizeBlockRequest)(nil), // 3: cometbft.abci.v1.FinalizeBlockRequest
|
||||
(*v1.FinalizeBlockResponse)(nil), // 4: cometbft.abci.v1.FinalizeBlockResponse
|
||||
(*v2.CommitResponse)(nil), // 2: cometbft.abci.v2.CommitResponse
|
||||
(*v2.FinalizeBlockRequest)(nil), // 3: cometbft.abci.v2.FinalizeBlockRequest
|
||||
(*v2.FinalizeBlockResponse)(nil), // 4: cometbft.abci.v2.FinalizeBlockResponse
|
||||
}
|
||||
var file_cosmos_store_v1beta1_listening_proto_depIdxs = []int32{
|
||||
2, // 0: cosmos.store.v1beta1.BlockMetadata.response_commit:type_name -> cometbft.abci.v1.CommitResponse
|
||||
3, // 1: cosmos.store.v1beta1.BlockMetadata.request_finalize_block:type_name -> cometbft.abci.v1.FinalizeBlockRequest
|
||||
4, // 2: cosmos.store.v1beta1.BlockMetadata.response_finalize_block:type_name -> cometbft.abci.v1.FinalizeBlockResponse
|
||||
2, // 0: cosmos.store.v1beta1.BlockMetadata.response_commit:type_name -> cometbft.abci.v2.CommitResponse
|
||||
3, // 1: cosmos.store.v1beta1.BlockMetadata.request_finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockRequest
|
||||
4, // 2: cosmos.store.v1beta1.BlockMetadata.response_finalize_block:type_name -> cometbft.abci.v2.FinalizeBlockResponse
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package txv1beta1
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1beta11 "cosmossdk.io/api/cosmos/base/abci/v1beta1"
|
||||
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
|
||||
fmt "fmt"
|
||||
@@ -5140,9 +5140,9 @@ func (x *fastReflection_GetBlockWithTxsResponse) Set(fd protoreflect.FieldDescri
|
||||
clv := lv.(*_GetBlockWithTxsResponse_1_list)
|
||||
x.Txs = *clv.list
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id":
|
||||
x.BlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.BlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block":
|
||||
x.Block = value.Message().Interface().(*v1.Block)
|
||||
x.Block = value.Message().Interface().(*v2.Block)
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination":
|
||||
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||||
default:
|
||||
@@ -5173,12 +5173,12 @@ func (x *fastReflection_GetBlockWithTxsResponse) Mutable(fd protoreflect.FieldDe
|
||||
return protoreflect.ValueOfList(value)
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id":
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = new(v1.BlockID)
|
||||
x.BlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect())
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.Block)
|
||||
x.Block = new(v2.Block)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination":
|
||||
@@ -5203,10 +5203,10 @@ func (x *fastReflection_GetBlockWithTxsResponse) NewField(fd protoreflect.FieldD
|
||||
list := []*Tx{}
|
||||
return protoreflect.ValueOfList(&_GetBlockWithTxsResponse_1_list{list: &list})
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.block":
|
||||
m := new(v1.Block)
|
||||
m := new(v2.Block)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination":
|
||||
m := new(v1beta1.PageResponse)
|
||||
@@ -5498,7 +5498,7 @@ func (x *fastReflection_GetBlockWithTxsResponse) ProtoMethods() *protoiface.Meth
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = &v1.BlockID{}
|
||||
x.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -5534,7 +5534,7 @@ func (x *fastReflection_GetBlockWithTxsResponse) ProtoMethods() *protoiface.Meth
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.Block{}
|
||||
x.Block = &v2.Block{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -9624,8 +9624,8 @@ type GetBlockWithTxsResponse struct {
|
||||
|
||||
// txs are the transactions in the block.
|
||||
Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
|
||||
BlockId *v1.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
Block *v1.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
|
||||
// pagination defines a pagination for the response.
|
||||
Pagination *v1beta1.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
@@ -9657,14 +9657,14 @@ func (x *GetBlockWithTxsResponse) GetTxs() []*Tx {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetBlockWithTxsResponse) GetBlockId() *v1.BlockID {
|
||||
func (x *GetBlockWithTxsResponse) GetBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetBlockWithTxsResponse) GetBlock() *v1.Block {
|
||||
func (x *GetBlockWithTxsResponse) GetBlock() *v2.Block {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
@@ -9994,9 +9994,9 @@ var file_cosmos_tx_v1beta1_service_proto_rawDesc = []byte{
|
||||
0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70,
|
||||
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
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, 0x1a, 0x1d,
|
||||
0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x19, 0x63,
|
||||
0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
|
||||
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74,
|
||||
0x54, 0x78, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||
@@ -10083,11 +10083,11 @@ var file_cosmos_tx_v1beta1_service_proto_rawDesc = []byte{
|
||||
0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x2e, 0x54, 0x78, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
|
||||
0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32,
|
||||
0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49,
|
||||
0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65,
|
||||
0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62,
|
||||
0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
@@ -10282,8 +10282,8 @@ var file_cosmos_tx_v1beta1_service_proto_goTypes = []interface{}{
|
||||
(*v1beta1.PageResponse)(nil), // 23: cosmos.base.query.v1beta1.PageResponse
|
||||
(*v1beta11.GasInfo)(nil), // 24: cosmos.base.abci.v1beta1.GasInfo
|
||||
(*v1beta11.Result)(nil), // 25: cosmos.base.abci.v1beta1.Result
|
||||
(*v1.BlockID)(nil), // 26: cometbft.types.v1.BlockID
|
||||
(*v1.Block)(nil), // 27: cometbft.types.v1.Block
|
||||
(*v2.BlockID)(nil), // 26: cometbft.types.v2.BlockID
|
||||
(*v2.Block)(nil), // 27: cometbft.types.v2.Block
|
||||
}
|
||||
var file_cosmos_tx_v1beta1_service_proto_depIdxs = []int32{
|
||||
20, // 0: cosmos.tx.v1beta1.GetTxsEventRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||||
@@ -10300,8 +10300,8 @@ var file_cosmos_tx_v1beta1_service_proto_depIdxs = []int32{
|
||||
22, // 11: cosmos.tx.v1beta1.GetTxResponse.tx_response:type_name -> cosmos.base.abci.v1beta1.TxResponse
|
||||
20, // 12: cosmos.tx.v1beta1.GetBlockWithTxsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||||
21, // 13: cosmos.tx.v1beta1.GetBlockWithTxsResponse.txs:type_name -> cosmos.tx.v1beta1.Tx
|
||||
26, // 14: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id:type_name -> cometbft.types.v1.BlockID
|
||||
27, // 15: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block:type_name -> cometbft.types.v1.Block
|
||||
26, // 14: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block_id:type_name -> cometbft.types.v2.BlockID
|
||||
27, // 15: cosmos.tx.v1beta1.GetBlockWithTxsResponse.block:type_name -> cometbft.types.v2.Block
|
||||
23, // 16: cosmos.tx.v1beta1.GetBlockWithTxsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||||
21, // 17: cosmos.tx.v1beta1.TxDecodeResponse.tx:type_name -> cosmos.tx.v1beta1.Tx
|
||||
21, // 18: cosmos.tx.v1beta1.TxEncodeRequest.tx:type_name -> cosmos.tx.v1beta1.Tx
|
||||
|
||||
+9
-8
@@ -8,8 +8,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
"google.golang.org/grpc/codes"
|
||||
grpcstatus "google.golang.org/grpc/status"
|
||||
@@ -286,7 +286,7 @@ func (app *BaseApp) OfferSnapshot(req *abci.OfferSnapshotRequest) (*abci.OfferSn
|
||||
return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_REJECT}, nil
|
||||
|
||||
default:
|
||||
// CometBFT errors are defined here: https://github.com/cometbft/cometbft/blob/main/statesync/syncer.go
|
||||
// CometBFT errors are defined here: https://github.com/cometbft/cometbft/v2/blob/main/statesync/syncer.go
|
||||
// It may happen that in case of a CometBFT error, such as a timeout (which occurs after two minutes),
|
||||
// the process is aborted. This is done intentionally because deleting the database programmatically
|
||||
// can lead to more complicated situations.
|
||||
@@ -389,7 +389,7 @@ func (app *BaseApp) CheckTx(req *abci.CheckTxRequest) (*abci.CheckTxResponse, er
|
||||
// provided by the client's request.
|
||||
//
|
||||
// Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
||||
// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||
// Ref: https://github.com/cometbft/cometbft/v2/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||
func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abci.PrepareProposalResponse, err error) {
|
||||
if app.abciHandlers.PrepareProposalHandler == nil {
|
||||
return nil, errors.New("PrepareProposal handler not set")
|
||||
@@ -409,7 +409,7 @@ func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abc
|
||||
|
||||
// CometBFT must never call PrepareProposal with a height of 0.
|
||||
//
|
||||
// Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||
// Ref: https://github.com/cometbft/cometbft/v2/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||
if req.Height < 1 {
|
||||
return nil, errors.New("PrepareProposal called with invalid height")
|
||||
}
|
||||
@@ -468,14 +468,14 @@ func (app *BaseApp) PrepareProposal(req *abci.PrepareProposalRequest) (resp *abc
|
||||
// handler, it will be recovered and we will reject the proposal.
|
||||
//
|
||||
// Ref: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-060-abci-1.0.md
|
||||
// Ref: https://github.com/cometbft/cometbft/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||
// Ref: https://github.com/cometbft/cometbft/v2/blob/main/spec/abci/abci%2B%2B_basic_concepts.md
|
||||
func (app *BaseApp) ProcessProposal(req *abci.ProcessProposalRequest) (resp *abci.ProcessProposalResponse, err error) {
|
||||
if app.abciHandlers.ProcessProposalHandler == nil {
|
||||
return nil, errors.New("ProcessProposal handler not set")
|
||||
}
|
||||
|
||||
// CometBFT must never call ProcessProposal with a height of 0.
|
||||
// Ref: https://github.com/cometbft/cometbft/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||
// Ref: https://github.com/cometbft/cometbft/v2/blob/059798a4f5b0c9f52aa8655fa619054a0154088c/spec/core/state.md?plain=1#L37-L38
|
||||
if req.Height < 1 {
|
||||
return nil, errors.New("ProcessProposal called with invalid height")
|
||||
}
|
||||
@@ -868,6 +868,7 @@ func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.Finaliz
|
||||
TxResults: txResults,
|
||||
ValidatorUpdates: endBlock.ValidatorUpdates,
|
||||
ConsensusParamUpdates: &cp,
|
||||
NextBlockDelay: app.nextBlockDelay,
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -876,7 +877,7 @@ func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.Finaliz
|
||||
// by the transactions in the proposal, finally followed by the application's
|
||||
// EndBlock (if defined).
|
||||
//
|
||||
// For each raw transaction, i.e. a byte slice, BaseApp will only execute it if
|
||||
// For each raw transaction, i.e., a byte slice, BaseApp will only execute it if
|
||||
// it adheres to the sdk.Tx interface. Otherwise, the raw transaction will be
|
||||
// skipped. This is to support compatibility with proposers injecting vote
|
||||
// extensions into the proposal, which should not themselves be executed in cases
|
||||
|
||||
@@ -15,10 +15,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
"github.com/cometbft/cometbft/crypto/secp256k1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/cometbft/cometbft/v2/crypto/secp256k1"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
protoio "github.com/cosmos/gogoproto/io"
|
||||
"github.com/cosmos/gogoproto/jsonpb"
|
||||
|
||||
@@ -7,11 +7,11 @@ import (
|
||||
"slices"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
cryptoenc "github.com/cometbft/cometbft/v2/crypto/encoding"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
protoio "github.com/cosmos/gogoproto/io"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
|
||||
@@ -156,7 +156,7 @@ func ValidateVoteExtensions(
|
||||
// validateExtendedCommitAgainstLastCommit validates an ExtendedCommitInfo against a LastCommit. Specifically,
|
||||
// it checks that the ExtendedCommit + LastCommit (for the same height), are consistent with each other + that
|
||||
// they are ordered correctly (by voting power) in accordance with
|
||||
// [comet](https://github.com/cometbft/cometbft/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784).
|
||||
// [comet](https://github.com/cometbft/cometbft/v2/blob/4ce0277b35f31985bbf2c25d3806a184a4510010/types/validator_set.go#L784).
|
||||
func validateExtendedCommitAgainstLastCommit(ec abci.ExtendedCommitInfo, lc comet.CommitInfo) error {
|
||||
// check that the rounds are the same
|
||||
if ec.Round != lc.Round() {
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
cmtsecp256k1 "github.com/cometbft/cometbft/v2/crypto/secp256k1"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
protoio "github.com/cosmos/gogoproto/io"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
|
||||
+14
-4
@@ -8,11 +8,12 @@ import (
|
||||
"slices"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/cometbft/cometbft/v2/crypto/tmhash"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
protov2 "google.golang.org/protobuf/proto"
|
||||
@@ -55,6 +56,10 @@ const (
|
||||
execModeVoteExtension = sdk.ExecModeVoteExtension // Extend or verify a pre-commit vote
|
||||
execModeVerifyVoteExtension = sdk.ExecModeVerifyVoteExtension // Verify a vote extension
|
||||
execModeFinalize = sdk.ExecModeFinalize // Finalize a block proposal
|
||||
|
||||
// defaultNextBlockDelay is chosen following documentation in CometBFT:
|
||||
// https://github.com/cometbft/cometbft/blob/88ef3d267de491db98a654be0af6d791e8724ed0/spec/abci/abci%2B%2B_methods.md?plain=1#L689
|
||||
defaultNextBlockDelay = time.Second
|
||||
)
|
||||
|
||||
var _ servertypes.ABCI = (*BaseApp)(nil)
|
||||
@@ -108,6 +113,10 @@ type BaseApp struct {
|
||||
// flag for sealing options and parameters to a BaseApp
|
||||
sealed bool
|
||||
|
||||
// nextBlockDelay is the delay to wait until the next block after ABCI has committed.
|
||||
// This gives the application more time to receive precommits.
|
||||
nextBlockDelay time.Duration
|
||||
|
||||
// block height at which to halt the chain and gracefully shutdown
|
||||
haltHeight uint64
|
||||
|
||||
@@ -173,7 +182,7 @@ func NewBaseApp(
|
||||
logger: logger.With(log.ModuleKey, "baseapp"),
|
||||
name: name,
|
||||
db: db,
|
||||
cms: store.NewCommitMultiStore(db, logger, storemetrics.NewNoOpMetrics()), // by default we use a no-op metric gather in store
|
||||
cms: store.NewCommitMultiStore(db, logger, storemetrics.NewNoOpMetrics()), // by default, we use a no-op metric gather in store
|
||||
storeLoader: DefaultStoreLoader,
|
||||
grpcQueryRouter: NewGRPCQueryRouter(),
|
||||
msgServiceRouter: NewMsgServiceRouter(),
|
||||
@@ -181,6 +190,7 @@ func NewBaseApp(
|
||||
fauxMerkleMode: false,
|
||||
sigverifyTx: true,
|
||||
gasConfig: config.GasConfig{QueryGasLimit: math.MaxUint64},
|
||||
nextBlockDelay: defaultNextBlockDelay,
|
||||
}
|
||||
|
||||
for _, option := range options {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtjson "github.com/cometbft/cometbft/libs/json"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
cmtjson "github.com/cometbft/cometbft/v2/libs/json"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package baseapp
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/cometbft/cometbft/abci/types"
|
||||
"github.com/cometbft/cometbft/v2/abci/types"
|
||||
|
||||
"cosmossdk.io/core/genesis"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/encoding"
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
gocontext "context"
|
||||
"fmt"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package baseapp
|
||||
import (
|
||||
"time"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
|
||||
"cosmossdk.io/core/comet"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
|
||||
"cosmossdk.io/log"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"cosmossdk.io/log"
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"time"
|
||||
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
|
||||
@@ -333,6 +334,20 @@ func (app *BaseApp) SetMempool(mempool mempool.Mempool) {
|
||||
app.mempool = mempool
|
||||
}
|
||||
|
||||
// SetNextBlockDelay sets the next block delay for the baseapp.
|
||||
//
|
||||
// The application is initialized with a default value of 1s.
|
||||
//
|
||||
// More information on this value and how it affects CometBFT can be found here:
|
||||
// https://github.com/cometbft/cometbft/blob/88ef3d267de491db98a654be0af6d791e8724ed0/spec/abci/abci%2B%2B_methods.md?plain=1#L689
|
||||
func (app *BaseApp) SetNextBlockDelay(delay time.Duration) {
|
||||
if app.sealed {
|
||||
panic("SetNextBlockDelay() on sealed BaseApp")
|
||||
}
|
||||
|
||||
app.nextBlockDelay = delay
|
||||
}
|
||||
|
||||
// SetProcessProposal sets the process proposal function for the BaseApp.
|
||||
func (app *BaseApp) SetProcessProposal(handler sdk.ProcessProposalHandler) {
|
||||
if app.sealed {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package baseapp
|
||||
import (
|
||||
"context"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
)
|
||||
|
||||
// ParamStore defines the interface the parameter store used by the BaseApp must
|
||||
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
pruningtypes "cosmossdk.io/store/pruning/types"
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
|
||||
"cosmossdk.io/core/header"
|
||||
"cosmossdk.io/log"
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
tmproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
tmproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
storetypes "cosmossdk.io/store/types"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package baseapp
|
||||
|
||||
import (
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
"testing"
|
||||
"unsafe"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/cometbft/cometbft/mempool"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
"github.com/cometbft/cometbft/v2/mempool"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
||||
"github.com/cometbft/cometbft/mempool"
|
||||
"github.com/cometbft/cometbft/v2/crypto/tmhash"
|
||||
"github.com/cometbft/cometbft/v2/mempool"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ package client
|
||||
import (
|
||||
"context"
|
||||
|
||||
rpcclient "github.com/cometbft/cometbft/rpc/client"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
rpcclient "github.com/cometbft/cometbft/v2/rpc/client"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
)
|
||||
|
||||
// CometRPC defines the interface of a CometBFT RPC client needed for
|
||||
|
||||
@@ -3,8 +3,8 @@ package cmtservice
|
||||
import (
|
||||
"context"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
)
|
||||
|
||||
+110
-109
@@ -6,8 +6,8 @@ package cmtservice
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
v11 "github.com/cometbft/cometbft/api/cometbft/p2p/v1"
|
||||
v1 "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
v1 "github.com/cometbft/cometbft/api/cometbft/p2p/v1"
|
||||
v2 "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
query "github.com/cosmos/cosmos-sdk/types/query"
|
||||
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
||||
@@ -375,9 +375,9 @@ func (m *GetBlockByHeightRequest) GetHeight() int64 {
|
||||
|
||||
// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
|
||||
type GetBlockByHeightResponse struct {
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -414,14 +414,14 @@ func (m *GetBlockByHeightResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_GetBlockByHeightResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetBlockByHeightResponse) GetBlockId() *v1.BlockID {
|
||||
func (m *GetBlockByHeightResponse) GetBlockId() *v2.BlockID {
|
||||
if m != nil {
|
||||
return m.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetBlockByHeightResponse) GetBlock() *v1.Block {
|
||||
func (m *GetBlockByHeightResponse) GetBlock() *v2.Block {
|
||||
if m != nil {
|
||||
return m.Block
|
||||
}
|
||||
@@ -474,9 +474,9 @@ var xxx_messageInfo_GetLatestBlockRequest proto.InternalMessageInfo
|
||||
|
||||
// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
|
||||
type GetLatestBlockResponse struct {
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -513,14 +513,14 @@ func (m *GetLatestBlockResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_GetLatestBlockResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetLatestBlockResponse) GetBlockId() *v1.BlockID {
|
||||
func (m *GetLatestBlockResponse) GetBlockId() *v2.BlockID {
|
||||
if m != nil {
|
||||
return m.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetLatestBlockResponse) GetBlock() *v1.Block {
|
||||
func (m *GetLatestBlockResponse) GetBlock() *v2.Block {
|
||||
if m != nil {
|
||||
return m.Block
|
||||
}
|
||||
@@ -655,8 +655,8 @@ var xxx_messageInfo_GetNodeInfoRequest proto.InternalMessageInfo
|
||||
|
||||
// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
|
||||
type GetNodeInfoResponse struct {
|
||||
DefaultNodeInfo *v11.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
DefaultNodeInfo *v1.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
}
|
||||
|
||||
func (m *GetNodeInfoResponse) Reset() { *m = GetNodeInfoResponse{} }
|
||||
@@ -692,7 +692,7 @@ func (m *GetNodeInfoResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_GetNodeInfoResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *v11.DefaultNodeInfo {
|
||||
func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *v1.DefaultNodeInfo {
|
||||
if m != nil {
|
||||
return m.DefaultNodeInfo
|
||||
}
|
||||
@@ -1191,97 +1191,98 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_40c93fb3ef485c5d = []byte{
|
||||
// 1437 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x4d, 0x6f, 0x1b, 0xc5,
|
||||
0x1b, 0xcf, 0xda, 0x69, 0x6c, 0x3f, 0xe9, 0xff, 0xdf, 0x64, 0x12, 0x5a, 0xd7, 0xb4, 0x6e, 0xb0,
|
||||
0x44, 0x9b, 0xb6, 0x64, 0xb7, 0x76, 0xda, 0xb4, 0x87, 0x52, 0x94, 0x34, 0x25, 0x0d, 0xb4, 0x25,
|
||||
0x6c, 0x10, 0x48, 0x08, 0x69, 0xb5, 0xf6, 0x8e, 0x37, 0xab, 0xd8, 0x3b, 0xd3, 0x9d, 0xb1, 0xc1,
|
||||
0x42, 0x48, 0x88, 0x0f, 0x80, 0x90, 0xf8, 0x0a, 0x1c, 0xe0, 0xc6, 0xa1, 0x82, 0x13, 0x95, 0xe0,
|
||||
0x54, 0x71, 0xaa, 0x8a, 0x84, 0xaa, 0x1e, 0x10, 0x6a, 0x91, 0xf8, 0x1a, 0x68, 0x5e, 0xd6, 0xde,
|
||||
0xcd, 0x4b, 0xed, 0xf4, 0x06, 0x17, 0x6b, 0xf6, 0x79, 0xfd, 0xfd, 0x9e, 0x67, 0xe6, 0x99, 0x31,
|
||||
0x9c, 0x6b, 0x10, 0xd6, 0x26, 0xcc, 0xaa, 0xbb, 0x0c, 0x5b, 0x1c, 0x87, 0x1e, 0x8e, 0xda, 0x41,
|
||||
0xc8, 0xad, 0x6e, 0xb5, 0x8e, 0xb9, 0x5b, 0xb5, 0xee, 0x76, 0x70, 0xd4, 0x33, 0x69, 0x44, 0x38,
|
||||
0x41, 0x65, 0x65, 0x6b, 0x0a, 0x5b, 0x73, 0x60, 0x6b, 0x6a, 0xdb, 0xd2, 0xac, 0x4f, 0x7c, 0x22,
|
||||
0x4d, 0x2d, 0xb1, 0x52, 0x5e, 0xa5, 0xe3, 0x3e, 0x21, 0x7e, 0x0b, 0x5b, 0xf2, 0xab, 0xde, 0x69,
|
||||
0x5a, 0x6e, 0xa8, 0x03, 0x96, 0x4e, 0x68, 0x95, 0x4b, 0x03, 0xcb, 0x0d, 0x43, 0xc2, 0x5d, 0x1e,
|
||||
0x90, 0x90, 0x69, 0xed, 0xcb, 0x0d, 0xd2, 0xc6, 0xbc, 0xde, 0xe4, 0x16, 0xad, 0x51, 0xab, 0x5b,
|
||||
0xb5, 0x78, 0x8f, 0xe2, 0x58, 0x79, 0xb2, 0xaf, 0x94, 0xd2, 0x9d, 0xea, 0x14, 0x2d, 0xc9, 0xa1,
|
||||
0xcf, 0x88, 0xba, 0x7e, 0x10, 0xca, 0x44, 0x7b, 0xd9, 0xee, 0x51, 0x82, 0x64, 0xdc, 0xe3, 0xca,
|
||||
0xd6, 0x51, 0x2c, 0x75, 0x3d, 0xf6, 0x45, 0x54, 0x6f, 0x91, 0xc6, 0xb6, 0x56, 0x4f, 0xbb, 0xed,
|
||||
0x20, 0x24, 0x96, 0xfc, 0x55, 0xa2, 0xca, 0xe7, 0x06, 0x94, 0xd7, 0x30, 0x7f, 0xdf, 0x6d, 0x05,
|
||||
0x9e, 0xcb, 0x49, 0xb4, 0x89, 0xf9, 0x4a, 0xef, 0x26, 0x0e, 0xfc, 0x2d, 0x6e, 0xe3, 0xbb, 0x1d,
|
||||
0xcc, 0x38, 0x3a, 0x0a, 0x13, 0x5b, 0x52, 0x50, 0x34, 0xe6, 0x8c, 0xf9, 0xac, 0xad, 0xbf, 0xd0,
|
||||
0x9b, 0x00, 0x03, 0x1e, 0xc5, 0xcc, 0x9c, 0x31, 0x3f, 0x59, 0x3b, 0x6d, 0x26, 0xfb, 0xa3, 0x1a,
|
||||
0xa7, 0x39, 0x98, 0x1b, 0xae, 0x8f, 0x75, 0x4c, 0x3b, 0xe1, 0x59, 0x79, 0x6c, 0xc0, 0xa9, 0x7d,
|
||||
0x21, 0x30, 0x4a, 0x42, 0x86, 0xd1, 0x2b, 0x70, 0x58, 0x12, 0x71, 0x52, 0x48, 0x26, 0xa5, 0x4c,
|
||||
0x99, 0xa2, 0x75, 0x80, 0x6e, 0x1c, 0x82, 0x15, 0x33, 0x73, 0xd9, 0xf9, 0xc9, 0xda, 0x59, 0xf3,
|
||||
0xf9, 0xdb, 0xc5, 0xec, 0x27, 0xb5, 0x13, 0xce, 0x68, 0x2d, 0xc5, 0x2c, 0x2b, 0x99, 0x9d, 0x19,
|
||||
0xca, 0x4c, 0x41, 0x4d, 0x51, 0x6b, 0xc2, 0x89, 0x35, 0xcc, 0x6f, 0xb9, 0x1c, 0xb3, 0x14, 0xbf,
|
||||
0xb8, 0xb4, 0xe9, 0x12, 0x1a, 0x2f, 0x5c, 0xc2, 0xdf, 0x0d, 0x38, 0xb9, 0x4f, 0xa2, 0x7f, 0x77,
|
||||
0x01, 0xef, 0x1b, 0x50, 0xe8, 0xa7, 0x40, 0x35, 0xc8, 0xb9, 0x9e, 0x17, 0x61, 0xc6, 0x24, 0xfe,
|
||||
0xc2, 0x4a, 0xf1, 0xd1, 0xbd, 0x85, 0x59, 0x1d, 0x76, 0x59, 0x69, 0x36, 0x79, 0x14, 0x84, 0xbe,
|
||||
0x1d, 0x1b, 0xa2, 0x05, 0xc8, 0xd1, 0x4e, 0xdd, 0xd9, 0xc6, 0x3d, 0xbd, 0x45, 0x67, 0x4d, 0x75,
|
||||
0xe2, 0xcd, 0x78, 0x18, 0x98, 0xcb, 0x61, 0xcf, 0x9e, 0xa0, 0x9d, 0xfa, 0xdb, 0xb8, 0x27, 0xea,
|
||||
0xd4, 0x25, 0x3c, 0x08, 0x7d, 0x87, 0x92, 0x8f, 0x71, 0x24, 0xb1, 0x67, 0xed, 0x49, 0x25, 0xdb,
|
||||
0x10, 0x22, 0x74, 0x1e, 0xa6, 0x69, 0x44, 0x28, 0x61, 0x38, 0x72, 0x68, 0x14, 0x90, 0x28, 0xe0,
|
||||
0xbd, 0xe2, 0xb8, 0xb4, 0x9b, 0x8a, 0x15, 0x1b, 0x5a, 0x5e, 0xa9, 0xc2, 0xb1, 0x35, 0xcc, 0x57,
|
||||
0x44, 0x99, 0x47, 0x3c, 0x57, 0x95, 0x27, 0x06, 0x14, 0x77, 0xfb, 0xe8, 0x3e, 0x5e, 0x82, 0xbc,
|
||||
0xea, 0x63, 0xe0, 0xe9, 0xfd, 0x52, 0x32, 0xe3, 0x43, 0x6f, 0xaa, 0x29, 0xd1, 0xad, 0x9a, 0xd2,
|
||||
0x77, 0x7d, 0xd5, 0xce, 0x49, 0xdb, 0x75, 0x0f, 0x99, 0x70, 0x48, 0x2e, 0x75, 0x0d, 0x8a, 0xfb,
|
||||
0xf9, 0xd8, 0xca, 0x0c, 0x7d, 0x00, 0x05, 0xe6, 0x6d, 0x3b, 0xca, 0x47, 0xf5, 0xef, 0xd5, 0x61,
|
||||
0x5b, 0x41, 0x01, 0x9e, 0x79, 0x72, 0x6f, 0xe1, 0x88, 0xb2, 0x5c, 0x60, 0xde, 0xf6, 0xdc, 0x05,
|
||||
0xf3, 0xe2, 0x65, 0x3b, 0xcf, 0xbc, 0x6d, 0xa9, 0xae, 0x1c, 0x83, 0x97, 0xfa, 0x1b, 0x55, 0x65,
|
||||
0x54, 0xd5, 0x10, 0x53, 0xe0, 0xe8, 0x4e, 0xcd, 0x7f, 0x84, 0xf3, 0x0c, 0x4c, 0xaf, 0x61, 0xbe,
|
||||
0xd9, 0x0b, 0x1b, 0x62, 0x67, 0x6a, 0xbe, 0x26, 0xa0, 0xa4, 0x50, 0x53, 0x2d, 0x42, 0x8e, 0x29,
|
||||
0x91, 0x64, 0x9a, 0xb7, 0xe3, 0xcf, 0xca, 0xac, 0xb4, 0xbf, 0x43, 0x3c, 0xbc, 0x1e, 0x36, 0x49,
|
||||
0x1c, 0xe5, 0x67, 0x03, 0x66, 0x52, 0x62, 0x1d, 0xe7, 0x16, 0x4c, 0x7b, 0xb8, 0xe9, 0x76, 0x5a,
|
||||
0xdc, 0x09, 0x89, 0x87, 0x9d, 0x20, 0x6c, 0x12, 0x5d, 0xbb, 0xb9, 0x41, 0x1d, 0x68, 0x8d, 0x8a,
|
||||
0x2a, 0xac, 0x2a, 0xcb, 0x7e, 0x90, 0x23, 0x5e, 0x5a, 0x80, 0x3e, 0x82, 0x19, 0x97, 0xd2, 0x56,
|
||||
0xd0, 0x90, 0x87, 0xd2, 0xe9, 0xe2, 0x88, 0x0d, 0x46, 0xfe, 0xf9, 0xa1, 0x23, 0x42, 0x99, 0xcb,
|
||||
0xd0, 0x28, 0x11, 0x47, 0xcb, 0x2b, 0x3f, 0x65, 0x60, 0x32, 0x61, 0x83, 0x10, 0x8c, 0x87, 0x6e,
|
||||
0x1b, 0xab, 0x23, 0x6e, 0xcb, 0x35, 0x3a, 0x0e, 0x79, 0x97, 0x52, 0x47, 0xca, 0x33, 0x52, 0x9e,
|
||||
0x73, 0x29, 0xbd, 0x23, 0x54, 0x45, 0xc8, 0xc5, 0x80, 0xb2, 0x4a, 0xa3, 0x3f, 0xd1, 0x49, 0x00,
|
||||
0x3f, 0xe0, 0x4e, 0x83, 0xb4, 0xdb, 0x01, 0x97, 0x27, 0xb4, 0x60, 0x17, 0xfc, 0x80, 0x5f, 0x97,
|
||||
0x02, 0xa1, 0xae, 0x77, 0x82, 0x96, 0xe7, 0x70, 0xd7, 0x67, 0xc5, 0x43, 0x4a, 0x2d, 0x25, 0xef,
|
||||
0xb9, 0x3e, 0x93, 0xde, 0xa4, 0xcf, 0x75, 0x42, 0x7b, 0x13, 0x8d, 0x14, 0xdd, 0x88, 0xbd, 0x3d,
|
||||
0x4c, 0x59, 0x31, 0x27, 0xa7, 0xe5, 0xe9, 0x61, 0xa5, 0xb8, 0x4d, 0xbc, 0x4e, 0x0b, 0xeb, 0x2c,
|
||||
0xab, 0x98, 0x32, 0xb4, 0x0c, 0x48, 0x5f, 0xe7, 0x62, 0xef, 0xc5, 0xd9, 0xf2, 0x72, 0xba, 0xed,
|
||||
0xb1, 0xad, 0x16, 0xed, 0x29, 0x25, 0xd8, 0xf4, 0xb6, 0xe3, 0xfa, 0xdd, 0x84, 0x09, 0x15, 0x57,
|
||||
0x54, 0x8e, 0xba, 0x7c, 0x2b, 0xae, 0x9c, 0x58, 0x27, 0xcb, 0x93, 0x49, 0x97, 0x67, 0x0a, 0xb2,
|
||||
0xac, 0xd3, 0xd6, 0x45, 0x13, 0xcb, 0xca, 0x16, 0x4c, 0x2d, 0xaf, 0x5c, 0x5f, 0x7f, 0x57, 0xcc,
|
||||
0xe6, 0x78, 0x4a, 0x21, 0x18, 0xf7, 0x5c, 0xee, 0xca, 0x98, 0x87, 0x6d, 0xb9, 0xee, 0xe7, 0xc9,
|
||||
0x24, 0xf2, 0x0c, 0xa6, 0x59, 0x36, 0xf5, 0x4a, 0x98, 0x85, 0x43, 0x34, 0x22, 0x5d, 0x2c, 0xeb,
|
||||
0x9f, 0xb7, 0xd5, 0x47, 0xe5, 0xcb, 0x0c, 0x4c, 0x27, 0x52, 0xe9, 0x5d, 0x8b, 0x60, 0xbc, 0x41,
|
||||
0x3c, 0xd5, 0xf9, 0xff, 0xd9, 0x72, 0x2d, 0x50, 0xb6, 0x88, 0x1f, 0xa3, 0x6c, 0x11, 0x5f, 0x58,
|
||||
0xc9, 0xed, 0xac, 0x1a, 0x2a, 0xd7, 0x22, 0x4b, 0x10, 0x7a, 0xf8, 0x13, 0xd9, 0xc6, 0xac, 0xad,
|
||||
0x3e, 0x84, 0xaf, 0x98, 0xfb, 0x13, 0x12, 0xba, 0x58, 0x0a, 0xbb, 0xae, 0xdb, 0xea, 0xe0, 0x62,
|
||||
0x4e, 0xca, 0xd4, 0x07, 0xba, 0x01, 0x05, 0x1a, 0x11, 0xd2, 0x74, 0x08, 0x65, 0xb2, 0xf6, 0x93,
|
||||
0xb5, 0xf9, 0x61, 0xad, 0xdc, 0x10, 0x0e, 0xef, 0x50, 0x66, 0xe7, 0xa9, 0x5e, 0x25, 0x4a, 0x50,
|
||||
0x48, 0x95, 0xe0, 0x04, 0x14, 0x04, 0x15, 0x46, 0xdd, 0x06, 0x2e, 0x82, 0xda, 0x48, 0x7d, 0xc1,
|
||||
0x5b, 0xe3, 0xf9, 0xcc, 0x54, 0xb6, 0x72, 0x1d, 0x72, 0x3a, 0xa2, 0xe0, 0x27, 0x06, 0x54, 0xdc,
|
||||
0x45, 0xb1, 0x8e, 0x99, 0x64, 0x06, 0x4c, 0xe2, 0xbe, 0x64, 0x07, 0x7d, 0xa9, 0x6c, 0x40, 0x3e,
|
||||
0x86, 0x85, 0x56, 0x21, 0x2b, 0xd8, 0x18, 0x72, 0x63, 0x9e, 0x19, 0x91, 0xcd, 0x4a, 0xe1, 0xc1,
|
||||
0x1f, 0xa7, 0xc6, 0xbe, 0xfd, 0xfb, 0xfb, 0x73, 0x86, 0x2d, 0xdc, 0x6b, 0xbf, 0x00, 0xe4, 0x36,
|
||||
0x71, 0xd4, 0x0d, 0x1a, 0x18, 0x7d, 0x67, 0xc0, 0x64, 0x62, 0xd6, 0xa0, 0xda, 0xb0, 0xa0, 0xbb,
|
||||
0xe7, 0x55, 0x69, 0xf1, 0x40, 0x3e, 0x6a, 0x5b, 0x54, 0xaa, 0x5f, 0xfc, 0xf6, 0xd7, 0xd7, 0x99,
|
||||
0xf3, 0xe8, 0xac, 0x35, 0xe4, 0x95, 0xdc, 0x1f, 0x75, 0xe8, 0x1b, 0x03, 0x60, 0x30, 0x5e, 0x51,
|
||||
0x75, 0x84, 0xb4, 0xe9, 0xf9, 0x5c, 0xaa, 0x1d, 0xc4, 0x45, 0x03, 0xb5, 0x24, 0xd0, 0xb3, 0xe8,
|
||||
0xcc, 0x30, 0xa0, 0x7a, 0xa8, 0xa3, 0x1f, 0x0c, 0xf8, 0x7f, 0xfa, 0xd2, 0x43, 0x97, 0x46, 0xc8,
|
||||
0xbb, 0xfb, 0xfa, 0x2c, 0x2d, 0x1d, 0xd4, 0x4d, 0x43, 0xbe, 0x24, 0x21, 0x5b, 0x68, 0x61, 0x18,
|
||||
0x64, 0x79, 0x2d, 0x32, 0xab, 0x25, 0x63, 0xa0, 0xfb, 0x06, 0x4c, 0xed, 0x7c, 0xa3, 0xa0, 0xcb,
|
||||
0x23, 0x60, 0xd8, 0xeb, 0x25, 0x54, 0xba, 0x72, 0x70, 0x47, 0x0d, 0xff, 0xb2, 0x84, 0x5f, 0x45,
|
||||
0xd6, 0x88, 0xf0, 0x3f, 0x55, 0x47, 0xf2, 0x33, 0xf4, 0xc8, 0x48, 0x3c, 0x44, 0x92, 0x2f, 0x66,
|
||||
0x74, 0x75, 0xe4, 0x4a, 0xee, 0xf1, 0xa2, 0x2f, 0xbd, 0xfe, 0x82, 0xde, 0x9a, 0xcf, 0x55, 0xc9,
|
||||
0x67, 0x09, 0x5d, 0x1c, 0xc6, 0x67, 0xf0, 0xd8, 0xc6, 0xbc, 0xdf, 0x95, 0x27, 0x86, 0x7c, 0x6d,
|
||||
0xee, 0xf5, 0x4f, 0x0a, 0x5d, 0x1b, 0x01, 0xd8, 0x73, 0xfe, 0x05, 0x96, 0xde, 0x78, 0x61, 0x7f,
|
||||
0x4d, 0xed, 0x9a, 0xa4, 0x76, 0x05, 0x2d, 0x1d, 0x8c, 0x5a, 0xbf, 0x63, 0x3f, 0x1a, 0x50, 0xe8,
|
||||
0x5f, 0x19, 0xe8, 0xc2, 0x30, 0x38, 0x3b, 0x2f, 0xb2, 0x52, 0xf5, 0x00, 0x1e, 0x1a, 0xf2, 0x8d,
|
||||
0x5f, 0x77, 0x5d, 0xc0, 0x4b, 0x92, 0xc5, 0x6b, 0xe8, 0xdc, 0x30, 0x16, 0x6e, 0xbd, 0x11, 0x38,
|
||||
0xf2, 0x5f, 0xce, 0xca, 0xed, 0x07, 0x4f, 0xcb, 0xc6, 0xc3, 0xa7, 0x65, 0xe3, 0xcf, 0xa7, 0x65,
|
||||
0xe3, 0xab, 0x67, 0xe5, 0xb1, 0x87, 0xcf, 0xca, 0x63, 0x8f, 0x9f, 0x95, 0xc7, 0x3e, 0x5c, 0xf4,
|
||||
0x03, 0xbe, 0xd5, 0xa9, 0x8b, 0x17, 0x59, 0x1c, 0x6f, 0x90, 0xce, 0x6a, 0xb4, 0x02, 0x1c, 0x72,
|
||||
0xcb, 0x8f, 0x68, 0xc3, 0x6a, 0xb4, 0x39, 0x53, 0x73, 0xb8, 0x3e, 0x21, 0xff, 0xb8, 0x2c, 0xfe,
|
||||
0x13, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xad, 0x63, 0x50, 0x37, 0x11, 0x00, 0x00,
|
||||
// 1443 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x5f, 0x6f, 0x1b, 0xc5,
|
||||
0x16, 0xcf, 0xda, 0x69, 0x6c, 0x1f, 0xf7, 0xde, 0x26, 0x93, 0xdc, 0xd6, 0xf5, 0x6d, 0xdd, 0x5c,
|
||||
0x4b, 0xb7, 0x4d, 0x5b, 0xb2, 0x5b, 0x3b, 0x6d, 0xda, 0x87, 0x52, 0x94, 0x34, 0x25, 0x0d, 0xb4,
|
||||
0x25, 0x6c, 0x10, 0x48, 0x08, 0x69, 0xb5, 0xf6, 0x8e, 0x37, 0xab, 0xd8, 0x3b, 0xd3, 0x9d, 0xb1,
|
||||
0xc1, 0x42, 0x48, 0x88, 0x0f, 0x80, 0x90, 0xf8, 0x0a, 0x3c, 0xc0, 0x1b, 0x0f, 0x15, 0x3c, 0x51,
|
||||
0x09, 0x9e, 0x2a, 0x9e, 0xaa, 0x22, 0xa1, 0xaa, 0x0f, 0x08, 0xb5, 0x48, 0x7c, 0x0d, 0x34, 0x7f,
|
||||
0xd6, 0xde, 0x6d, 0x92, 0xda, 0xe9, 0x1b, 0xbc, 0x58, 0xb3, 0xe7, 0xef, 0xef, 0x77, 0xce, 0xcc,
|
||||
0x99, 0x31, 0x9c, 0x6b, 0x12, 0xd6, 0x21, 0xcc, 0x6a, 0xb8, 0x0c, 0x5b, 0x1c, 0x87, 0x1e, 0x8e,
|
||||
0x3a, 0x41, 0xc8, 0xad, 0x5e, 0xad, 0x81, 0xb9, 0x5b, 0xb3, 0xee, 0x76, 0x71, 0xd4, 0x37, 0x69,
|
||||
0x44, 0x38, 0x41, 0x15, 0x65, 0x6b, 0x0a, 0x5b, 0x73, 0x68, 0x6b, 0x6a, 0xdb, 0xf2, 0x9c, 0x4f,
|
||||
0x7c, 0x22, 0x4d, 0x2d, 0xb1, 0x52, 0x5e, 0xe5, 0xe3, 0x3e, 0x21, 0x7e, 0x1b, 0x5b, 0xf2, 0xab,
|
||||
0xd1, 0x6d, 0x59, 0x6e, 0xa8, 0x03, 0x96, 0x4f, 0x68, 0x95, 0x4b, 0x03, 0xcb, 0x0d, 0x43, 0xc2,
|
||||
0x5d, 0x1e, 0x90, 0x90, 0x69, 0xed, 0x7f, 0x9b, 0xa4, 0x83, 0x79, 0xa3, 0xc5, 0x2d, 0x5a, 0xa7,
|
||||
0x56, 0xaf, 0x66, 0xf1, 0x3e, 0xc5, 0xb1, 0xf2, 0xe4, 0x40, 0x29, 0xa5, 0x56, 0xaf, 0x9e, 0x52,
|
||||
0xa7, 0x68, 0x49, 0x0e, 0x03, 0x46, 0xd4, 0xf5, 0x83, 0x50, 0x26, 0xda, 0xcb, 0x76, 0x8f, 0x12,
|
||||
0x24, 0xe3, 0x1e, 0x57, 0xb6, 0x8e, 0x62, 0xa9, 0xeb, 0xb1, 0x2f, 0xa2, 0x46, 0x9b, 0x34, 0x77,
|
||||
0xb4, 0x7a, 0xc6, 0xed, 0x04, 0x21, 0xb1, 0xe4, 0xaf, 0x12, 0x55, 0x3f, 0x35, 0xa0, 0xb2, 0x8e,
|
||||
0xf9, 0xbb, 0x6e, 0x3b, 0xf0, 0x5c, 0x4e, 0xa2, 0x2d, 0xcc, 0x57, 0xfb, 0x37, 0x71, 0xe0, 0x6f,
|
||||
0x73, 0x1b, 0xdf, 0xed, 0x62, 0xc6, 0xd1, 0x51, 0x98, 0xda, 0x96, 0x82, 0x92, 0x31, 0x6f, 0x2c,
|
||||
0x64, 0x6d, 0xfd, 0x85, 0x5e, 0x07, 0x18, 0xf2, 0x28, 0x65, 0xe6, 0x8d, 0x85, 0x62, 0xfd, 0xb4,
|
||||
0x99, 0xec, 0x8f, 0x6a, 0x9c, 0xe6, 0x60, 0x6e, 0xba, 0x3e, 0xd6, 0x31, 0xed, 0x84, 0x67, 0xf5,
|
||||
0xb1, 0x01, 0xa7, 0xf6, 0x85, 0xc0, 0x28, 0x09, 0x19, 0x46, 0xff, 0x83, 0xc3, 0x92, 0x88, 0x93,
|
||||
0x42, 0x52, 0x94, 0x32, 0x65, 0x8a, 0x36, 0x00, 0x7a, 0x71, 0x08, 0x56, 0xca, 0xcc, 0x67, 0x17,
|
||||
0x8a, 0xf5, 0xb3, 0xe6, 0x8b, 0xb7, 0x8b, 0x39, 0x48, 0x6a, 0x27, 0x9c, 0xd1, 0x7a, 0x8a, 0x59,
|
||||
0x56, 0x32, 0x3b, 0x33, 0x92, 0x99, 0x82, 0x9a, 0xa2, 0xd6, 0x82, 0x13, 0xeb, 0x98, 0xdf, 0x72,
|
||||
0x39, 0x66, 0x29, 0x7e, 0x71, 0x69, 0xd3, 0x25, 0x34, 0x5e, 0xba, 0x84, 0xbf, 0x1a, 0x70, 0x72,
|
||||
0x9f, 0x44, 0x7f, 0xef, 0x02, 0xde, 0x37, 0xa0, 0x30, 0x48, 0x81, 0xea, 0x90, 0x73, 0x3d, 0x2f,
|
||||
0xc2, 0x8c, 0x49, 0xfc, 0x85, 0xd5, 0xd2, 0xa3, 0x7b, 0x8b, 0x73, 0x3a, 0xec, 0x8a, 0xd2, 0x6c,
|
||||
0xf1, 0x28, 0x08, 0x7d, 0x3b, 0x36, 0x44, 0x8b, 0x90, 0xa3, 0xdd, 0x86, 0xb3, 0x83, 0xfb, 0x7a,
|
||||
0x8b, 0xce, 0x99, 0xea, 0xc4, 0x9b, 0xf1, 0x30, 0x30, 0x57, 0xc2, 0xbe, 0x3d, 0x45, 0xbb, 0x8d,
|
||||
0x37, 0x71, 0x5f, 0xd4, 0xa9, 0x47, 0x78, 0x10, 0xfa, 0x0e, 0x25, 0x1f, 0xe2, 0x48, 0x62, 0xcf,
|
||||
0xda, 0x45, 0x25, 0xdb, 0x14, 0x22, 0x74, 0x1e, 0x66, 0x68, 0x44, 0x28, 0x61, 0x38, 0x72, 0x68,
|
||||
0x14, 0x90, 0x28, 0xe0, 0xfd, 0xd2, 0xa4, 0xb4, 0x9b, 0x8e, 0x15, 0x9b, 0x5a, 0x5e, 0xad, 0xc1,
|
||||
0xb1, 0x75, 0xcc, 0x57, 0x45, 0x99, 0xc7, 0x3c, 0x57, 0xd5, 0x27, 0x06, 0x94, 0x76, 0xfb, 0xe8,
|
||||
0x3e, 0x5e, 0x82, 0xbc, 0xea, 0x63, 0xe0, 0xe9, 0xfd, 0x52, 0x36, 0xe3, 0x43, 0x6f, 0xaa, 0x29,
|
||||
0xd1, 0xab, 0x9b, 0xd2, 0x77, 0x63, 0xcd, 0xce, 0x49, 0xdb, 0x0d, 0x0f, 0x99, 0x70, 0x48, 0x2e,
|
||||
0x75, 0x0d, 0x4a, 0xfb, 0xf9, 0xd8, 0xca, 0x0c, 0xbd, 0x07, 0x05, 0xe6, 0xed, 0x38, 0xca, 0x47,
|
||||
0xf5, 0xef, 0xff, 0xa3, 0xb6, 0x82, 0x02, 0x3c, 0xfb, 0xe4, 0xde, 0xe2, 0x11, 0x65, 0xb9, 0xc8,
|
||||
0xbc, 0x9d, 0xf9, 0x0b, 0xe6, 0xc5, 0xcb, 0x76, 0x9e, 0x79, 0x3b, 0x52, 0x5d, 0x3d, 0x06, 0xff,
|
||||
0x19, 0x6c, 0x54, 0x95, 0x51, 0x55, 0x43, 0x4c, 0x81, 0xa3, 0xcf, 0x6b, 0xfe, 0x21, 0x9c, 0x67,
|
||||
0x61, 0x66, 0x1d, 0xf3, 0xad, 0x7e, 0xd8, 0x14, 0x3b, 0x53, 0xf3, 0x35, 0x01, 0x25, 0x85, 0x9a,
|
||||
0x6a, 0x09, 0x72, 0x4c, 0x89, 0x24, 0xd3, 0xbc, 0x1d, 0x7f, 0x56, 0xe7, 0xa4, 0xfd, 0x1d, 0xe2,
|
||||
0xe1, 0x8d, 0xb0, 0x45, 0xe2, 0x28, 0x3f, 0x1a, 0x30, 0x9b, 0x12, 0xeb, 0x38, 0xb7, 0x60, 0xc6,
|
||||
0xc3, 0x2d, 0xb7, 0xdb, 0xe6, 0x4e, 0x48, 0x3c, 0xec, 0x04, 0x61, 0x8b, 0xe8, 0xda, 0xcd, 0x0f,
|
||||
0xeb, 0x40, 0xeb, 0xd4, 0xec, 0xd5, 0xcc, 0x35, 0x65, 0x39, 0x08, 0x72, 0xc4, 0x4b, 0x0b, 0xd0,
|
||||
0x07, 0x30, 0xeb, 0x52, 0xda, 0x0e, 0x9a, 0xf2, 0x50, 0x3a, 0x3d, 0x1c, 0xb1, 0xe1, 0xc8, 0x3f,
|
||||
0x3f, 0x72, 0x44, 0x28, 0x73, 0x19, 0x1a, 0x25, 0xe2, 0x68, 0x79, 0xf5, 0x87, 0x0c, 0x14, 0x13,
|
||||
0x36, 0x08, 0xc1, 0x64, 0xe8, 0x76, 0xb0, 0x3a, 0xe2, 0xb6, 0x5c, 0xa3, 0xe3, 0x90, 0x77, 0x29,
|
||||
0x75, 0xa4, 0x3c, 0x23, 0xe5, 0x39, 0x97, 0xd2, 0x3b, 0x42, 0x55, 0x82, 0x5c, 0x0c, 0x28, 0xab,
|
||||
0x34, 0xfa, 0x13, 0x9d, 0x04, 0xf0, 0x03, 0xee, 0x34, 0x49, 0xa7, 0x13, 0x70, 0x79, 0x42, 0x0b,
|
||||
0x76, 0xc1, 0x0f, 0xf8, 0x75, 0x29, 0x10, 0xea, 0x46, 0x37, 0x68, 0x7b, 0x0e, 0x77, 0x7d, 0x56,
|
||||
0x3a, 0xa4, 0xd4, 0x52, 0xf2, 0x8e, 0xeb, 0x33, 0xe9, 0x4d, 0x06, 0x5c, 0xa7, 0xb4, 0x37, 0xd1,
|
||||
0x48, 0xd1, 0x8d, 0xd8, 0xdb, 0xc3, 0x94, 0x95, 0x72, 0x72, 0x5a, 0x9e, 0x1e, 0x55, 0x8a, 0xdb,
|
||||
0xc4, 0xeb, 0xb6, 0xb1, 0xce, 0xb2, 0x86, 0x29, 0x43, 0x2b, 0x80, 0xf4, 0x75, 0x2e, 0xf6, 0x5e,
|
||||
0x9c, 0x2d, 0x2f, 0xa7, 0xdb, 0x1e, 0xdb, 0x6a, 0xc9, 0x9e, 0x56, 0x82, 0x2d, 0x6f, 0x27, 0xae,
|
||||
0xdf, 0x4d, 0x98, 0x52, 0x71, 0x45, 0xe5, 0xa8, 0xcb, 0xb7, 0xe3, 0xca, 0x89, 0x75, 0xb2, 0x3c,
|
||||
0x99, 0x74, 0x79, 0xa6, 0x21, 0xcb, 0xba, 0x1d, 0x5d, 0x34, 0xb1, 0xac, 0x6e, 0xc3, 0xf4, 0xca,
|
||||
0xea, 0xf5, 0x8d, 0xb7, 0xc5, 0x6c, 0x8e, 0xa7, 0x14, 0x82, 0x49, 0xcf, 0xe5, 0xae, 0x8c, 0x79,
|
||||
0xd8, 0x96, 0xeb, 0x41, 0x9e, 0x4c, 0x22, 0xcf, 0x70, 0x9a, 0x65, 0x53, 0xaf, 0x84, 0x39, 0x38,
|
||||
0x44, 0x23, 0xd2, 0xc3, 0xb2, 0xfe, 0x79, 0x5b, 0x7d, 0x54, 0x3f, 0xcf, 0xc0, 0x4c, 0x22, 0x95,
|
||||
0xde, 0xb5, 0x08, 0x26, 0x9b, 0xc4, 0x53, 0x9d, 0xff, 0x97, 0x2d, 0xd7, 0x02, 0x65, 0x9b, 0xf8,
|
||||
0x31, 0xca, 0x36, 0xf1, 0x85, 0x95, 0xdc, 0xce, 0xaa, 0xa1, 0x72, 0x2d, 0xb2, 0x04, 0xa1, 0x87,
|
||||
0x3f, 0x92, 0x6d, 0xcc, 0xda, 0xea, 0x43, 0xf8, 0x8a, 0xb9, 0x3f, 0x25, 0xa1, 0x8b, 0xa5, 0xb0,
|
||||
0xeb, 0xb9, 0xed, 0x2e, 0x2e, 0xe5, 0xa4, 0x4c, 0x7d, 0xa0, 0x1b, 0x50, 0xa0, 0x11, 0x21, 0x2d,
|
||||
0x87, 0x50, 0x26, 0x6b, 0x5f, 0xac, 0x2f, 0x8c, 0x6a, 0xe5, 0xa6, 0x70, 0x78, 0x8b, 0x32, 0x3b,
|
||||
0x4f, 0xf5, 0x2a, 0x51, 0x82, 0x42, 0xaa, 0x04, 0x27, 0xa0, 0x20, 0xa8, 0x30, 0xea, 0x36, 0x71,
|
||||
0x09, 0xd4, 0x46, 0x1a, 0x08, 0xde, 0x98, 0xcc, 0x67, 0xa6, 0xb3, 0xd5, 0xeb, 0x90, 0xd3, 0x11,
|
||||
0x05, 0x3f, 0x31, 0xa0, 0xe2, 0x2e, 0x8a, 0x75, 0xcc, 0x24, 0x33, 0x64, 0x12, 0xf7, 0x25, 0x3b,
|
||||
0xec, 0x4b, 0x75, 0x13, 0xf2, 0x31, 0x2c, 0xb4, 0x06, 0x59, 0xc1, 0xc6, 0x90, 0x1b, 0xf3, 0xcc,
|
||||
0x98, 0x6c, 0x56, 0x0b, 0x0f, 0x7e, 0x3b, 0x35, 0xf1, 0xf5, 0x9f, 0xdf, 0x9e, 0x33, 0x6c, 0xe1,
|
||||
0x5e, 0xff, 0x09, 0x20, 0xb7, 0x85, 0xa3, 0x5e, 0xd0, 0xc4, 0xe8, 0x1b, 0x03, 0x8a, 0x89, 0x59,
|
||||
0x83, 0xea, 0xa3, 0x82, 0xee, 0x9e, 0x57, 0xe5, 0xa5, 0x03, 0xf9, 0xa8, 0x6d, 0x51, 0xad, 0x7d,
|
||||
0xf6, 0xcb, 0x1f, 0x5f, 0x66, 0xce, 0xa3, 0xb3, 0xd6, 0x88, 0x57, 0xf2, 0x60, 0xd4, 0xa1, 0xaf,
|
||||
0x0c, 0x80, 0xe1, 0x78, 0x45, 0xb5, 0x31, 0xd2, 0xa6, 0xe7, 0x73, 0xb9, 0x7e, 0x10, 0x17, 0x0d,
|
||||
0xd4, 0x92, 0x40, 0xcf, 0xa2, 0x33, 0xa3, 0x80, 0xea, 0xa1, 0x8e, 0xbe, 0x33, 0xe0, 0xdf, 0xe9,
|
||||
0x4b, 0x0f, 0x5d, 0x1a, 0x23, 0xef, 0xee, 0xeb, 0xb3, 0xbc, 0x7c, 0x50, 0x37, 0x0d, 0xf9, 0x92,
|
||||
0x84, 0x6c, 0xa1, 0xc5, 0x51, 0x90, 0xe5, 0xb5, 0xc8, 0xac, 0xb6, 0x8c, 0x81, 0xee, 0x1b, 0x30,
|
||||
0xfd, 0xfc, 0x1b, 0x05, 0x5d, 0x1e, 0x03, 0xc3, 0x5e, 0x2f, 0xa1, 0xf2, 0x95, 0x83, 0x3b, 0x6a,
|
||||
0xf8, 0x97, 0x25, 0xfc, 0x1a, 0xb2, 0xc6, 0x84, 0xff, 0xb1, 0x3a, 0x92, 0x9f, 0xa0, 0x47, 0x46,
|
||||
0xe2, 0x21, 0x92, 0x7c, 0x31, 0xa3, 0xab, 0x63, 0x57, 0x72, 0x8f, 0x17, 0x7d, 0xf9, 0xd5, 0x97,
|
||||
0xf4, 0xd6, 0x7c, 0xae, 0x4a, 0x3e, 0xcb, 0xe8, 0xe2, 0x28, 0x3e, 0xc3, 0xc7, 0x36, 0xe6, 0x83,
|
||||
0xae, 0x3c, 0x31, 0xe4, 0x6b, 0x73, 0xaf, 0x7f, 0x52, 0xe8, 0xda, 0x18, 0xc0, 0x5e, 0xf0, 0x2f,
|
||||
0xb0, 0xfc, 0xda, 0x4b, 0xfb, 0x6b, 0x6a, 0xd7, 0x24, 0xb5, 0x2b, 0x68, 0xf9, 0x60, 0xd4, 0x06,
|
||||
0x1d, 0xfb, 0xde, 0x80, 0xc2, 0xe0, 0xca, 0x40, 0x17, 0x46, 0xc1, 0x79, 0xfe, 0x22, 0x2b, 0xd7,
|
||||
0x0e, 0xe0, 0xa1, 0x21, 0xdf, 0xf8, 0x79, 0xd7, 0x05, 0xbc, 0x2c, 0x59, 0xbc, 0x82, 0xce, 0x8d,
|
||||
0x62, 0xe1, 0x36, 0x9a, 0x81, 0x23, 0xff, 0xe5, 0xac, 0xde, 0x7e, 0xf0, 0xb4, 0x62, 0x3c, 0x7c,
|
||||
0x5a, 0x31, 0x7e, 0x7f, 0x5a, 0x31, 0xbe, 0x78, 0x56, 0x99, 0x78, 0xf8, 0xac, 0x32, 0xf1, 0xf8,
|
||||
0x59, 0x65, 0xe2, 0xfd, 0x25, 0x3f, 0xe0, 0xdb, 0xdd, 0x86, 0x78, 0x91, 0xc5, 0xf1, 0x86, 0xe9,
|
||||
0xac, 0x66, 0x3b, 0xc0, 0x21, 0xb7, 0xfc, 0x88, 0x36, 0xad, 0x66, 0x87, 0x33, 0x35, 0x87, 0x1b,
|
||||
0x53, 0xf2, 0x8f, 0xcb, 0xd2, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x30, 0xfb, 0x01, 0xed, 0x37,
|
||||
0x11, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -3618,7 +3619,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.BlockId == nil {
|
||||
m.BlockId = &v1.BlockID{}
|
||||
m.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3654,7 +3655,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Block == nil {
|
||||
m.Block = &v1.Block{}
|
||||
m.Block = &v2.Block{}
|
||||
}
|
||||
if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3826,7 +3827,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.BlockId == nil {
|
||||
m.BlockId = &v1.BlockID{}
|
||||
m.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3862,7 +3863,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Block == nil {
|
||||
m.Block = &v1.Block{}
|
||||
m.Block = &v2.Block{}
|
||||
}
|
||||
if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -4154,7 +4155,7 @@ func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.DefaultNodeInfo == nil {
|
||||
m.DefaultNodeInfo = &v11.DefaultNodeInfo{}
|
||||
m.DefaultNodeInfo = &v1.DefaultNodeInfo{}
|
||||
}
|
||||
if err := m.DefaultNodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
|
||||
@@ -3,7 +3,7 @@ package cmtservice
|
||||
import (
|
||||
"context"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||
"google.golang.org/grpc/codes"
|
||||
|
||||
@@ -3,7 +3,7 @@ package cmtservice
|
||||
import (
|
||||
"context"
|
||||
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cmtservice
|
||||
|
||||
import (
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
)
|
||||
|
||||
// ToABCIRequestQuery converts a gRPC ABCIQueryRequest type to an ABCI
|
||||
|
||||
@@ -5,8 +5,8 @@ package cmtservice
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
v1 "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
v11 "github.com/cometbft/cometbft/api/cometbft/version/v1"
|
||||
v2 "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
v1 "github.com/cometbft/cometbft/api/cometbft/version/v1"
|
||||
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||
proto "github.com/cosmos/gogoproto/proto"
|
||||
@@ -34,9 +34,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
// field converted to bech32 string.
|
||||
type Block struct {
|
||||
Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
|
||||
Data v1.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
|
||||
Evidence v1.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"`
|
||||
LastCommit *v1.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
Data v2.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
|
||||
Evidence v2.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"`
|
||||
LastCommit *v2.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
@@ -79,21 +79,21 @@ func (m *Block) GetHeader() Header {
|
||||
return Header{}
|
||||
}
|
||||
|
||||
func (m *Block) GetData() v1.Data {
|
||||
func (m *Block) GetData() v2.Data {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return v1.Data{}
|
||||
return v2.Data{}
|
||||
}
|
||||
|
||||
func (m *Block) GetEvidence() v1.EvidenceList {
|
||||
func (m *Block) GetEvidence() v2.EvidenceList {
|
||||
if m != nil {
|
||||
return m.Evidence
|
||||
}
|
||||
return v1.EvidenceList{}
|
||||
return v2.EvidenceList{}
|
||||
}
|
||||
|
||||
func (m *Block) GetLastCommit() *v1.Commit {
|
||||
func (m *Block) GetLastCommit() *v2.Commit {
|
||||
if m != nil {
|
||||
return m.LastCommit
|
||||
}
|
||||
@@ -103,12 +103,12 @@ func (m *Block) GetLastCommit() *v1.Commit {
|
||||
// Header defines the structure of a Tendermint block header.
|
||||
type Header struct {
|
||||
// basic block info
|
||||
Version v11.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
|
||||
ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
|
||||
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
|
||||
Version v1.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
|
||||
ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
|
||||
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
|
||||
// prev block info
|
||||
LastBlockId v1.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
|
||||
LastBlockId v2.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
|
||||
// hashes of block data
|
||||
LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
|
||||
DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
|
||||
@@ -159,11 +159,11 @@ func (m *Header) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_Header proto.InternalMessageInfo
|
||||
|
||||
func (m *Header) GetVersion() v11.Consensus {
|
||||
func (m *Header) GetVersion() v1.Consensus {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return v11.Consensus{}
|
||||
return v1.Consensus{}
|
||||
}
|
||||
|
||||
func (m *Header) GetChainID() string {
|
||||
@@ -187,11 +187,11 @@ func (m *Header) GetTime() time.Time {
|
||||
return time.Time{}
|
||||
}
|
||||
|
||||
func (m *Header) GetLastBlockId() v1.BlockID {
|
||||
func (m *Header) GetLastBlockId() v2.BlockID {
|
||||
if m != nil {
|
||||
return m.LastBlockId
|
||||
}
|
||||
return v1.BlockID{}
|
||||
return v2.BlockID{}
|
||||
}
|
||||
|
||||
func (m *Header) GetLastCommitHash() []byte {
|
||||
@@ -267,48 +267,49 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_bb9931519c08e0d6 = []byte{
|
||||
// 654 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcb, 0x6e, 0xd3, 0x40,
|
||||
0x14, 0x86, 0xe3, 0x36, 0xcd, 0x65, 0xd2, 0xf4, 0x62, 0x55, 0x90, 0x06, 0xe1, 0x54, 0x45, 0x94,
|
||||
0x52, 0x09, 0x0f, 0xa5, 0x12, 0x0b, 0x24, 0x16, 0xa4, 0x05, 0x35, 0x12, 0x6c, 0x2c, 0xc4, 0x82,
|
||||
0x4d, 0x34, 0xb6, 0xa7, 0xf6, 0xa8, 0xb1, 0xc7, 0xf2, 0x4c, 0x2c, 0x78, 0x09, 0xd4, 0xc7, 0x60,
|
||||
0xc9, 0x63, 0x74, 0xd9, 0x25, 0xab, 0x82, 0xd2, 0x05, 0x8f, 0xc0, 0x16, 0xcd, 0x99, 0x71, 0x92,
|
||||
0x5e, 0xc4, 0x26, 0xb1, 0xff, 0xf3, 0x9d, 0x3f, 0x73, 0xfe, 0x33, 0x0a, 0xda, 0x0b, 0xb8, 0x48,
|
||||
0xb8, 0xc0, 0x3e, 0x11, 0x14, 0x4b, 0x9a, 0x86, 0x34, 0x4f, 0x58, 0x2a, 0x71, 0xb1, 0xef, 0x53,
|
||||
0x49, 0xf6, 0xb1, 0xfc, 0x9a, 0x51, 0xe1, 0x66, 0x39, 0x97, 0xdc, 0x76, 0x34, 0xeb, 0x2a, 0xd6,
|
||||
0x9d, 0xb1, 0xae, 0x61, 0xbb, 0x1b, 0x11, 0x8f, 0x38, 0xa0, 0x58, 0x3d, 0xe9, 0xae, 0xee, 0xc3,
|
||||
0x80, 0x27, 0x54, 0xfa, 0x27, 0x52, 0x7b, 0xe1, 0xe2, 0x9a, 0x69, 0x77, 0xeb, 0x76, 0x99, 0x16,
|
||||
0x2c, 0xa4, 0x69, 0x40, 0x0d, 0xd1, 0x9b, 0x12, 0x05, 0xcd, 0x05, 0xe3, 0xe9, 0x4d, 0x8b, 0x5e,
|
||||
0xc4, 0x79, 0x34, 0xa2, 0x18, 0xde, 0xfc, 0xf1, 0x09, 0x96, 0x2c, 0xa1, 0x42, 0x92, 0x24, 0x33,
|
||||
0xc0, 0x3a, 0x49, 0x58, 0xca, 0x31, 0x7c, 0x6a, 0x69, 0xfb, 0xdb, 0x02, 0x5a, 0xea, 0x8f, 0x78,
|
||||
0x70, 0x6a, 0x0f, 0x50, 0x2d, 0xa6, 0x24, 0xa4, 0x79, 0xc7, 0xda, 0xb2, 0x76, 0x5b, 0x2f, 0x76,
|
||||
0xdc, 0xff, 0x8f, 0xe9, 0x1e, 0x03, 0xdd, 0x6f, 0x9e, 0x5f, 0xf6, 0x2a, 0xdf, 0xff, 0xfc, 0xd8,
|
||||
0xb3, 0x3c, 0x63, 0x60, 0xbf, 0x44, 0xd5, 0x90, 0x48, 0xd2, 0x59, 0x00, 0xa3, 0xfb, 0x6e, 0x79,
|
||||
0x70, 0x57, 0x9f, 0xb6, 0xd8, 0x77, 0x8f, 0x88, 0x24, 0xf3, 0x9d, 0xc0, 0xdb, 0xef, 0x50, 0xa3,
|
||||
0x9c, 0xb9, 0xb3, 0x08, 0xbd, 0xbd, 0x3b, 0x7a, 0xdf, 0x1a, 0xe4, 0x3d, 0x13, 0x72, 0xde, 0x63,
|
||||
0xda, 0x6b, 0xbf, 0x42, 0xad, 0x11, 0x11, 0x72, 0x18, 0xf0, 0x24, 0x61, 0xb2, 0x53, 0x05, 0xab,
|
||||
0xcd, 0x3b, 0xac, 0x0e, 0x01, 0xf0, 0x90, 0xa2, 0xf5, 0xf3, 0xf6, 0xdf, 0x2a, 0xaa, 0xe9, 0xc9,
|
||||
0xec, 0x43, 0x54, 0x37, 0x49, 0x9b, 0x48, 0x9c, 0x99, 0x85, 0x29, 0x68, 0x93, 0x54, 0xd0, 0x54,
|
||||
0x8c, 0xc5, 0xfc, 0x61, 0xca, 0x4e, 0x7b, 0x07, 0x35, 0x82, 0x98, 0xb0, 0x74, 0xc8, 0x42, 0xc8,
|
||||
0xa3, 0xd9, 0x6f, 0x4d, 0x2e, 0x7b, 0xf5, 0x43, 0xa5, 0x0d, 0x8e, 0xbc, 0x3a, 0x14, 0x07, 0xa1,
|
||||
0x7d, 0x4f, 0xc5, 0xcf, 0xa2, 0x58, 0xc2, 0xe4, 0x8b, 0x9e, 0x79, 0xb3, 0x5f, 0xa3, 0xaa, 0x5a,
|
||||
0xa3, 0x19, 0xa2, 0xeb, 0xea, 0x1d, 0xbb, 0xe5, 0x8e, 0xdd, 0x8f, 0xe5, 0x8e, 0xfb, 0x6d, 0xf5,
|
||||
0xeb, 0x67, 0xbf, 0x7a, 0x96, 0x89, 0x54, 0xb5, 0xd9, 0x03, 0xd4, 0x86, 0x28, 0x7c, 0xb5, 0x63,
|
||||
0x75, 0x86, 0x25, 0xe3, 0x73, 0x3b, 0x0c, 0xb8, 0x06, 0x83, 0xa3, 0xf9, 0x29, 0x20, 0x46, 0xad,
|
||||
0x87, 0xf6, 0x2e, 0x5a, 0x9b, 0x4b, 0x75, 0x18, 0x13, 0x11, 0x77, 0x6a, 0x5b, 0xd6, 0xee, 0xb2,
|
||||
0xb7, 0x32, 0xcb, 0xef, 0x98, 0x88, 0xd8, 0x7e, 0x80, 0x9a, 0x6a, 0x9f, 0x1a, 0xa9, 0x03, 0xd2,
|
||||
0x50, 0x02, 0x14, 0x9f, 0xa0, 0xd5, 0x82, 0x8c, 0x58, 0x48, 0x24, 0xcf, 0x85, 0x46, 0x1a, 0xda,
|
||||
0x65, 0x26, 0x03, 0xf8, 0x1c, 0x6d, 0xa4, 0xf4, 0x8b, 0x1c, 0xde, 0xa4, 0x9b, 0x40, 0xdb, 0xaa,
|
||||
0xf6, 0xe9, 0x7a, 0xc7, 0x63, 0xb4, 0x12, 0x94, 0xcb, 0xd0, 0x2c, 0x02, 0xb6, 0x3d, 0x55, 0x01,
|
||||
0xdb, 0x44, 0x0d, 0x92, 0x65, 0x1a, 0x68, 0x01, 0x50, 0x27, 0x59, 0x06, 0xa5, 0x3d, 0xb4, 0x0e,
|
||||
0x33, 0xe6, 0x54, 0x8c, 0x47, 0xd2, 0x98, 0x2c, 0x03, 0xb3, 0xaa, 0x0a, 0x9e, 0xd6, 0x81, 0x7d,
|
||||
0x84, 0xda, 0xe5, 0x8d, 0xd3, 0x5c, 0x1b, 0xb8, 0xe5, 0x52, 0x04, 0xe8, 0x29, 0x5a, 0xcb, 0x72,
|
||||
0x9e, 0x71, 0x41, 0xf3, 0x21, 0x09, 0xc3, 0x9c, 0x0a, 0xd1, 0x59, 0x51, 0xd7, 0xc0, 0x5b, 0x2d,
|
||||
0xf5, 0x37, 0x5a, 0xee, 0x7f, 0x38, 0x9f, 0x38, 0xd6, 0xc5, 0xc4, 0xb1, 0x7e, 0x4f, 0x1c, 0xeb,
|
||||
0xec, 0xca, 0xa9, 0x5c, 0x5c, 0x39, 0x95, 0x9f, 0x57, 0x4e, 0xe5, 0xf3, 0x41, 0xc4, 0x64, 0x3c,
|
||||
0xf6, 0xd5, 0xce, 0xb0, 0xf9, 0x9f, 0xd2, 0x5f, 0xcf, 0x44, 0x78, 0x8a, 0x83, 0x11, 0xa3, 0xa9,
|
||||
0xc4, 0x51, 0x9e, 0x05, 0x38, 0x48, 0xa4, 0xa0, 0x79, 0xc1, 0x02, 0xea, 0xd7, 0xe0, 0x8a, 0x1c,
|
||||
0xfc, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x71, 0x63, 0x17, 0x59, 0xda, 0x04, 0x00, 0x00,
|
||||
// 661 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x6e, 0xd3, 0x40,
|
||||
0x14, 0x85, 0xe3, 0x36, 0xcd, 0xcf, 0xa4, 0xe9, 0x8f, 0x55, 0x41, 0x1a, 0x84, 0x53, 0x15, 0x51,
|
||||
0x4a, 0x25, 0x66, 0x68, 0x2b, 0xb1, 0x40, 0x62, 0x41, 0x52, 0x50, 0x23, 0xc1, 0x26, 0x42, 0x2c,
|
||||
0xd8, 0x44, 0x13, 0x7b, 0x6a, 0x8f, 0x1a, 0x7b, 0x2c, 0xcf, 0xc4, 0x82, 0x97, 0x40, 0x7d, 0x0c,
|
||||
0x96, 0x3c, 0x46, 0x97, 0x5d, 0xb2, 0x2a, 0x28, 0x5d, 0xf0, 0x08, 0x6c, 0xd1, 0xdc, 0x19, 0x37,
|
||||
0x29, 0xad, 0xd8, 0x24, 0xf6, 0xb9, 0xdf, 0x3d, 0x99, 0x7b, 0xee, 0x28, 0x68, 0xcf, 0x17, 0x32,
|
||||
0x16, 0x92, 0x8c, 0xa8, 0x64, 0x44, 0xb1, 0x24, 0x60, 0x59, 0xcc, 0x13, 0x45, 0xf2, 0xfd, 0x11,
|
||||
0x53, 0x74, 0x9f, 0xa8, 0x2f, 0x29, 0x93, 0x38, 0xcd, 0x84, 0x12, 0xae, 0x67, 0x58, 0xac, 0x59,
|
||||
0x3c, 0x63, 0xb1, 0x65, 0xdb, 0x1b, 0xa1, 0x08, 0x05, 0xa0, 0x44, 0x3f, 0x99, 0xae, 0xf6, 0x43,
|
||||
0x5f, 0xc4, 0x4c, 0x8d, 0x4e, 0x94, 0xf1, 0x22, 0xf9, 0xc1, 0xbc, 0x69, 0x7b, 0xeb, 0x76, 0x99,
|
||||
0xe5, 0x3c, 0x60, 0x89, 0xcf, 0x2c, 0xd1, 0xb9, 0x26, 0x72, 0x96, 0x49, 0x2e, 0x12, 0x92, 0xdf,
|
||||
0x38, 0x57, 0xbb, 0x13, 0x0a, 0x11, 0x8e, 0x19, 0x81, 0xb7, 0xd1, 0xe4, 0x84, 0x28, 0x1e, 0x33,
|
||||
0xa9, 0x68, 0x9c, 0x5a, 0x60, 0x9d, 0xc6, 0x3c, 0x11, 0x04, 0x3e, 0x8d, 0xb4, 0xfd, 0x75, 0x01,
|
||||
0x2d, 0x75, 0xc7, 0xc2, 0x3f, 0x75, 0xfb, 0xa8, 0x12, 0x31, 0x1a, 0xb0, 0xac, 0xe5, 0x6c, 0x39,
|
||||
0xbb, 0x8d, 0x83, 0x1d, 0xfc, 0xff, 0x31, 0xf1, 0x31, 0xd0, 0xdd, 0xfa, 0xf9, 0x65, 0xa7, 0xf4,
|
||||
0xed, 0xf7, 0xf7, 0x3d, 0x67, 0x60, 0x0d, 0xdc, 0x17, 0xa8, 0x1c, 0x50, 0x45, 0x5b, 0x0b, 0x60,
|
||||
0x74, 0x1f, 0x17, 0x07, 0xc7, 0xe6, 0xb4, 0xf9, 0x01, 0x3e, 0xa2, 0x8a, 0xce, 0x77, 0x02, 0xef,
|
||||
0xbe, 0x45, 0xb5, 0x62, 0xe6, 0xd6, 0x22, 0xf4, 0x76, 0xee, 0xe8, 0x7d, 0x63, 0x91, 0x77, 0x5c,
|
||||
0xaa, 0x79, 0x8f, 0xeb, 0x5e, 0xf7, 0x25, 0x6a, 0x8c, 0xa9, 0x54, 0x43, 0x5f, 0xc4, 0x31, 0x57,
|
||||
0xad, 0x32, 0x58, 0x6d, 0xde, 0x61, 0xd5, 0x03, 0x60, 0x80, 0x34, 0x6d, 0x9e, 0xb7, 0xff, 0x94,
|
||||
0x51, 0xc5, 0x4c, 0xe6, 0xf6, 0x50, 0xd5, 0x26, 0x6d, 0x23, 0xf1, 0x66, 0x16, 0xb6, 0x80, 0xf3,
|
||||
0x7d, 0xdc, 0x13, 0x89, 0x64, 0x89, 0x9c, 0xc8, 0xf9, 0xc3, 0x14, 0x9d, 0xee, 0x0e, 0xaa, 0xf9,
|
||||
0x11, 0xe5, 0xc9, 0x90, 0x07, 0x90, 0x47, 0xbd, 0xdb, 0x98, 0x5e, 0x76, 0xaa, 0x3d, 0xad, 0xf5,
|
||||
0x8f, 0x06, 0x55, 0x28, 0xf6, 0x03, 0xf7, 0x9e, 0x8e, 0x9f, 0x87, 0x91, 0x82, 0xc9, 0x17, 0x07,
|
||||
0xf6, 0xcd, 0x7d, 0x85, 0xca, 0x7a, 0x8d, 0x76, 0x88, 0x36, 0x36, 0x3b, 0xc6, 0xc5, 0x8e, 0xf1,
|
||||
0x87, 0x62, 0xc7, 0xdd, 0xa6, 0xfe, 0xf5, 0xb3, 0x9f, 0x1d, 0xc7, 0x46, 0xaa, 0xdb, 0xdc, 0x3e,
|
||||
0x6a, 0x42, 0x14, 0x23, 0xbd, 0x63, 0x7d, 0x86, 0x25, 0xeb, 0x73, 0x3b, 0x0c, 0xb8, 0x06, 0xfd,
|
||||
0xa3, 0xf9, 0x29, 0x20, 0x46, 0xa3, 0x07, 0xee, 0x2e, 0x5a, 0x9b, 0x4b, 0x75, 0x18, 0x51, 0x19,
|
||||
0xb5, 0x2a, 0x5b, 0xce, 0xee, 0xf2, 0x60, 0x65, 0x96, 0xdf, 0x31, 0x95, 0x91, 0xfb, 0x00, 0xd5,
|
||||
0xf5, 0x3e, 0x0d, 0x52, 0x05, 0xa4, 0xa6, 0x05, 0x28, 0x3e, 0x41, 0xab, 0x39, 0x1d, 0xf3, 0x80,
|
||||
0x2a, 0x91, 0x49, 0x83, 0xd4, 0x8c, 0xcb, 0x4c, 0x06, 0xf0, 0x39, 0xda, 0x48, 0xd8, 0x67, 0x35,
|
||||
0xfc, 0x97, 0xae, 0x03, 0xed, 0xea, 0xda, 0xc7, 0x9b, 0x1d, 0x8f, 0xd1, 0x8a, 0x5f, 0x2c, 0xc3,
|
||||
0xb0, 0x08, 0xd8, 0xe6, 0xb5, 0x0a, 0xd8, 0x26, 0xaa, 0xd1, 0x34, 0x35, 0x40, 0x03, 0x80, 0x2a,
|
||||
0x4d, 0x53, 0x28, 0xed, 0xa1, 0x75, 0x98, 0x31, 0x63, 0x72, 0x32, 0x56, 0xd6, 0x64, 0x19, 0x98,
|
||||
0x55, 0x5d, 0x18, 0x18, 0x1d, 0xd8, 0x47, 0xa8, 0x59, 0xdc, 0x38, 0xc3, 0x35, 0x81, 0x5b, 0x2e,
|
||||
0x44, 0x80, 0x9e, 0xa2, 0xb5, 0x34, 0x13, 0xa9, 0x90, 0x2c, 0x1b, 0xd2, 0x20, 0xc8, 0x98, 0x94,
|
||||
0xad, 0x15, 0x7d, 0x0d, 0x06, 0xab, 0x85, 0xfe, 0xda, 0xc8, 0xdd, 0xf7, 0xe7, 0x53, 0xcf, 0xb9,
|
||||
0x98, 0x7a, 0xce, 0xaf, 0xa9, 0xe7, 0x9c, 0x5d, 0x79, 0xa5, 0x8b, 0x2b, 0xaf, 0xf4, 0xe3, 0xca,
|
||||
0x2b, 0x7d, 0x3a, 0x0c, 0xb9, 0x8a, 0x26, 0x23, 0xbd, 0x33, 0x62, 0xff, 0xa7, 0xcc, 0xd7, 0x33,
|
||||
0x19, 0x9c, 0x12, 0x7f, 0xcc, 0x59, 0xa2, 0x48, 0x98, 0xa5, 0x3e, 0xf1, 0x63, 0x25, 0x59, 0x96,
|
||||
0x73, 0x9f, 0x8d, 0x2a, 0x70, 0x45, 0x0e, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x63, 0x5f, 0x19,
|
||||
0xcc, 0xda, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Block) Marshal() (dAtA []byte, err error) {
|
||||
@@ -754,7 +755,7 @@ func (m *Block) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.LastCommit == nil {
|
||||
m.LastCommit = &v1.Commit{}
|
||||
m.LastCommit = &v2.Commit{}
|
||||
}
|
||||
if err := m.LastCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cmtservice
|
||||
|
||||
import (
|
||||
cmtprototypes "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtprototypes "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package cmtservice
|
||||
import (
|
||||
"context"
|
||||
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/encoding"
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
cmtjson "github.com/cometbft/cometbft/libs/json"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
cmtjson "github.com/cometbft/cometbft/v2/libs/json"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
rpcclient "github.com/cometbft/cometbft/rpc/client"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
rpcclient "github.com/cometbft/cometbft/v2/rpc/client"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
cmt "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
cmt "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
abci "github.com/cometbft/cometbft/abci/types"
|
||||
abci "github.com/cometbft/cometbft/v2/abci/types"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
tmtypes "github.com/cometbft/cometbft/types"
|
||||
rpchttp "github.com/cometbft/cometbft/v2/rpc/client/http"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
tmtypes "github.com/cometbft/cometbft/v2/types"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/cometbft/cometbft/libs/bytes"
|
||||
rpcclient "github.com/cometbft/cometbft/rpc/client"
|
||||
"github.com/cometbft/cometbft/rpc/client/mock"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
"github.com/cometbft/cometbft/v2/libs/bytes"
|
||||
rpcclient "github.com/cometbft/cometbft/v2/rpc/client"
|
||||
"github.com/cometbft/cometbft/v2/rpc/client/mock"
|
||||
coretypes "github.com/cometbft/cometbft/v2/rpc/core/types"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package client
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
||||
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
|
||||
rpchttp "github.com/cometbft/cometbft/v2/rpc/client/http"
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
|
||||
+17
-8
@@ -45,9 +45,9 @@ require (
|
||||
github.com/cockroachdb/pebble v1.1.5 // indirect
|
||||
github.com/cockroachdb/redact v1.1.6 // indirect
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb // indirect
|
||||
github.com/cometbft/cometbft v1.0.1 // indirect
|
||||
github.com/cometbft/cometbft-db v1.0.4 // indirect
|
||||
github.com/cometbft/cometbft/api v1.0.0 // indirect
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-main // indirect
|
||||
github.com/cosmos/btcutil v1.0.5 // indirect
|
||||
github.com/cosmos/cosmos-db v1.1.3 // indirect
|
||||
github.com/cosmos/go-bip39 v1.0.0 // indirect
|
||||
@@ -59,26 +59,26 @@ require (
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
|
||||
github.com/dgraph-io/badger/v4 v4.5.1 // indirect
|
||||
github.com/dgraph-io/badger/v4 v4.6.0 // indirect
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
|
||||
github.com/emicklei/dot v1.8.0 // indirect
|
||||
github.com/ethereum/go-ethereum v1.15.5 // indirect
|
||||
github.com/fatih/color v1.18.0 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
||||
github.com/getsentry/sentry-go v0.33.0 // indirect
|
||||
github.com/go-kit/log v0.2.1 // indirect
|
||||
github.com/go-logfmt/logfmt v0.6.0 // indirect
|
||||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
|
||||
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
|
||||
github.com/gogo/googleapis v1.4.1 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
||||
github.com/golang/protobuf v1.5.4 // indirect
|
||||
github.com/golang/snappy v1.0.0 // indirect
|
||||
github.com/google/btree v1.1.3 // indirect
|
||||
github.com/google/flatbuffers v25.1.24+incompatible // indirect
|
||||
github.com/google/flatbuffers v25.2.10+incompatible // indirect
|
||||
github.com/google/go-cmp v0.7.0 // indirect
|
||||
github.com/google/orderedcode v0.0.1 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
@@ -96,6 +96,7 @@ require (
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
||||
github.com/hashicorp/yamux v0.1.2 // indirect
|
||||
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
|
||||
github.com/holiman/uint256 v1.3.2 // indirect
|
||||
github.com/huandu/skiplist v1.2.1 // indirect
|
||||
github.com/iancoleman/strcase v0.3.0 // indirect
|
||||
github.com/improbable-eng/grpc-web v0.15.0 // indirect
|
||||
@@ -107,6 +108,7 @@ require (
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/lib/pq v1.10.9 // indirect
|
||||
github.com/linxGnu/grocksdb v1.10.1 // indirect
|
||||
github.com/lmittmann/tint v1.0.7 // indirect
|
||||
github.com/manifoldco/promptui v0.9.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
@@ -134,7 +136,7 @@ require (
|
||||
github.com/spf13/cast v1.9.2 // indirect
|
||||
github.com/spf13/viper v1.20.1 // indirect
|
||||
github.com/subosito/gotenv v1.6.0 // indirect
|
||||
github.com/supranational/blst v0.3.13 // indirect
|
||||
github.com/supranational/blst v0.3.14 // indirect
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
|
||||
github.com/tendermint/go-amino v0.16.0 // indirect
|
||||
github.com/tidwall/btree v1.7.0 // indirect
|
||||
@@ -142,7 +144,10 @@ require (
|
||||
github.com/zondax/hid v0.9.2 // indirect
|
||||
github.com/zondax/ledger-go v0.14.3 // indirect
|
||||
go.etcd.io/bbolt v1.4.0 // indirect
|
||||
go.opencensus.io v0.24.0 // indirect
|
||||
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
||||
go.opentelemetry.io/otel v1.34.0 // indirect
|
||||
go.opentelemetry.io/otel/metric v1.34.0 // indirect
|
||||
go.opentelemetry.io/otel/trace v1.34.0 // indirect
|
||||
go.uber.org/mock v0.5.2 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
golang.org/x/arch v0.17.0 // indirect
|
||||
@@ -170,3 +175,7 @@ replace (
|
||||
cosmossdk.io/x/tx => ../../x/tx
|
||||
github.com/cosmos/cosmos-sdk => ../..
|
||||
)
|
||||
|
||||
replace github.com/cometbft/cometbft/v2 => github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469
|
||||
|
||||
replace github.com/cometbft/cometbft/api => github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469
|
||||
|
||||
+19
-28
@@ -26,8 +26,8 @@ github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3
|
||||
github.com/DataDog/zstd v1.5.7 h1:ybO8RBeh29qrxIhCA9E8gKY6xfONU9T6G6aP9DTKfLE=
|
||||
github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
|
||||
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
||||
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
|
||||
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
|
||||
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
||||
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
||||
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
|
||||
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk=
|
||||
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
|
||||
@@ -124,12 +124,12 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g=
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
|
||||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
|
||||
github.com/cometbft/cometbft v1.0.1 h1:JNVgbpL76sA4kXmBnyZ7iPjFAxi6HVp2l+rdT2RXVUs=
|
||||
github.com/cometbft/cometbft v1.0.1/go.mod h1:r9fEwrbU6Oxs11I2bLsfAiG37OMn0Vip0w9arYU0Nw0=
|
||||
github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs=
|
||||
github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA=
|
||||
github.com/cometbft/cometbft/api v1.0.0 h1:gGBwvsJi/gnHJEtwYfjPIGs2AKg/Vfa1ZuKCPD1/Ko4=
|
||||
github.com/cometbft/cometbft/api v1.0.0/go.mod h1:EkQiqVSu/p2ebrZEnB2z6Re7r8XNe//M7ylR0qEwWm0=
|
||||
github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469 h1:m0os1iFLq3XvSUN5csb5ZS0j8nHku97ApUJxibDJHFI=
|
||||
github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8=
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469 h1:0396oj18tVMEWwjnkhaDrB+ESgmRmJ/vsGRsOQGu2CE=
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469/go.mod h1:V5p+X8gSj7t5l4sOAeB8RYAQ20jQe75jZJiKlWrKgC8=
|
||||
github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg=
|
||||
github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM=
|
||||
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
@@ -171,8 +171,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvw
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40=
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I=
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE=
|
||||
github.com/dgraph-io/badger/v4 v4.5.1 h1:7DCIXrQjo1LKmM96YD+hLVJ2EEsyyoWxJfpdd56HLps=
|
||||
github.com/dgraph-io/badger/v4 v4.5.1/go.mod h1:qn3Be0j3TfV4kPbVoK0arXCD1/nr1ftth6sbL5jxdoA=
|
||||
github.com/dgraph-io/badger/v4 v4.6.0 h1:acOwfOOZ4p1dPRnYzvkVm7rUk2Y21TgPVepCy5dJdFQ=
|
||||
github.com/dgraph-io/badger/v4 v4.6.0/go.mod h1:KSJ5VTuZNC3Sd+YhvVjk2nYua9UZnnTr/SkXvdtiPgI=
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0 h1:59LjpOJLNDULHh8MC4UaegN52lC4JnO2dITsie/Pa8I=
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0/go.mod h1:uejeqfYXpUomfse0+lO+13ATz4TypQYLJZzBSAemuB4=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
|
||||
@@ -201,6 +201,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m
|
||||
github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
|
||||
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo=
|
||||
github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||
@@ -232,13 +234,10 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2
|
||||
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
|
||||
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
|
||||
github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
|
||||
github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0=
|
||||
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
|
||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
|
||||
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
@@ -277,9 +276,6 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
|
||||
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
|
||||
@@ -309,14 +305,13 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=
|
||||
github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
|
||||
github.com/google/flatbuffers v25.1.24+incompatible h1:4wPqL3K7GzBd1CwyhSd3usxLKOaJN/AC6puCca6Jm7o=
|
||||
github.com/google/flatbuffers v25.1.24+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/flatbuffers v25.2.10+incompatible h1:F3vclr7C3HpB1k9mxCGRMXq6FdUalZ6H/pNX4FP1v0Q=
|
||||
github.com/google/flatbuffers v25.2.10+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
@@ -397,6 +392,8 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8
|
||||
github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns=
|
||||
github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU=
|
||||
github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
|
||||
github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA=
|
||||
github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c=
|
||||
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
|
||||
@@ -462,6 +459,8 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b
|
||||
github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
|
||||
github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg=
|
||||
github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk=
|
||||
github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y=
|
||||
github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
|
||||
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
|
||||
github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE=
|
||||
github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
|
||||
@@ -690,8 +689,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
||||
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
||||
github.com/supranational/blst v0.3.13 h1:AYeSxdOMacwu7FBmpfloBz5pbFXDmJL33RuwnKtmTjk=
|
||||
github.com/supranational/blst v0.3.13/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
|
||||
github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo=
|
||||
github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs=
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
|
||||
github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
|
||||
@@ -722,8 +721,6 @@ go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mI
|
||||
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
||||
go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
|
||||
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
|
||||
go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY=
|
||||
@@ -785,8 +782,6 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB
|
||||
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
|
||||
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
@@ -809,7 +804,6 @@ golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
|
||||
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
@@ -921,8 +915,6 @@ golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapK
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc=
|
||||
golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@@ -963,7 +955,6 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8
|
||||
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||
google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
|
||||
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
|
||||
|
||||
@@ -17,10 +17,10 @@ service MsgGogoOnly {
|
||||
message MsgRequestGogoOnly {
|
||||
option (cosmos.msg.v1.signer) = "an_address";
|
||||
|
||||
string str = 3;
|
||||
cosmos.base.v1beta1.Coin a_coin = 18 [(gogoproto.nullable) = false];
|
||||
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
string a_validator_address = 33 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
|
||||
string str = 3;
|
||||
cosmos.base.v1beta1.Coin a_coin = 18 [(gogoproto.nullable) = false];
|
||||
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
string a_validator_address = 33 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
|
||||
}
|
||||
|
||||
message MsgResponseGoGoOnly {
|
||||
|
||||
@@ -31,17 +31,17 @@ message MsgRequest {
|
||||
int32 i32 = 7;
|
||||
int64 i64 = 10;
|
||||
bool a_bool = 15;
|
||||
testpbpulsar.Enum an_enum = 16;
|
||||
testpbpulsar.AMessage a_message = 17;
|
||||
testpbpulsar.Enum an_enum = 16;
|
||||
testpbpulsar.AMessage a_message = 17;
|
||||
cosmos.base.v1beta1.Coin a_coin = 18;
|
||||
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
cosmos.base.query.v1beta1.PageRequest page = 20;
|
||||
repeated bool bools = 21;
|
||||
repeated uint32 uints = 22;
|
||||
repeated string strings = 23;
|
||||
repeated testpbpulsar.Enum enums = 24;
|
||||
repeated testpbpulsar.Enum enums = 24;
|
||||
repeated google.protobuf.Duration durations = 25;
|
||||
repeated testpbpulsar.AMessage some_messages = 26;
|
||||
repeated testpbpulsar.AMessage some_messages = 26;
|
||||
|
||||
int32 positional1 = 27;
|
||||
string positional2 = 28;
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
amino "github.com/tendermint/go-amino"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"golang.org/x/crypto/argon2"
|
||||
"golang.org/x/crypto/chacha20poly1305"
|
||||
"golang.org/x/crypto/openpgp/armor" //nolint:staticcheck //TODO: remove this dependency
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ package codec
|
||||
|
||||
import (
|
||||
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/crypto/encoding"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto/encoding"
|
||||
|
||||
"cosmossdk.io/errors"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cosmos/go-bip39"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/99designs/keyring"
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package ed25519
|
||||
This package contains a wrapper around crypto/ed22519 to make it comply with the crypto interfaces.
|
||||
|
||||
This package employs zip215 rules. We use https://github.com/hdevalence/ed25519consensus verification function. Ths is done in order to keep compatibility with Tendermints ed25519 implementation.
|
||||
- https://github.com/cometbft/cometbft/blob/master/crypto/ed25519/ed25519.go#L155
|
||||
- https://github.com/cometbft/cometbft/v2/blob/master/crypto/ed25519/ed25519.go#L155
|
||||
|
||||
This package works with correctly generated signatures. To read more about what this means see https://hdevalence.ca/blog/2020-10-04-its-25519am
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto/tmhash"
|
||||
"github.com/hdevalence/ed25519consensus"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"encoding/base64"
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
tmed25519 "github.com/cometbft/cometbft/crypto/ed25519"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
tmed25519 "github.com/cometbft/cometbft/v2/crypto/ed25519"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package multisig
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/codec/types"
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"io"
|
||||
"math/big"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4"
|
||||
"golang.org/x/crypto/ripemd160" //nolint // using just for backwards compat
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package secp256k1
|
||||
|
||||
import (
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1/internal/secp256k1"
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ package secp256k1
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
|
||||
)
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
tmsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
tmsecp256k1 "github.com/cometbft/cometbft/v2/crypto/secp256k1"
|
||||
"github.com/cosmos/btcutil/base58"
|
||||
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"
|
||||
btcecdsa "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
|
||||
|
||||
@@ -3,7 +3,7 @@ package secp256r1
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package secp256r1
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
|
||||
ecdsa "github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa"
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
"github.com/cosmos/go-bip39"
|
||||
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
cmtcrypto "github.com/cometbft/cometbft/crypto"
|
||||
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
|
||||
proto "github.com/cosmos/gogoproto/proto"
|
||||
)
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ require (
|
||||
github.com/chzyer/readline v1.5.1
|
||||
github.com/cockroachdb/apd/v2 v2.0.2
|
||||
github.com/cockroachdb/errors v1.12.0
|
||||
github.com/cometbft/cometbft v1.0.1
|
||||
github.com/cometbft/cometbft/api v1.0.0
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-main
|
||||
github.com/cosmos/btcutil v1.0.5
|
||||
github.com/cosmos/cosmos-db v1.1.3
|
||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5
|
||||
@@ -105,20 +105,19 @@ require (
|
||||
github.com/danieljoos/wincred v1.1.2 // indirect
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
|
||||
github.com/dgraph-io/badger/v4 v4.5.1 // indirect
|
||||
github.com/dgraph-io/badger/v4 v4.6.0 // indirect
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
|
||||
github.com/emicklei/dot v1.8.0 // indirect
|
||||
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
|
||||
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
|
||||
github.com/ethereum/go-ethereum v1.15.5 // indirect
|
||||
github.com/fatih/color v1.18.0 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
||||
github.com/getsentry/sentry-go v0.33.0 // indirect
|
||||
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
|
||||
github.com/go-kit/log v0.2.1 // indirect
|
||||
github.com/go-logfmt/logfmt v0.6.0 // indirect
|
||||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
|
||||
@@ -128,7 +127,7 @@ require (
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
||||
github.com/golang/snappy v1.0.0 // indirect
|
||||
github.com/google/btree v1.1.3 // indirect
|
||||
github.com/google/flatbuffers v25.1.24+incompatible // indirect
|
||||
github.com/google/flatbuffers v25.2.10+incompatible // indirect
|
||||
github.com/google/orderedcode v0.0.1 // indirect
|
||||
github.com/google/s2a-go v0.1.8 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
@@ -143,6 +142,7 @@ require (
|
||||
github.com/hashicorp/go-version v1.7.0 // indirect
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
||||
github.com/hashicorp/yamux v0.1.2 // indirect
|
||||
github.com/holiman/uint256 v1.3.2 // indirect
|
||||
github.com/iancoleman/strcase v0.3.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||
@@ -153,6 +153,7 @@ require (
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/lib/pq v1.10.9 // indirect
|
||||
github.com/linxGnu/grocksdb v1.10.1 // indirect
|
||||
github.com/lmittmann/tint v1.0.7 // indirect
|
||||
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||
github.com/minio/highwayhash v1.0.3 // indirect
|
||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||
@@ -178,7 +179,7 @@ require (
|
||||
github.com/spf13/afero v1.12.0 // indirect
|
||||
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
|
||||
github.com/subosito/gotenv v1.6.0 // indirect
|
||||
github.com/supranational/blst v0.3.13 // indirect
|
||||
github.com/supranational/blst v0.3.14 // indirect
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
|
||||
github.com/tidwall/btree v1.7.0 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
@@ -205,7 +206,7 @@ require (
|
||||
golang.org/x/sys v0.33.0 // indirect
|
||||
golang.org/x/term v0.32.0 // indirect
|
||||
golang.org/x/text v0.25.0 // indirect
|
||||
golang.org/x/time v0.8.0 // indirect
|
||||
golang.org/x/time v0.9.0 // indirect
|
||||
google.golang.org/api v0.215.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
|
||||
@@ -256,3 +257,7 @@ retract (
|
||||
// do not use
|
||||
v0.43.0
|
||||
)
|
||||
|
||||
replace github.com/cometbft/cometbft/v2 => github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469
|
||||
|
||||
replace github.com/cometbft/cometbft/api => github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469
|
||||
|
||||
@@ -779,12 +779,12 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb h1:3bCgBvB8PbJVMX1ouCcSIxvsqKPYM7gs72o0zC76n9g=
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20250429170803-42689b6311bb/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
|
||||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
|
||||
github.com/cometbft/cometbft v1.0.1 h1:JNVgbpL76sA4kXmBnyZ7iPjFAxi6HVp2l+rdT2RXVUs=
|
||||
github.com/cometbft/cometbft v1.0.1/go.mod h1:r9fEwrbU6Oxs11I2bLsfAiG37OMn0Vip0w9arYU0Nw0=
|
||||
github.com/cometbft/cometbft-db v1.0.4 h1:cezb8yx/ZWcF124wqUtAFjAuDksS1y1yXedvtprUFxs=
|
||||
github.com/cometbft/cometbft-db v1.0.4/go.mod h1:M+BtHAGU2XLrpUxo3Nn1nOCcnVCiLM9yx5OuT0u5SCA=
|
||||
github.com/cometbft/cometbft/api v1.0.0 h1:gGBwvsJi/gnHJEtwYfjPIGs2AKg/Vfa1ZuKCPD1/Ko4=
|
||||
github.com/cometbft/cometbft/api v1.0.0/go.mod h1:EkQiqVSu/p2ebrZEnB2z6Re7r8XNe//M7ylR0qEwWm0=
|
||||
github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469 h1:m0os1iFLq3XvSUN5csb5ZS0j8nHku97ApUJxibDJHFI=
|
||||
github.com/cometbft/cometbft/api v0.0.0-20250604002332-f4d33abd2469/go.mod h1:Ivh6nSCTJPQOyfQo8dgnyu/T88it092sEqSrZSmTQN8=
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469 h1:0396oj18tVMEWwjnkhaDrB+ESgmRmJ/vsGRsOQGu2CE=
|
||||
github.com/cometbft/cometbft/v2 v2.0.0-20250604002332-f4d33abd2469/go.mod h1:V5p+X8gSj7t5l4sOAeB8RYAQ20jQe75jZJiKlWrKgC8=
|
||||
github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg=
|
||||
github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM=
|
||||
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
@@ -828,8 +828,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvw
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40=
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I=
|
||||
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE=
|
||||
github.com/dgraph-io/badger/v4 v4.5.1 h1:7DCIXrQjo1LKmM96YD+hLVJ2EEsyyoWxJfpdd56HLps=
|
||||
github.com/dgraph-io/badger/v4 v4.5.1/go.mod h1:qn3Be0j3TfV4kPbVoK0arXCD1/nr1ftth6sbL5jxdoA=
|
||||
github.com/dgraph-io/badger/v4 v4.6.0 h1:acOwfOOZ4p1dPRnYzvkVm7rUk2Y21TgPVepCy5dJdFQ=
|
||||
github.com/dgraph-io/badger/v4 v4.6.0/go.mod h1:KSJ5VTuZNC3Sd+YhvVjk2nYua9UZnnTr/SkXvdtiPgI=
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0 h1:59LjpOJLNDULHh8MC4UaegN52lC4JnO2dITsie/Pa8I=
|
||||
github.com/dgraph-io/ristretto/v2 v2.1.0/go.mod h1:uejeqfYXpUomfse0+lO+13ATz4TypQYLJZzBSAemuB4=
|
||||
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y=
|
||||
@@ -875,6 +875,8 @@ github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0+
|
||||
github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss=
|
||||
github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8=
|
||||
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
|
||||
github.com/ethereum/go-ethereum v1.15.5 h1:Fo2TbBWC61lWVkFw9tsMoHCNX1ndpuaQBRJ8H6xLUPo=
|
||||
github.com/ethereum/go-ethereum v1.15.5/go.mod h1:1LG2LnMOx2yPRHR/S+xuipXH29vPr6BIH6GElD8N/fo=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||
@@ -919,15 +921,11 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2
|
||||
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
|
||||
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
|
||||
github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
|
||||
github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0=
|
||||
github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U=
|
||||
github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk=
|
||||
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
|
||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
|
||||
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
@@ -953,8 +951,9 @@ github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm
|
||||
github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=
|
||||
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
|
||||
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
|
||||
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||
github.com/goccy/go-json v0.10.4 h1:JSwxQzIqKfmFX1swYPpUThQZp/Ka4wzJdK0LWVytLPM=
|
||||
github.com/goccy/go-json v0.10.4/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
|
||||
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0=
|
||||
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
@@ -1021,8 +1020,8 @@ github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ
|
||||
github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=
|
||||
github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
|
||||
github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/flatbuffers v25.1.24+incompatible h1:4wPqL3K7GzBd1CwyhSd3usxLKOaJN/AC6puCca6Jm7o=
|
||||
github.com/google/flatbuffers v25.1.24+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/flatbuffers v25.2.10+incompatible h1:F3vclr7C3HpB1k9mxCGRMXq6FdUalZ6H/pNX4FP1v0Q=
|
||||
github.com/google/flatbuffers v25.2.10+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
@@ -1173,6 +1172,8 @@ github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8
|
||||
github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns=
|
||||
github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU=
|
||||
github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
|
||||
github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA=
|
||||
github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c=
|
||||
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
|
||||
@@ -1256,6 +1257,8 @@ github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-b
|
||||
github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
|
||||
github.com/linxGnu/grocksdb v1.10.1 h1:YX6gUcKvSC3d0s9DaqgbU+CRkZHzlELgHu1Z/kmtslg=
|
||||
github.com/linxGnu/grocksdb v1.10.1/go.mod h1:C3CNe9UYc9hlEM2pC82AqiGS3LRW537u9LFV4wIZuHk=
|
||||
github.com/lmittmann/tint v1.0.7 h1:D/0OqWZ0YOGZ6AyC+5Y2kD8PBEzBk6rFHVSfOqCkF9Y=
|
||||
github.com/lmittmann/tint v1.0.7/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
|
||||
github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
|
||||
github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
|
||||
github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o=
|
||||
@@ -1514,8 +1517,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
||||
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
||||
github.com/supranational/blst v0.3.13 h1:AYeSxdOMacwu7FBmpfloBz5pbFXDmJL33RuwnKtmTjk=
|
||||
github.com/supranational/blst v0.3.13/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
|
||||
github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo=
|
||||
github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
|
||||
github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
|
||||
@@ -1981,8 +1984,8 @@ golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxb
|
||||
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg=
|
||||
golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
|
||||
golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=
|
||||
golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
|
||||
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ func (r *Rand) Bytes(n int) []byte {
|
||||
|
||||
// NOTE: This relies on the os's random number generator.
|
||||
// For real security, we should salt that with some seed.
|
||||
// See github.com/cometbft/cometbft/crypto for a more secure reader.
|
||||
// See github.com/cometbft/cometbft/v2/crypto for a more secure reader.
|
||||
func cRandBytes(numBytes int) []byte {
|
||||
b := make([]byte, numBytes)
|
||||
_, err := crand.Read(b)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.abci.v1;
|
||||
package cometbft.abci.v2;
|
||||
|
||||
import "cometbft/abci/v1/types.proto";
|
||||
import "cometbft/abci/v2/types.proto";
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v2";
|
||||
|
||||
// ABCIService is a service for an ABCI application.
|
||||
service ABCIService {
|
||||
@@ -1,13 +1,14 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.abci.v1;
|
||||
package cometbft.abci.v2;
|
||||
|
||||
import "cometbft/crypto/v1/proof.proto";
|
||||
import "cometbft/types/v1/params.proto";
|
||||
import "cometbft/types/v1/validator.proto";
|
||||
import "cometbft/types/v2/params.proto";
|
||||
import "cometbft/types/v2/validator.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/abci/v2";
|
||||
|
||||
// ----------------------------------------
|
||||
// Request types
|
||||
@@ -56,7 +57,7 @@ message InfoRequest {
|
||||
message InitChainRequest {
|
||||
google.protobuf.Timestamp time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||
string chain_id = 2;
|
||||
cometbft.types.v1.ConsensusParams consensus_params = 3;
|
||||
cometbft.types.v2.ConsensusParams consensus_params = 3;
|
||||
repeated ValidatorUpdate validators = 4 [(gogoproto.nullable) = false];
|
||||
bytes app_state_bytes = 5;
|
||||
int64 initial_height = 6;
|
||||
@@ -169,13 +170,18 @@ message ExtendVoteRequest {
|
||||
|
||||
// VerifyVoteExtensionRequest is a request for the application to verify a vote extension
|
||||
// produced by a different validator.
|
||||
// The request contains two vote extension fields: one that is replay-protected ('vote_extension')
|
||||
// and one that is not ('non_rp_vote_extension').
|
||||
message VerifyVoteExtensionRequest {
|
||||
// the hash of the block that this received vote corresponds to
|
||||
bytes hash = 1;
|
||||
// the validator that signed the vote extension
|
||||
bytes validator_address = 2;
|
||||
int64 height = 3;
|
||||
bytes vote_extension = 4;
|
||||
// replay-protected vote extension
|
||||
bytes vote_extension = 4;
|
||||
// non-replay-protected vote extension
|
||||
bytes non_rp_vote_extension = 5;
|
||||
}
|
||||
|
||||
// FinalizeBlockRequest is a request to finalize the block.
|
||||
@@ -244,12 +250,15 @@ message InfoResponse {
|
||||
|
||||
int64 last_block_height = 4;
|
||||
bytes last_block_app_hash = 5;
|
||||
|
||||
map<string, uint32> lane_priorities = 6;
|
||||
string default_lane = 7;
|
||||
}
|
||||
|
||||
// InitChainResponse contains the ABCI application's hash and updates to the
|
||||
// validator set and/or the consensus params, if any.
|
||||
message InitChainResponse {
|
||||
cometbft.types.v1.ConsensusParams consensus_params = 1;
|
||||
cometbft.types.v2.ConsensusParams consensus_params = 1;
|
||||
repeated ValidatorUpdate validators = 2 [(gogoproto.nullable) = false];
|
||||
bytes app_hash = 3;
|
||||
}
|
||||
@@ -286,6 +295,8 @@ message CheckTxResponse {
|
||||
// removed).
|
||||
reserved 9 to 11;
|
||||
reserved "sender", "priority", "mempool_error";
|
||||
|
||||
string lane_id = 12;
|
||||
}
|
||||
|
||||
// CommitResponse indicates how much blocks should CometBFT retain.
|
||||
@@ -378,8 +389,11 @@ enum ProcessProposalStatus {
|
||||
|
||||
// ExtendVoteResponse contains the vote extension that the application would like to
|
||||
// attach to its next precommit vote.
|
||||
// Information in `vote_extension` will be replay-protected.
|
||||
// Information in `non_rp_extension` will not be replay-protected.
|
||||
message ExtendVoteResponse {
|
||||
bytes vote_extension = 1;
|
||||
bytes vote_extension = 1; // this extension's signature is replay-protected
|
||||
bytes non_rp_extension = 2; // this extension's signature is _not_ replay-protected
|
||||
}
|
||||
|
||||
// VerifyVoteExtensionResponse indicates the ABCI application's decision
|
||||
@@ -416,11 +430,14 @@ message FinalizeBlockResponse {
|
||||
// a list of updates to the validator set. These will reflect the validator set at current height + 2.
|
||||
repeated ValidatorUpdate validator_updates = 3 [(gogoproto.nullable) = false];
|
||||
// updates to the consensus params, if any.
|
||||
cometbft.types.v1.ConsensusParams consensus_param_updates = 4;
|
||||
cometbft.types.v2.ConsensusParams consensus_param_updates = 4;
|
||||
// app_hash is the hash of the applications' state which is used to confirm
|
||||
// that execution of the transactions was deterministic.
|
||||
// It is up to the application to decide which algorithm to use.
|
||||
bytes app_hash = 5;
|
||||
// delay between the time when this block is committed and the next height is started.
|
||||
// previously `timeout_commit` in config.toml
|
||||
google.protobuf.Duration next_block_delay = 6 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
|
||||
}
|
||||
|
||||
// ----------------------------------------
|
||||
@@ -507,7 +524,7 @@ message ValidatorUpdate {
|
||||
// VoteInfo contains the information about the vote.
|
||||
message VoteInfo {
|
||||
Validator validator = 1 [(gogoproto.nullable) = false];
|
||||
cometbft.types.v1.BlockIDFlag block_id_flag = 3;
|
||||
cometbft.types.v2.BlockIDFlag block_id_flag = 3;
|
||||
|
||||
reserved 2; // signed_last_block
|
||||
}
|
||||
@@ -521,7 +538,11 @@ message ExtendedVoteInfo {
|
||||
// Vote extension signature created by CometBFT
|
||||
bytes extension_signature = 4;
|
||||
// block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all
|
||||
cometbft.types.v1.BlockIDFlag block_id_flag = 5;
|
||||
cometbft.types.v2.BlockIDFlag block_id_flag = 5;
|
||||
// Non-deterministic non-replay-protected extension provided by the sending validator's application.
|
||||
bytes non_rp_vote_extension = 6;
|
||||
// Signature on non-replay-protected extension created by CometBFT
|
||||
bytes non_rp_extension_signature = 7;
|
||||
|
||||
reserved 2; // signed_last_block
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "cometbft/types/v1/types.proto";
|
||||
import "cometbft/types/v1/evidence.proto";
|
||||
import "cometbft/types/v2/types.proto";
|
||||
import "cometbft/types/v2/evidence.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
// Block defines the structure of a block in the CometBFT blockchain.
|
||||
@@ -1,10 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cometbft/types/v1/types.proto";
|
||||
import "cometbft/types/v2/types.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
// CanonicalBlockID is a canonical representation of a BlockID, which gets
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
// EventDataRoundState is emitted with each new round step.
|
||||
message EventDataRoundState {
|
||||
@@ -1,10 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "cometbft/types/v1/types.proto";
|
||||
import "cometbft/types/v1/validator.proto";
|
||||
import "cometbft/types/v2/types.proto";
|
||||
import "cometbft/types/v2/validator.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
@@ -1,10 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "cometbft/crypto/v1/proof.proto";
|
||||
import "cometbft/types/v1/validator.proto";
|
||||
import "cometbft/types/v2/validator.proto";
|
||||
import "cometbft/version/v1/types.proto";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
@@ -81,6 +81,8 @@ message Data {
|
||||
|
||||
// Vote represents a prevote or precommit vote from validators for
|
||||
// consensus.
|
||||
// For precommit messages, the message contains vote extensions (replay-protected and non-replay-protected)
|
||||
// and their signatures.
|
||||
message Vote {
|
||||
SignedMsgType type = 1;
|
||||
int64 height = 2;
|
||||
@@ -99,6 +101,13 @@ message Vote {
|
||||
// consensus for the associated block.
|
||||
// Only valid for precommit messages.
|
||||
bytes extension_signature = 10;
|
||||
// Non-Replay-Protected (NRP) vote extension provided by the application.
|
||||
// Only valid for precommit messages.
|
||||
bytes non_rp_extension = 11;
|
||||
// Non-Replay-Protected (NRP) vote extension signature by the validator if
|
||||
// they participated in consensus for the associated block.
|
||||
// Only valid for precommit messages.
|
||||
bytes non_rp_extension_signature = 12;
|
||||
}
|
||||
|
||||
// Commit contains the evidence that a block was committed by a set of validators.
|
||||
@@ -126,7 +135,10 @@ message ExtendedCommit {
|
||||
}
|
||||
|
||||
// ExtendedCommitSig retains all the same fields as CommitSig but adds vote
|
||||
// extension-related fields. We use two signatures to ensure backwards compatibility.
|
||||
// extension-related fields, where:
|
||||
// 'extension' and 'extension_signature' are used for replay-protected vote extensions.
|
||||
// 'non_rp_extension' and 'non_rp_extension_signature' are used for non-replay-protected vote extensions.
|
||||
// We use two signatures to ensure backwards compatibility.
|
||||
// That is the digest of the original signature is still the same in prior versions
|
||||
message ExtendedCommitSig {
|
||||
BlockIDFlag block_id_flag = 1;
|
||||
@@ -137,6 +149,10 @@ message ExtendedCommitSig {
|
||||
bytes extension = 5;
|
||||
// Vote extension signature
|
||||
bytes extension_signature = 6;
|
||||
// Non-Replay-Protected vote extension data
|
||||
bytes non_rp_extension = 7;
|
||||
// Non-Replay-Protected vote extension signature
|
||||
bytes non_rp_extension_signature = 8;
|
||||
}
|
||||
|
||||
// Block proposal.
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package cometbft.types.v1;
|
||||
package cometbft.types.v2;
|
||||
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v1";
|
||||
option go_package = "github.com/cometbft/cometbft/api/cometbft/types/v2";
|
||||
|
||||
import "cometbft/crypto/v1/keys.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user