Skip to content

Commit

Permalink
remove the unnecessary code related to operator from the delegation p…
Browse files Browse the repository at this point in the history
…roto file
  • Loading branch information
TimmyExogenous committed Mar 20, 2024
1 parent e8f6c8c commit 4596ca6
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 1,488 deletions.
7 changes: 0 additions & 7 deletions proto/exocore/delegation/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ message SingleDelegationInfoReq {
string asset_id = 3 [(gogoproto.customname) = "AssetID"];
}

// QueryOperatorInfoReq is the request to obtain the operator information.
message QueryOperatorInfoReq {
// operator_addr is the operator address.
string operator_addr = 1
[(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// Query is the service API for the delegation module.
service Query {

Check failure on line 70 in proto/exocore/delegation/v1/query.proto

View workflow job for this annotation

GitHub Actions / break-check

Previously present RPC "QueryOperatorInfo" on service "Query" was deleted.
// DelegationInfo queries the delegation information for {stakerID, assetID}.
Expand Down
43 changes: 0 additions & 43 deletions proto/exocore/delegation/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,6 @@ message DelegatedSingleAssetInfo {
map<string, ValueField> per_operator_amounts = 3;
}

// ClientChainEarningAddrList is the list of client chain earning addresses.
message ClientChainEarningAddrList {
// earning_info_list is the contents of ClientChainEarningAddrList.
repeated ClientChainEarningAddrInfo earning_info_list = 1;
}

// ClientChainEarningAddrInfo is the client chain earning address info.
message ClientChainEarningAddrInfo {
// lz_client_chain_id is the layer0 client chain id.
uint64 lz_client_chain_id = 1 [(gogoproto.customname) = "LzClientChainID"];
// client_chain_earning_addr is the client chain earning address.
string client_chain_earning_addr = 2;
}

// OperatorInfo is the operator info.
message OperatorInfo {
// earnings_addr is the earnings address.
string earnings_addr = 1;
// approve_addr is the approve address.
string approve_addr = 2;
// operator_meta_info is the operator meta info.
string operator_meta_info = 3;
// client_chain_earning_addr_list is the client chain earning address list.
ClientChainEarningAddrList client_chain_earnings_addr = 4;
}

// RegisterOperatorReq is the request to register a new operator.
message RegisterOperatorReq {
option (cosmos.msg.v1.signer) = "FromAddress";
option (amino.name) = "cosmos-sdk/OperatorInfo";
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// from_address is the address of the operator (sdk.AccAddress).
string from_address = 1
[(cosmos_proto.scalar) = "cosmos.AddressString"];
// info is the operator info.
OperatorInfo info = 2;
}

// DelegationApproveInfo is the delegation approve info.
message DelegationApproveInfo {
// signature of the delegation approve info.
Expand All @@ -83,9 +43,6 @@ message DelegationApproveInfo {
string salt = 2;
}

// RegisterOperatorResponse is the response to a register operator request.
message RegisterOperatorResponse {}

// DelegationIncOrDecInfo is the delegation increase or decrease info.
message DelegationIncOrDecInfo {
option (cosmos.msg.v1.signer) = "fromAddress";
Expand Down
257 changes: 42 additions & 215 deletions x/delegation/types/query.pb.go

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

Loading

0 comments on commit 4596ca6

Please sign in to comment.