Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: distinguish inturn relayers #352

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 184 additions & 58 deletions api/cosmos/oracle/v1/query.pulsar.go

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions baseapp/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)

var (
ParamStoreKey = []byte("paramstore")
)
var ParamStoreKey = []byte("paramstore")

func defaultLogger() log.Logger {
if testing.Verbose() {
Expand Down
2 changes: 1 addition & 1 deletion crypto/ledger/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func checkAminoJSON(t *testing.T, src interface{}, dst interface{}, isNil bool)
require.Nil(t, err, "%+v", err)
}

//nolint: govet
// nolint: govet
func ExamplePrintRegisteredTypes() {
_ = cdc.PrintTypes(os.Stdout)
// | Type | Name | Prefix | Length | Notes |
Expand Down
1 change: 0 additions & 1 deletion math/uint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,4 @@ func (s *uintTestSuite) TestUintBigEndian() {
u2 = u2.SetBytes(u1b)

s.Require().Equal(u1, u2)

}
1 change: 1 addition & 0 deletions orm/internal/testpb/bank.cosmos_orm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions orm/internal/testpb/test_schema.cosmos_orm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/cosmos/auth/v1beta1/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ message BaseAccount {
option (gogoproto.equal) = false;
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI";

string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
uint64 account_number = 3;
uint64 sequence = 4;
}
Expand Down
1 change: 0 additions & 1 deletion proto/cosmos/bank/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ message QuerySpendableBalanceByDenomResponse {
cosmos.base.v1beta1.Coin balance = 1;
}


// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
// method.
message QueryTotalSupplyRequest {
Expand Down
14 changes: 7 additions & 7 deletions proto/cosmos/base/abci/v1beta1/abci.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "tendermint/abci/types.proto";
import "google/protobuf/any.proto";

option go_package = "github.com/cosmos/cosmos-sdk/types";
option go_package = "github.com/cosmos/cosmos-sdk/types";
option (gogoproto.goproto_stringer_all) = false;

// TxResponse defines a structure containing relevant tx data and metadata. The
Expand Down Expand Up @@ -53,7 +53,7 @@ message ABCIMessageLog {
option (gogoproto.stringer) = true;

uint32 msg_index = 1 [(gogoproto.jsontag) = "msg_index"];
string log = 2;
string log = 2;

// Events contains a slice of Event objects that were emitted during some
// execution.
Expand All @@ -65,14 +65,14 @@ message ABCIMessageLog {
message StringEvent {
option (gogoproto.stringer) = true;

string type = 1;
string type = 1;
repeated Attribute attributes = 2 [(gogoproto.nullable) = false];
}

// Attribute defines an attribute wrapper where the key and value are
// strings instead of raw bytes.
message Attribute {
string key = 1;
string key = 1;
string value = 2;
}

Expand Down Expand Up @@ -118,17 +118,17 @@ message Result {
// successfully simulated.
message SimulationResponse {
GasInfo gas_info = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
Result result = 2;
Result result = 2;
}

// MsgData defines the data returned in a Result object during message
// execution.
message MsgData {
option deprecated = true;
option deprecated = true;
option (gogoproto.stringer) = true;

string msg_type = 1;
bytes data = 2;
bytes data = 2;
}

// TxMsgData defines a list of MsgData. A transaction will have a MsgData object
Expand Down
3 changes: 1 addition & 2 deletions proto/cosmos/base/store/v1beta1/commit_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/store/types";
message CommitInfo {
int64 version = 1;
repeated StoreInfo store_infos = 2 [(gogoproto.nullable) = false];
google.protobuf.Timestamp timestamp = 3
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
google.protobuf.Timestamp timestamp = 3 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
}

// StoreInfo defines store-specific commit information. It contains a reference
Expand Down
22 changes: 11 additions & 11 deletions proto/cosmos/base/store/v1beta1/listening.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ message StoreKVPair {
// BlockMetadata contains all the abci event data of a block
// the file streamer dump them into files together with the state changes.
message BlockMetadata {
// DeliverTx encapulate deliver tx request and response.
message DeliverTx {
tendermint.abci.RequestDeliverTx request = 1;
tendermint.abci.ResponseDeliverTx response = 2;
}
tendermint.abci.RequestBeginBlock request_begin_block = 1;
tendermint.abci.ResponseBeginBlock response_begin_block = 2;
repeated DeliverTx deliver_txs = 3;
tendermint.abci.RequestEndBlock request_end_block = 4;
tendermint.abci.ResponseEndBlock response_end_block = 5;
tendermint.abci.ResponseCommit response_commit = 6;
// DeliverTx encapulate deliver tx request and response.
message DeliverTx {
tendermint.abci.RequestDeliverTx request = 1;
tendermint.abci.ResponseDeliverTx response = 2;
}
tendermint.abci.RequestBeginBlock request_begin_block = 1;
tendermint.abci.ResponseBeginBlock response_begin_block = 2;
repeated DeliverTx deliver_txs = 3;
tendermint.abci.RequestEndBlock request_end_block = 4;
tendermint.abci.ResponseEndBlock response_end_block = 5;
tendermint.abci.ResponseCommit response_commit = 6;
}
6 changes: 3 additions & 3 deletions proto/cosmos/crosschain/v1/crosschain.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/crosschain/types";

// Params holds parameters for the cross chain module.
message Params {
option (amino.name) = "cosmos-sdk/x/crosschain/Params";
option (amino.name) = "cosmos-sdk/x/crosschain/Params";

// initial balance to mint for crosschain module when the chain starts
string init_module_balance = 1 [
(cosmos_proto.scalar) = "cosmos.Int",
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
(gogoproto.nullable) = false
];
}

Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/crosschain/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ message QueryCrossChainPackageRequest {
// channel id of the cross chain package
uint32 channel_id = 2;
// sequence of the cross chain package
uint64 sequence = 3;
uint64 sequence = 3;
}

// QueryCrossChainPackageResponse is the response type for the Query/CrossChainPackage RPC method.
Expand Down
4 changes: 3 additions & 1 deletion proto/cosmos/crypto/eth/ethsecp256k1/keys.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ message PubKey {

// PrivKey defines a type alias for an ecdsa.PrivateKey that implements
// Tendermint's PrivateKey interface.
message PrivKey { bytes key = 1; }
message PrivKey {
bytes key = 1;
}
4 changes: 2 additions & 2 deletions proto/cosmos/distribution/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ message MsgCommunityPoolSpend {
option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend";

// authority is the address that controls the module (defaults to x/gov unless overwritten).
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string recipient = 2;
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string recipient = 2;
repeated cosmos.base.v1beta1.Coin amount = 3 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
Expand Down
8 changes: 4 additions & 4 deletions proto/cosmos/evidence/v1beta1/evidence.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ message Equivocation {
option (gogoproto.equal) = false;

// height is the equivocation height.
int64 height = 1;
int64 height = 1;

// time is the equivocation time.
google.protobuf.Timestamp time = 2
google.protobuf.Timestamp time = 2
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true];

// power is the equivocation validator power.
int64 power = 3;
int64 power = 3;

// consensus_address is the equivocation validator consensus address.
string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmos/evidence/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ message MsgSubmitEvidence {
option (gogoproto.goproto_getters) = false;

// submitter is the signer account address of evidence.
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// evidence defines the evidence of misbehavior.
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "cosmos.evidence.v1beta1.Evidence"];
}
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmos/gashub/v1beta1/gashub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/gashub/types";

// Params defines the parameters for the gashub module.
message Params {
option (amino.name) = "cosmos-sdk/x/gashub/Params";
option (amino.name) = "cosmos-sdk/x/gashub/Params";
option (gogoproto.equal) = true;

// max_tx_size is the maximum size of a transaction's bytes.
Expand Down Expand Up @@ -46,7 +46,7 @@ message MsgGasParams {
option (gogoproto.equal) = true;

// fixed_gas is the base gas cost for a dynamic type msg
uint64 fixed_gas = 1 [(gogoproto.customname) = "FixedGas"];
uint64 fixed_gas = 1 [(gogoproto.customname) = "FixedGas"];
// gas_per_item is the gas cost for a dynamic type msg per item
uint64 gas_per_item = 2 [(gogoproto.customname) = "GasPerItem"];
}
Expand Down
1 change: 0 additions & 1 deletion proto/cosmos/gashub/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ service Query {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmos/gashub/v1beta1/msg_gas_params";
}

}

// QueryParamsRequest defines the request type for querying x/gashub parameters.
Expand Down
3 changes: 2 additions & 1 deletion proto/cosmos/gashub/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ service Msg {
// on any number of msg types. Only the entries to add or update should be
// included. Entries that already exist in the store, but that aren't
// included in this message, will be left unchanged.
rpc SetMsgGasParams(MsgSetMsgGasParams) returns (MsgSetMsgGasParamsResponse);}
rpc SetMsgGasParams(MsgSetMsgGasParams) returns (MsgSetMsgGasParamsResponse);
}

// MsgUpdateParams is the Msg/UpdateParams request type.
message MsgUpdateParams {
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/gov/module/v1/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ message Module {
go_import: "github.com/cosmos/cosmos-sdk/x/gov"
};

// max_metadata_len defines the maximum proposal metadata length.
// max_metadata_len defines the maximum proposal metadata length.
// Defaults to 255 if not explicitly set.
uint64 max_metadata_len = 1;

Expand Down
Loading
Loading