-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove duplicate proto files for the same proto file (backport #…
…21648) (#21709) Co-authored-by: Marko <[email protected]> Co-authored-by: marbar3778 <[email protected]>
- Loading branch information
1 parent
7a78068
commit 869eb8f
Showing
15 changed files
with
156 additions
and
8,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package cmtservice | ||
|
||
import ( | ||
"context" | ||
|
||
rpcclient "github.com/cometbft/cometbft/rpc/client" | ||
coretypes "github.com/cometbft/cometbft/rpc/core/types" | ||
) | ||
|
||
// CometRPC defines the interface of a CometBFT RPC client needed for | ||
// queries and transaction handling. | ||
type CometRPC interface { | ||
rpcclient.ABCIClient | ||
|
||
Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error) | ||
Status(context.Context) (*coretypes.ResultStatus, error) | ||
Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) | ||
BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) | ||
BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) | ||
BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) | ||
Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) | ||
Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) | ||
TxSearch( | ||
ctx context.Context, | ||
query string, | ||
prove bool, | ||
page, perPage *int, | ||
orderBy string, | ||
) (*coretypes.ResultTxSearch, error) | ||
BlockSearch( | ||
ctx context.Context, | ||
query string, | ||
page, perPage *int, | ||
orderBy string, | ||
) (*coretypes.ResultBlockSearch, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.