From fd5b5437188fd80865dd2fea55cc615eb275ebf8 Mon Sep 17 00:00:00 2001 From: Collin Brittain Date: Tue, 12 Dec 2023 21:37:51 -0600 Subject: [PATCH] Only added traits to types that need them --- prost_build/src/main.rs | 2 +- somm_proto/src/prost/auction.v1.rs | 48 ++++----- somm_proto/src/prost/axelarcork.v1.rs | 126 +++++++++++----------- somm_proto/src/prost/cellarfees.v1.rs | 28 ++--- somm_proto/src/prost/cork.v2.rs | 58 +++++----- somm_proto/src/prost/incentives.v1.rs | 12 +-- somm_proto/src/prost/pubsub.v1.rs | 150 +++++++++++--------------- 7 files changed, 200 insertions(+), 224 deletions(-) diff --git a/prost_build/src/main.rs b/prost_build/src/main.rs index 84ab75ff..dd7156cf 100644 --- a/prost_build/src/main.rs +++ b/prost_build/src/main.rs @@ -100,7 +100,7 @@ fn compile_protos(out_dir: &Path, tmp_dir: &Path) { let mut config = prost_build::Config::default(); config.out_dir(tmp_dir); config - .type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]") + .type_attribute("ScheduledCorkProposal", "#[derive(serde::Deserialize, serde::Serialize)]") .compile_protos(&protos, &proto_include_paths) .unwrap(); diff --git a/somm_proto/src/prost/auction.v1.rs b/somm_proto/src/prost/auction.v1.rs index 03835f2b..d9d9c593 100644 --- a/somm_proto/src/prost/auction.v1.rs +++ b/somm_proto/src/prost/auction.v1.rs @@ -1,4 +1,4 @@ -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Auction { #[prost(uint32, tag = "1")] pub id: u32, @@ -26,7 +26,7 @@ pub struct Auction { #[prost(string, tag = "12")] pub proceeds_module_account: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Bid { #[prost(uint64, tag = "1")] pub id: u64, @@ -50,7 +50,7 @@ pub struct Bid { pub block_height: u64, } /// USD price is the value for one non-fractional token (smallest unit of the token * 10^exponent) -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct TokenPrice { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, @@ -61,7 +61,7 @@ pub struct TokenPrice { #[prost(uint64, tag = "4")] pub last_updated_block: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ProposedTokenPrice { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, @@ -70,7 +70,7 @@ pub struct ProposedTokenPrice { #[prost(string, tag = "3")] pub usd_price: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitBidRequest { #[prost(uint32, tag = "1")] pub auction_id: u32, @@ -82,7 +82,7 @@ pub struct MsgSubmitBidRequest { pub sale_token_minimum_amount: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitBidResponse { #[prost(message, optional, tag = "1")] pub bid: ::core::option::Option, @@ -148,7 +148,7 @@ pub mod msg_client { } } } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, @@ -163,7 +163,7 @@ pub struct GenesisState { #[prost(uint64, tag = "6")] pub last_bid_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(uint64, tag = "1")] pub price_max_block_age: u64, @@ -176,46 +176,46 @@ pub struct Params { #[prost(string, tag = "5")] pub auction_price_decrease_acceleration_rate: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryActiveAuctionRequest { #[prost(uint32, tag = "1")] pub auction_id: u32, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryActiveAuctionResponse { #[prost(message, optional, tag = "1")] pub auction: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEndedAuctionRequest { #[prost(uint32, tag = "1")] pub auction_id: u32, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEndedAuctionResponse { #[prost(message, optional, tag = "1")] pub auction: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryActiveAuctionsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryActiveAuctionsResponse { #[prost(message, repeated, tag = "1")] pub auctions: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEndedAuctionsRequest { #[prost(message, optional, tag = "1")] pub pagination: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEndedAuctionsResponse { #[prost(message, repeated, tag = "1")] pub auctions: ::prost::alloc::vec::Vec, @@ -223,26 +223,26 @@ pub struct QueryEndedAuctionsResponse { pub pagination: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBidRequest { #[prost(uint64, tag = "1")] pub bid_id: u64, #[prost(uint32, tag = "2")] pub auction_id: u32, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBidResponse { #[prost(message, optional, tag = "1")] pub bid: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBidsByAuctionRequest { #[prost(uint32, tag = "1")] pub auction_id: u32, #[prost(message, optional, tag = "2")] pub pagination: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBidsByAuctionResponse { #[prost(message, repeated, tag = "1")] pub bids: ::prost::alloc::vec::Vec, @@ -396,7 +396,7 @@ pub mod query_client { } } } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SetTokenPricesProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -405,7 +405,7 @@ pub struct SetTokenPricesProposal { #[prost(message, repeated, tag = "3")] pub token_prices: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SetTokenPricesProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, diff --git a/somm_proto/src/prost/axelarcork.v1.rs b/somm_proto/src/prost/axelarcork.v1.rs index 1417838a..2d2370e1 100644 --- a/somm_proto/src/prost/axelarcork.v1.rs +++ b/somm_proto/src/prost/axelarcork.v1.rs @@ -1,4 +1,4 @@ -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCork { /// call body containing the ABI encoded bytes to send to the contract #[prost(bytes = "vec", tag = "1")] @@ -14,7 +14,7 @@ pub struct AxelarCork { #[prost(uint64, tag = "4")] pub deadline: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ScheduledAxelarCork { #[prost(message, optional, tag = "1")] pub cork: ::core::option::Option, @@ -25,12 +25,12 @@ pub struct ScheduledAxelarCork { #[prost(string, tag = "4")] pub id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ScheduledAxelarCorks { #[prost(message, repeated, tag = "1")] pub scheduled_corks: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCorkResult { #[prost(message, optional, tag = "1")] pub cork: ::core::option::Option, @@ -41,19 +41,19 @@ pub struct AxelarCorkResult { #[prost(string, tag = "4")] pub approval_percentage: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCorkResults { #[prost(message, repeated, tag = "1")] pub cork_results: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CellarIdSet { #[prost(message, optional, tag = "1")] pub chain: ::core::option::Option, #[prost(string, repeated, tag = "2")] pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainConfiguration { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, @@ -62,13 +62,13 @@ pub struct ChainConfiguration { #[prost(string, tag = "3")] pub proxy_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainConfigurations { #[prost(message, repeated, tag = "1")] pub configurations: ::prost::alloc::vec::Vec, } /// Used to enforce strictly newer call ordering per contract -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarContractCallNonce { #[prost(uint64, tag = "1")] pub chain_id: u64, @@ -79,7 +79,7 @@ pub struct AxelarContractCallNonce { } /// Represents a proxy contract upgrade approved by governance with a delay in /// execution in case of an error. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarUpgradeData { #[prost(uint64, tag = "1")] pub chain_id: u64, @@ -89,7 +89,7 @@ pub struct AxelarUpgradeData { pub executable_height_threshold: i64, } /// MsgScheduleCorkRequest - sdk.Msg for scheduling a cork request for on or after a specific block height -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgScheduleAxelarCorkRequest { /// the scheduled cork #[prost(message, optional, tag = "1")] @@ -104,13 +104,13 @@ pub struct MsgScheduleAxelarCorkRequest { #[prost(string, tag = "4")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgScheduleAxelarCorkResponse { /// cork ID #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRelayAxelarCorkRequest { #[prost(string, tag = "1")] pub signer: ::prost::alloc::string::String, @@ -123,9 +123,9 @@ pub struct MsgRelayAxelarCorkRequest { #[prost(string, tag = "5")] pub target_contract_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRelayAxelarCorkResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRelayAxelarProxyUpgradeRequest { #[prost(string, tag = "1")] pub signer: ::prost::alloc::string::String, @@ -136,9 +136,9 @@ pub struct MsgRelayAxelarProxyUpgradeRequest { #[prost(uint64, tag = "4")] pub chain_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRelayAxelarProxyUpgradeResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBumpAxelarCorkGasRequest { #[prost(string, tag = "1")] pub signer: ::prost::alloc::string::String, @@ -147,9 +147,9 @@ pub struct MsgBumpAxelarCorkGasRequest { #[prost(string, tag = "3")] pub message_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBumpAxelarCorkGasResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelAxelarCorkRequest { #[prost(string, tag = "1")] pub signer: ::prost::alloc::string::String, @@ -158,7 +158,7 @@ pub struct MsgCancelAxelarCorkRequest { #[prost(string, tag = "3")] pub target_contract_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelAxelarCorkResponse {} #[doc = r" Generated client implementations."] pub mod msg_client { @@ -266,7 +266,7 @@ pub mod msg_client { } } /// GenesisState - all cork state that must be provided at genesis -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, @@ -283,7 +283,7 @@ pub struct GenesisState { #[prost(message, repeated, tag = "7")] pub axelar_upgrade_data: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(bool, tag = "1")] pub enabled: bool, @@ -301,62 +301,62 @@ pub struct Params { pub cork_timeout_blocks: u64, } /// QueryParamsRequest is the request type for the Query/Params gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsRequest is the response type for the Query/Params gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// allocation parameters #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryCellarIDs is the request type for Query/QueryCellarIDs gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsRequest {} /// QueryCellarIDsResponse is the response type for Query/QueryCellarIDs gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsResponse { #[prost(message, repeated, tag = "1")] pub cellar_ids: ::prost::alloc::vec::Vec, } /// QueryCellarIDsByChainIDRequest is the request type for Query/QueryCellarIDsByChainID gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsByChainIdRequest { #[prost(uint64, tag = "1")] pub chain_id: u64, } /// QueryCellarIDsByChainIDResponse is the response type for Query/QueryCellarIDsByChainID gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsByChainIdResponse { #[prost(string, repeated, tag = "1")] pub cellar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryScheduledCorksRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksRequest { #[prost(uint64, tag = "1")] pub chain_id: u64, } /// QueryScheduledCorksResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } /// QueryScheduledBlockHeightsRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledBlockHeightsRequest { #[prost(uint64, tag = "1")] pub chain_id: u64, } /// QueryScheduledBlockHeightsResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledBlockHeightsResponse { #[prost(uint64, repeated, tag = "1")] pub block_heights: ::prost::alloc::vec::Vec, } /// QueryScheduledCorksByBlockHeightRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByBlockHeightRequest { #[prost(uint64, tag = "1")] pub block_height: u64, @@ -364,13 +364,13 @@ pub struct QueryScheduledCorksByBlockHeightRequest { pub chain_id: u64, } /// QueryScheduledCorksByBlockHeightResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByBlockHeightResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } /// QueryScheduledCorksByIDRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByIdRequest { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, @@ -378,50 +378,50 @@ pub struct QueryScheduledCorksByIdRequest { pub chain_id: u64, } /// QueryScheduledCorksByIDResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByIdResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultRequest { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, #[prost(uint64, tag = "2")] pub chain_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultResponse { #[prost(message, optional, tag = "1")] pub cork_result: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultsRequest { #[prost(uint64, tag = "1")] pub chain_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultsResponse { #[prost(message, repeated, tag = "1")] pub cork_results: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChainConfigurationsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChainConfigurationsResponse { #[prost(message, repeated, tag = "1")] pub configurations: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAxelarContractCallNoncesRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAxelarContractCallNoncesResponse { #[prost(message, repeated, tag = "1")] pub contract_call_nonces: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAxelarProxyUpgradeDataRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAxelarProxyUpgradeDataResponse { #[prost(message, repeated, tag = "1")] pub proxy_upgrade_data: ::prost::alloc::vec::Vec, @@ -672,7 +672,7 @@ pub mod query_client { } } } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ScheduleCorkEvent { #[prost(string, tag = "1")] pub signer: ::prost::alloc::string::String, @@ -687,7 +687,7 @@ pub struct ScheduleCorkEvent { } // note: current plan is to accept either chain name or chain ID. if both and they dont match, error. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddAxelarManagedCellarIDsProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -699,7 +699,7 @@ pub struct AddAxelarManagedCellarIDsProposal { pub cellar_ids: ::core::option::Option, } /// AddManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -712,7 +712,7 @@ pub struct AddAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "5")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveAxelarManagedCellarIDsProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -724,7 +724,7 @@ pub struct RemoveAxelarManagedCellarIDsProposal { pub cellar_ids: ::core::option::Option, } /// RemoveManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -737,7 +737,7 @@ pub struct RemoveAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "5")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarScheduledCorkProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -775,7 +775,7 @@ pub struct AxelarScheduledCorkProposal { pub deadline: u64, } /// ScheduledCorkProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarScheduledCorkProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -794,7 +794,7 @@ pub struct AxelarScheduledCorkProposalWithDeposit { #[prost(string, tag = "8")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCommunityPoolSpendProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -809,7 +809,7 @@ pub struct AxelarCommunityPoolSpendProposal { } /// This format of the community spend Ethereum proposal is specifically for /// the CLI to allow simple text serialization. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCommunityPoolSpendProposalForCli { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -826,7 +826,7 @@ pub struct AxelarCommunityPoolSpendProposalForCli { #[prost(string, tag = "7")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddChainConfigurationProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -835,7 +835,7 @@ pub struct AddChainConfigurationProposal { #[prost(message, optional, tag = "3")] pub chain_configuration: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddChainConfigurationProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -846,7 +846,7 @@ pub struct AddChainConfigurationProposalWithDeposit { #[prost(string, tag = "4")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveChainConfigurationProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -855,7 +855,7 @@ pub struct RemoveChainConfigurationProposal { #[prost(uint64, tag = "3")] pub chain_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveChainConfigurationProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -866,7 +866,7 @@ pub struct RemoveChainConfigurationProposalWithDeposit { #[prost(string, tag = "4")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeAxelarProxyContractProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -877,7 +877,7 @@ pub struct UpgradeAxelarProxyContractProposal { #[prost(string, tag = "4")] pub new_proxy_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeAxelarProxyContractProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -890,7 +890,7 @@ pub struct UpgradeAxelarProxyContractProposalWithDeposit { #[prost(string, tag = "5")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CancelAxelarProxyContractUpgradeProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -899,7 +899,7 @@ pub struct CancelAxelarProxyContractUpgradeProposal { #[prost(uint64, tag = "3")] pub chain_id: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CancelAxelarProxyContractUpgradeProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, diff --git a/somm_proto/src/prost/cellarfees.v1.rs b/somm_proto/src/prost/cellarfees.v1.rs index 707aef00..857d5e54 100644 --- a/somm_proto/src/prost/cellarfees.v1.rs +++ b/somm_proto/src/prost/cellarfees.v1.rs @@ -1,17 +1,17 @@ -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct FeeAccrualCounter { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, #[prost(uint64, tag = "2")] pub count: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct FeeAccrualCounters { #[prost(message, repeated, tag = "1")] pub counters: ::prost::alloc::vec::Vec, } /// Params defines the parameters for the module. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// The number of fee accruals after which an auction should be started #[prost(uint64, tag = "1")] @@ -27,37 +27,37 @@ pub struct Params { #[prost(uint64, tag = "4")] pub price_decrease_block_interval: u64, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsResponse { #[prost(string, tag = "1")] pub fees_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastRewardSupplyPeakRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastRewardSupplyPeakResponse { #[prost(string, tag = "1")] pub last_reward_supply_peak: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeAccrualCountersRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeAccrualCountersResponse { #[prost(message, optional, tag = "1")] pub fee_accrual_counters: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryApyRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryApyResponse { #[prost(string, tag = "1")] pub apy: ::prost::alloc::string::String, @@ -187,7 +187,7 @@ pub mod query_client { } } /// GenesisState defines the cellarfees module's genesis state. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, diff --git a/somm_proto/src/prost/cork.v2.rs b/somm_proto/src/prost/cork.v2.rs index 13f0ffac..1ff0dae5 100644 --- a/somm_proto/src/prost/cork.v2.rs +++ b/somm_proto/src/prost/cork.v2.rs @@ -1,4 +1,4 @@ -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Cork { /// call body containing the ABI encoded bytes to send to the contract #[prost(bytes = "vec", tag = "1")] @@ -7,7 +7,7 @@ pub struct Cork { #[prost(string, tag = "2")] pub target_contract_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ScheduledCork { #[prost(message, optional, tag = "1")] pub cork: ::core::option::Option, @@ -18,7 +18,7 @@ pub struct ScheduledCork { #[prost(bytes = "vec", tag = "4")] pub id: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CorkResult { #[prost(message, optional, tag = "1")] pub cork: ::core::option::Option, @@ -29,13 +29,13 @@ pub struct CorkResult { #[prost(string, tag = "4")] pub approval_percentage: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CellarIdSet { #[prost(string, repeated, tag = "1")] pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgScheduleCorkRequest - sdk.Msg for scheduling a cork request for on or after a specific block height -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgScheduleCorkRequest { /// the scheduled cork #[prost(message, optional, tag = "1")] @@ -47,7 +47,7 @@ pub struct MsgScheduleCorkRequest { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgScheduleCorkResponse { /// cork ID #[prost(string, tag = "1")] @@ -116,7 +116,7 @@ pub mod msg_client { } } /// GenesisState - all cork state that must be provided at genesis -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, @@ -130,7 +130,7 @@ pub struct GenesisState { pub cork_results: ::prost::alloc::vec::Vec, } /// Params cork parameters -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// Deprecated /// VoteThreshold defines the percentage of bonded stake required to vote for a scheduled cork to be approved @@ -138,79 +138,79 @@ pub struct Params { pub vote_threshold: ::prost::alloc::string::String, } /// QueryParamsRequest is the request type for the Query/Params gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsRequest is the response type for the Query/Params gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// allocation parameters #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryCellarIDsRequest is the request type for Query/QueryCellarIDs gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsRequest {} /// QueryCellarIDsResponse is the response type for Query/QueryCellars gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCellarIDsResponse { #[prost(string, repeated, tag = "1")] pub cellar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryScheduledCorksRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksRequest {} /// QueryScheduledCorksResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } /// QueryScheduledBlockHeightsRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledBlockHeightsRequest {} /// QueryScheduledBlockHeightsResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledBlockHeightsResponse { #[prost(uint64, repeated, tag = "1")] pub block_heights: ::prost::alloc::vec::Vec, } /// QueryScheduledCorksByBlockHeightRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByBlockHeightRequest { #[prost(uint64, tag = "1")] pub block_height: u64, } /// QueryScheduledCorksByBlockHeightResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByBlockHeightResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } /// QueryScheduledCorksByIDRequest -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByIdRequest { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, } /// QueryScheduledCorksByIDResponse -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScheduledCorksByIdResponse { #[prost(message, repeated, tag = "1")] pub corks: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultRequest { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultResponse { #[prost(message, optional, tag = "1")] pub cork_result: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCorkResultsResponse { #[prost(message, repeated, tag = "1")] pub cork_results: ::prost::alloc::vec::Vec, @@ -388,7 +388,7 @@ pub mod query_client { } } } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddManagedCellarIDsProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -398,7 +398,7 @@ pub struct AddManagedCellarIDsProposal { pub cellar_ids: ::core::option::Option, } /// AddManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -409,7 +409,7 @@ pub struct AddManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "4")] pub deposit: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveManagedCellarIDsProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -419,7 +419,7 @@ pub struct RemoveManagedCellarIDsProposal { pub cellar_ids: ::core::option::Option, } /// RemoveManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -461,7 +461,7 @@ pub struct ScheduledCorkProposal { pub contract_call_proto_json: ::prost::alloc::string::String, } /// ScheduledCorkProposalWithDeposit is a specific definition for CLI commands -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ScheduledCorkProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, diff --git a/somm_proto/src/prost/incentives.v1.rs b/somm_proto/src/prost/incentives.v1.rs index 7616eaf0..01727eec 100644 --- a/somm_proto/src/prost/incentives.v1.rs +++ b/somm_proto/src/prost/incentives.v1.rs @@ -1,10 +1,10 @@ -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// Params incentives parameters -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// DistributionPerBlock defines the coin to be sent to the distribution module from the community pool every block #[prost(message, optional, tag = "1")] @@ -15,20 +15,20 @@ pub struct Params { pub incentives_cutoff_height: u64, } /// QueryParamsRequest is the request type for the QueryParams gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsRequest is the response type for the QueryParams gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// allocation parameters #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryAPYRequest is the request type for the QueryAPY gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryApyRequest {} /// QueryAPYRequest is the response type for the QueryAPY gRPC method. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryApyResponse { #[prost(string, tag = "1")] pub apy: ::prost::alloc::string::String, diff --git a/somm_proto/src/prost/pubsub.v1.rs b/somm_proto/src/prost/pubsub.v1.rs index bdb861b6..5c7e9771 100644 --- a/somm_proto/src/prost/pubsub.v1.rs +++ b/somm_proto/src/prost/pubsub.v1.rs @@ -1,5 +1,5 @@ /// represents a publisher, which are added via governance -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Publisher { /// account address of the publisher #[prost(string, tag = "1")] @@ -12,7 +12,7 @@ pub struct Publisher { pub ca_cert: ::prost::alloc::string::String, } /// represents a subscriber, can be set or modified by the owner of the subscriber address -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Subscriber { /// unique key, account address representation of either an account or a validator #[prost(string, tag = "1")] @@ -28,7 +28,7 @@ pub struct Subscriber { /// represents a publisher committing to sending messages for a specific subscription ID /// /// unique key is subscription_id and publisher_domain tuple -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PublisherIntent { /// arbitary string representing a subscription, max length of 128 #[prost(string, tag = "1")] @@ -53,7 +53,7 @@ pub struct PublisherIntent { /// /// unique key is subscription_id and subscriber_address tuple, a given subscriber can only subscribe to one publisher per /// subscription_id at a time -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscriberIntent { /// arbitary string representing a subscription, max length of 128 #[prost(string, tag = "1")] @@ -66,7 +66,7 @@ pub struct SubscriberIntent { pub publisher_domain: ::prost::alloc::string::String, } /// represents a default subscription voted in by governance that can be overridden by a subscriber -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct DefaultSubscription { /// arbitary string representing a subscription, max length of 128 #[prost(string, tag = "1")] @@ -77,7 +77,7 @@ pub struct DefaultSubscription { } /// governance proposal to add a publisher, with domain, adress, and ca_cert the same as the Publisher type /// proof URL expected in the format: https:///
/cacert.pem and serving cacert.pem matching ca_cert -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddPublisherProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -92,7 +92,7 @@ pub struct AddPublisherProposal { #[prost(string, tag = "6")] pub ca_cert: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddPublisherProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -112,7 +112,7 @@ pub struct AddPublisherProposalWithDeposit { /// governance proposal to remove a publisher (publishers can remove themselves, but this might be necessary in the /// event of a malicious publisher or a key compromise), since Publishers are unique by domain, it's the only /// necessary information to remove one -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemovePublisherProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -121,7 +121,7 @@ pub struct RemovePublisherProposal { #[prost(string, tag = "3")] pub domain: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemovePublisherProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -134,7 +134,7 @@ pub struct RemovePublisherProposalWithDeposit { } /// set the default publisher for a given subscription ID /// these can be overridden by the client -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddDefaultSubscriptionProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -145,7 +145,7 @@ pub struct AddDefaultSubscriptionProposal { #[prost(string, tag = "4")] pub publisher_domain: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AddDefaultSubscriptionProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -159,7 +159,7 @@ pub struct AddDefaultSubscriptionProposalWithDeposit { pub deposit: ::prost::alloc::string::String, } /// remove a default subscription -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveDefaultSubscriptionProposal { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -168,7 +168,7 @@ pub struct RemoveDefaultSubscriptionProposal { #[prost(string, tag = "3")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveDefaultSubscriptionProposalWithDeposit { #[prost(string, tag = "1")] pub title: ::prost::alloc::string::String, @@ -180,19 +180,7 @@ pub struct RemoveDefaultSubscriptionProposalWithDeposit { pub deposit: ::prost::alloc::string::String, } /// for a given PublisherIntent, whether or not it is pulled or pushed -#[derive( - serde::Deserialize, - serde::Serialize, - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration, -)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum PublishMethod { /// subscribers should pull from the provided URL @@ -201,19 +189,7 @@ pub enum PublishMethod { Push = 1, } /// for a given PublisherIntent, determines what types of subscribers may subscribe -#[derive( - serde::Deserialize, - serde::Serialize, - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration, -)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum AllowedSubscribers { /// any valid account address @@ -223,43 +199,43 @@ pub enum AllowedSubscribers { /// a specific list of account addresses List = 2, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemovePublisherRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemovePublisherResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddSubscriberRequest { #[prost(message, optional, tag = "1")] pub subscriber: ::core::option::Option, #[prost(string, tag = "2")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddSubscriberResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveSubscriberRequest { #[prost(string, tag = "1")] pub subscriber_address: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveSubscriberResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddPublisherIntentRequest { #[prost(message, optional, tag = "1")] pub publisher_intent: ::core::option::Option, #[prost(string, tag = "2")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddPublisherIntentResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemovePublisherIntentRequest { #[prost(string, tag = "1")] pub subscription_id: ::prost::alloc::string::String, @@ -268,18 +244,18 @@ pub struct MsgRemovePublisherIntentRequest { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemovePublisherIntentResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddSubscriberIntentRequest { #[prost(message, optional, tag = "1")] pub subscriber_intent: ::core::option::Option, #[prost(string, tag = "2")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddSubscriberIntentResponse {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveSubscriberIntentRequest { #[prost(string, tag = "1")] pub subscription_id: ::prost::alloc::string::String, @@ -288,7 +264,7 @@ pub struct MsgRemoveSubscriberIntentRequest { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveSubscriberIntentResponse {} #[doc = r" Generated client implementations."] pub mod msg_client { @@ -439,150 +415,150 @@ pub mod msg_client { } } /// Params defines the parameters for the module. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Params {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherResponse { #[prost(message, optional, tag = "1")] pub publisher: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublishersRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublishersResponse { #[prost(message, repeated, tag = "1")] pub publishers: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberRequest { #[prost(string, tag = "1")] pub subscriber_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberResponse { #[prost(message, optional, tag = "1")] pub subscriber: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscribersRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscribersResponse { #[prost(message, repeated, tag = "1")] pub subscribers: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentResponse { #[prost(message, optional, tag = "1")] pub publisher_intent: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsResponse { #[prost(message, repeated, tag = "1")] pub publisher_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsByPublisherDomainRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsByPublisherDomainResponse { #[prost(message, repeated, tag = "1")] pub publisher_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsBySubscriptionIdRequest { #[prost(string, tag = "1")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPublisherIntentsBySubscriptionIdResponse { #[prost(message, repeated, tag = "1")] pub publisher_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentRequest { #[prost(string, tag = "1")] pub subscriber_address: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentResponse { #[prost(message, optional, tag = "1")] pub subscriber_intent: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsResponse { #[prost(message, repeated, tag = "1")] pub subscriber_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsBySubscriberAddressRequest { #[prost(string, tag = "1")] pub subscriber_address: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsBySubscriberAddressResponse { #[prost(message, repeated, tag = "1")] pub subscriber_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsBySubscriptionIdRequest { #[prost(string, tag = "1")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsBySubscriptionIdResponse { #[prost(message, repeated, tag = "1")] pub subscriber_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsByPublisherDomainRequest { #[prost(string, tag = "1")] pub publisher_domain: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubscriberIntentsByPublisherDomainResponse { #[prost(message, repeated, tag = "1")] pub subscriber_intents: ::prost::alloc::vec::Vec, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDefaultSubscriptionRequest { #[prost(string, tag = "1")] pub subscription_id: ::prost::alloc::string::String, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDefaultSubscriptionResponse { #[prost(message, optional, tag = "1")] pub default_subscription: ::core::option::Option, } -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDefaultSubscriptionsRequest {} -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDefaultSubscriptionsResponse { #[prost(message, repeated, tag = "1")] pub default_subscriptions: ::prost::alloc::vec::Vec, @@ -892,7 +868,7 @@ pub mod query_client { } } /// GenesisState defines the pubsub module's genesis state. -#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq, ::prost::Message)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option,