Skip to content

Commit

Permalink
init proto
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Sep 17, 2024
1 parent 37ef017 commit 594d6b7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions proto/connect/marketmap/v2/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ service Msg {
// Specifically if a market does not exist it will be created, otherwise it
// will be updated. The response will be a map between ticker -> updated.
rpc UpsertMarkets(MsgUpsertMarkets) returns (MsgUpsertMarketsResponse);

// RemoveMarkets removes the given markets from the marketmap if:
// - they exist in the map
// - they are disabled
rpc RemoveMarkets(MsgRemoveMarkets) returns (MsgRemoveMarketsResponse);
}

// MsgUpsertMarkets defines a message carrying a payload for performing market
Expand Down Expand Up @@ -134,3 +139,20 @@ message MsgRemoveMarketAuthorities {
// MsgRemoveMarketAuthoritiesResponse defines the
// Msg/RemoveMarketAuthoritiesResponse response type.
message MsgRemoveMarketAuthoritiesResponse {}

// MsgRemoveMarkets defines the Msg/RemoveMarkets request type. It contains the new markets to be removed from the
// market map.
message MsgRemoveMarkets {
option (cosmos.msg.v1.signer) = "authority";

// Authority is the signer of this transaction. This authority must be
// authorized by the module to execute the message.
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];

// Markets is the list of markets to remove.
repeated string markets = 2;
}

// MsgRemoveMarketsResponse defines the
// Msg/MsgRemoveMarketsResponse response type.
message MsgRemoveMarketsResponse {}

0 comments on commit 594d6b7

Please sign in to comment.