From f424318e2960fa4a9c92160d6bc249abd6b137f7 Mon Sep 17 00:00:00 2001 From: Eric Bolten Date: Sat, 27 Jan 2024 19:31:39 -0600 Subject: [PATCH] regenerate rust protos --- somm_proto/src/prost/auction.v1.rs | 2 ++ somm_proto/src/prost/axelarcork.v1.rs | 35 +++++++++++++++------------ somm_proto/src/prost/cellarfees.v1.rs | 3 +++ somm_proto/src/prost/cork.v2.rs | 6 +++++ 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/somm_proto/src/prost/auction.v1.rs b/somm_proto/src/prost/auction.v1.rs index d9d9c593a..10e2d317b 100644 --- a/somm_proto/src/prost/auction.v1.rs +++ b/somm_proto/src/prost/auction.v1.rs @@ -175,6 +175,8 @@ pub struct Params { pub auction_max_block_age: u64, #[prost(string, tag = "5")] pub auction_price_decrease_acceleration_rate: ::prost::alloc::string::String, + #[prost(uint64, tag = "6")] + pub minimum_auction_height: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} diff --git a/somm_proto/src/prost/axelarcork.v1.rs b/somm_proto/src/prost/axelarcork.v1.rs index 2d2370e1f..11fc085fb 100644 --- a/somm_proto/src/prost/axelarcork.v1.rs +++ b/somm_proto/src/prost/axelarcork.v1.rs @@ -48,8 +48,8 @@ pub struct AxelarCorkResults { } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CellarIdSet { - #[prost(message, optional, tag = "1")] - pub chain: ::core::option::Option, + #[prost(uint64, tag = "1")] + pub chain_id: u64, #[prost(string, repeated, tag = "2")] pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } @@ -61,6 +61,11 @@ pub struct ChainConfiguration { pub id: u64, #[prost(string, tag = "3")] pub proxy_address: ::prost::alloc::string::String, + /// pure token transfers have a fixed fee deducted from the amount sent in the ICS-20 message depending + /// on the asset and destination chain + /// they can be calculated here: https://docs.axelar.dev/resources/mainnet#cross-chain-relayer-gas-fee + #[prost(message, repeated, tag = "4")] + pub bridge_fees: ::prost::alloc::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainConfigurations { @@ -685,8 +690,6 @@ pub struct ScheduleCorkEvent { #[prost(uint64, tag = "5")] pub chain_id: u64, } -// note: current plan is to accept either chain name or chain ID. if both and they dont match, error. - #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddAxelarManagedCellarIDsProposal { #[prost(string, tag = "1")] @@ -697,8 +700,10 @@ pub struct AddAxelarManagedCellarIDsProposal { pub chain_id: u64, #[prost(message, optional, tag = "4")] pub cellar_ids: ::core::option::Option, + #[prost(string, tag = "5")] + pub publisher_domain: ::prost::alloc::string::String, } -/// AddManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands +/// AddAxelarManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] @@ -707,9 +712,11 @@ pub struct AddAxelarManagedCellarIDsProposalWithDeposit { pub description: ::prost::alloc::string::String, #[prost(uint64, tag = "3")] pub chain_id: u64, - #[prost(message, optional, tag = "4")] - pub cellar_ids: ::core::option::Option, + #[prost(string, repeated, tag = "4")] + pub cellar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, tag = "5")] + pub publisher_domain: ::prost::alloc::string::String, + #[prost(string, tag = "6")] pub deposit: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] @@ -723,7 +730,7 @@ pub struct RemoveAxelarManagedCellarIDsProposal { #[prost(message, optional, tag = "4")] pub cellar_ids: ::core::option::Option, } -/// RemoveManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands +/// RemoveAxelarManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveAxelarManagedCellarIDsProposalWithDeposit { #[prost(string, tag = "1")] @@ -732,8 +739,8 @@ pub struct RemoveAxelarManagedCellarIDsProposalWithDeposit { pub description: ::prost::alloc::string::String, #[prost(uint64, tag = "3")] pub chain_id: u64, - #[prost(message, optional, tag = "4")] - pub cellar_ids: ::core::option::Option, + #[prost(string, repeated, tag = "4")] + pub cellar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, tag = "5")] pub deposit: ::prost::alloc::string::String, } @@ -774,7 +781,7 @@ pub struct AxelarScheduledCorkProposal { #[prost(uint64, tag = "7")] pub deadline: u64, } -/// ScheduledCorkProposalWithDeposit is a specific definition for CLI commands +/// AxelarScheduledCorkProposalWithDeposit is a specific definition for CLI commands #[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarScheduledCorkProposalWithDeposit { #[prost(string, tag = "1")] @@ -807,7 +814,7 @@ pub struct AxelarCommunityPoolSpendProposal { #[prost(message, optional, tag = "5")] pub amount: ::core::option::Option, } -/// This format of the community spend Ethereum proposal is specifically for +/// This format of the Axelar community spend Ethereum proposal is specifically for /// the CLI to allow simple text serialization. #[derive(Clone, PartialEq, ::prost::Message)] pub struct AxelarCommunityPoolSpendProposalForCli { @@ -820,10 +827,8 @@ pub struct AxelarCommunityPoolSpendProposalForCli { #[prost(uint64, tag = "4")] pub chain_id: u64, #[prost(string, tag = "5")] - pub chain_name: ::prost::alloc::string::String, - #[prost(string, tag = "6")] pub amount: ::prost::alloc::string::String, - #[prost(string, tag = "7")] + #[prost(string, tag = "6")] pub deposit: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/somm_proto/src/prost/cellarfees.v1.rs b/somm_proto/src/prost/cellarfees.v1.rs index 857d5e543..7f023b9df 100644 --- a/somm_proto/src/prost/cellarfees.v1.rs +++ b/somm_proto/src/prost/cellarfees.v1.rs @@ -26,6 +26,9 @@ pub struct Params { /// Number of blocks between auction price decreases #[prost(uint64, tag = "4")] pub price_decrease_block_interval: u64, + /// The interval between starting auctions + #[prost(uint64, tag = "5")] + pub auction_interval: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} diff --git a/somm_proto/src/prost/cork.v2.rs b/somm_proto/src/prost/cork.v2.rs index 1ff0dae5b..efce9d4a6 100644 --- a/somm_proto/src/prost/cork.v2.rs +++ b/somm_proto/src/prost/cork.v2.rs @@ -136,6 +136,8 @@ pub struct Params { /// VoteThreshold defines the percentage of bonded stake required to vote for a scheduled cork to be approved #[prost(string, tag = "1")] pub vote_threshold: ::prost::alloc::string::String, + #[prost(uint64, tag = "2")] + pub max_corks_per_validator: u64, } /// QueryParamsRequest is the request type for the Query/Params gRPC method. #[derive(Clone, PartialEq, ::prost::Message)] @@ -396,6 +398,8 @@ pub struct AddManagedCellarIDsProposal { pub description: ::prost::alloc::string::String, #[prost(message, optional, tag = "3")] pub cellar_ids: ::core::option::Option, + #[prost(string, tag = "4")] + pub publisher_domain: ::prost::alloc::string::String, } /// AddManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands #[derive(Clone, PartialEq, ::prost::Message)] @@ -407,6 +411,8 @@ pub struct AddManagedCellarIDsProposalWithDeposit { #[prost(string, repeated, tag = "3")] pub cellar_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, tag = "4")] + pub publisher_domain: ::prost::alloc::string::String, + #[prost(string, tag = "5")] pub deposit: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)]