Skip to content

Commit

Permalink
regen protos
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Aug 5, 2024
1 parent 6e7e83d commit 81ddf95
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a6eae66545df6e128da2c7cac81ff4c1c02deb7b
7bfbbe2c88648620bde41b80e3d9ce41883115a4
8 changes: 8 additions & 0 deletions packages/neutron-sdk/src/proto_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ pub mod neutron {
}
pub mod dex {
include!("neutron.dex.rs");
pub mod v2 {
include!("neutron.dex.v2.rs");
}
}
pub mod dynamicfees {
pub mod v1 {
include!("neutron.dynamicfees.v1.rs");
}
}
pub mod feeburner {
include!("neutron.feeburner.rs");
Expand Down
23 changes: 19 additions & 4 deletions packages/neutron-sdk/src/proto_types/neutron.dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ pub struct PoolReserves {
pub reserves_maker_denom: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub price_taker_to_maker: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub price_opposite_taker_to_maker: ::prost::alloc::string::String,
/// This is the price of the PoolReserves denominated in the opposite token. (ie. 1 TokenA with a maker_price of 10 is worth 10 TokenB )
#[prost(string, tag = "5")]
pub maker_price: ::prost::alloc::string::String,
}
// NOTE: This struct is never actually stored in the KV store. It is merely a
// convenience wrapper for holding both sides of a pool.
Expand Down Expand Up @@ -93,6 +94,9 @@ pub struct LimitOrderTranche {
pub expiration_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "7")]
pub price_taker_to_maker: ::prost::alloc::string::String,
/// This is the price of the LimitOrder denominated in the opposite token. (ie. 1 TokenA with a maker_price of 10 is worth 10 TokenB )
#[prost(string, tag = "8")]
pub maker_price: ::prost::alloc::string::String,
}
/// Params defines the parameters for the module.
#[derive(Clone, PartialEq, ::prost::Message)]
Expand All @@ -110,6 +114,8 @@ pub struct Params {
pub struct DepositOptions {
#[prost(bool, tag = "1")]
pub disable_autoswap: bool,
#[prost(bool, tag = "2")]
pub fail_tx_on_bel: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgDeposit {
Expand All @@ -133,11 +139,20 @@ pub struct MsgDeposit {
pub options: ::prost::alloc::vec::Vec<DepositOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FailedDeposit {
#[prost(uint64, tag = "1")]
pub deposit_idx: u64,
#[prost(string, tag = "2")]
pub error: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgDepositResponse {
#[prost(string, repeated, tag = "1")]
pub reserve0_deposited: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub reserve1_deposited: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "3")]
pub failed_deposits: ::prost::alloc::vec::Vec<FailedDeposit>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgWithdrawal {
Expand Down Expand Up @@ -445,15 +460,15 @@ pub struct QueryAllUserDepositsResponse {
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageResponse>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAllUserLimitOrdersRequest {
pub struct QueryAllLimitOrderTrancheUserByAddressRequest {
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub pagination:
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAllUserLimitOrdersResponse {
pub struct QueryAllLimitOrderTrancheUserByAddressResponse {
#[prost(message, repeated, tag = "1")]
pub limit_orders: ::prost::alloc::vec::Vec<LimitOrderTrancheUser>,
#[prost(message, optional, tag = "2")]
Expand Down
10 changes: 10 additions & 0 deletions packages/neutron-sdk/src/proto_types/neutron.dex.v2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @generated
/// Params defines the parameters for the module.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
#[prost(uint64, repeated, tag = "1")]
pub fee_tiers: ::prost::alloc::vec::Vec<u64>,
#[prost(string, tag = "2")]
pub max_true_taker_spread: ::prost::alloc::string::String,
}
// @@protoc_insertion_point(module)
44 changes: 44 additions & 0 deletions packages/neutron-sdk/src/proto_types/neutron.dynamicfees.v1.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// @generated
/// Params defines the parameters for the module.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
/// List of asset prices by the NTRN
/// it's used in cooperation with feemarket module
/// ntrn_prices is a data source to convert gas_price from feemarket's base_denom (untrn)
/// into a given asset
#[prost(message, repeated, tag = "1")]
pub ntrn_prices: ::prost::alloc::vec::Vec<cosmos_sdk_proto::cosmos::base::v1beta1::DecCoin>,
}
/// GenesisState defines the dynamicfees module's genesis state.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
/// QueryParamsRequest is request type for the Query/Params RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsRequest {}
/// QueryParamsResponse is response type for the Query/Params RPC method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsResponse {
/// params holds all the parameters of this module.
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
/// MsgUpdateParams is the MsgUpdateParams request type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParams {
/// Authority is the address of the governance account.
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
/// params defines the x/dynamicfees parameters to update.
///
/// NOTE: All parameters must be supplied.
#[prost(message, optional, tag = "2")]
pub params: ::core::option::Option<Params>,
}
/// MsgUpdateParamsResponse defines the response structure for executing a
/// MsgUpdateParams message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParamsResponse {}
// @@protoc_insertion_point(module)
18 changes: 17 additions & 1 deletion packages/neutron-sdk/src/proto_types/neutron.transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,24 @@ pub struct MsgTransferResponse {
/// channel's sequence_id for outgoing ibc packet. Unique per a channel.
#[prost(uint64, tag = "1")]
pub sequence_id: u64,
/// channel src channel on neutron side trasaction was submitted from
/// channel src channel on neutron side transaction was submitted from
#[prost(string, tag = "2")]
pub channel: ::prost::alloc::string::String,
}
/// MsgUpdateParams is the Msg/UpdateParams request type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParams {
/// signer address
#[prost(string, tag = "1")]
pub signer: ::prost::alloc::string::String,
/// params defines the transfer parameters to update.
///
/// NOTE: All parameters must be supplied.
#[prost(message, optional, tag = "2")]
pub params: ::core::option::Option<cosmos_sdk_proto::ibc::applications::transfer::v1::Params>,
}
/// MsgUpdateParamsResponse defines the response structure for executing a
/// MsgUpdateParams message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParamsResponse {}
// @@protoc_insertion_point(module)
5 changes: 4 additions & 1 deletion packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// @generated
/// WhitelistedHook describes a beforeSendHook which is allowed to be added and executed
/// SetBeforeSendHook can only be called on denoms where the denom creator and
/// code_id for the `contract_addr` match a WhitelistedHook
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WhitelistedHook {
#[prost(uint64, tag = "1")]
Expand All @@ -24,7 +27,7 @@ pub struct Params {
/// are sent to
#[prost(string, tag = "3")]
pub fee_collector_address: ::prost::alloc::string::String,
/// HookWhitelist is the list of hooks which are allowed to be added and executed
/// whitelisted_hooks is the list of hooks which are allowed to be added and executed
#[prost(message, repeated, tag = "4")]
pub whitelisted_hooks: ::prost::alloc::vec::Vec<WhitelistedHook>,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pub struct GenesisDenom {
pub denom: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub authority_metadata: ::core::option::Option<DenomAuthorityMetadata>,
#[prost(string, tag = "3")]
pub hook_contract_address: ::prost::alloc::string::String,
}
/// Params defines the parameters for the tokenfactory module.
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down

0 comments on commit 81ddf95

Please sign in to comment.