Skip to content

Commit

Permalink
update side chain
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyluis committed Jan 3, 2025
1 parent ea921fb commit 5352b6c
Show file tree
Hide file tree
Showing 13 changed files with 10,456 additions and 1,028 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion side-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "side-proto"
version = "0.1.0-dev6"
version = "0.1.0-dev7"
edition = "2021"
description = "Rust Client for Side Chain"
readme = "README.md"
Expand Down
121 changes: 121 additions & 0 deletions side-proto/src/prost/side/side.auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub enum BidStatus {
Bidding = 0,
Accepted = 1,
Rejected = 2,
Cancelled = 3,
}
impl BidStatus {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -117,6 +118,7 @@ impl BidStatus {
BidStatus::Bidding => "Bidding",
BidStatus::Accepted => "Accepted",
BidStatus::Rejected => "Rejected",
BidStatus::Cancelled => "Cancelled",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -125,6 +127,7 @@ impl BidStatus {
"Bidding" => Some(Self::Bidding),
"Accepted" => Some(Self::Accepted),
"Rejected" => Some(Self::Rejected),
"Cancelled" => Some(Self::Cancelled),
_ => None,
}
}
Expand Down Expand Up @@ -192,6 +195,34 @@ impl ::prost::Name for QueryParamsResponse {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryAuctionRequest is request type for the Query/Auction RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAuctionRequest {
#[prost(uint64, tag = "1")]
pub id: u64,
}
impl ::prost::Name for QueryAuctionRequest {
const NAME: &'static str = "QueryAuctionRequest";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryAuctionResponse is response type for the Query/Auction RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAuctionResponse {
#[prost(message, optional, tag = "1")]
pub auction: ::core::option::Option<Auction>,
}
impl ::prost::Name for QueryAuctionResponse {
const NAME: &'static str = "QueryAuctionResponse";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryAuctionsRequest is request type for the Query/Auctions RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -225,6 +256,34 @@ impl ::prost::Name for QueryAuctionsResponse {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryBidRequest is request type for the Query/Bid RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryBidRequest {
#[prost(uint64, tag = "1")]
pub id: u64,
}
impl ::prost::Name for QueryBidRequest {
const NAME: &'static str = "QueryBidRequest";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryBidResponse is response type for the Query/Bid RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryBidResponse {
#[prost(message, optional, tag = "1")]
pub bid: ::core::option::Option<Bid>,
}
impl ::prost::Name for QueryBidResponse {
const NAME: &'static str = "QueryBidResponse";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// QueryBidsRequest is request type for the Query/Bids RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -288,6 +347,68 @@ impl ::prost::Name for MsgBidResponse {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// MsgCancelBid defines the Msg/CancelBid request type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgCancelBid {
#[prost(string, tag = "1")]
pub sender: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub id: u64,
}
impl ::prost::Name for MsgCancelBid {
const NAME: &'static str = "MsgCancelBid";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// MsgCancelBidResponse defines the Msg/CancelBid response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgCancelBidResponse {}
impl ::prost::Name for MsgCancelBidResponse {
const NAME: &'static str = "MsgCancelBidResponse";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// MsgUpdateParams is the Msg/UpdateParams request type.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParams {
/// authority is the address that controls the module (defaults to x/gov unless overwritten).
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
/// params defines the x/btcbridge parameters to be updated.
///
/// NOTE: All parameters must be supplied.
#[prost(message, optional, tag = "2")]
pub params: ::core::option::Option<Params>,
}
impl ::prost::Name for MsgUpdateParams {
const NAME: &'static str = "MsgUpdateParams";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
/// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
///
/// Since: cosmos-sdk 0.47
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParamsResponse {}
impl ::prost::Name for MsgUpdateParamsResponse {
const NAME: &'static str = "MsgUpdateParamsResponse";
const PACKAGE: &'static str = "side.auction";
fn full_name() -> ::prost::alloc::string::String {
::prost::alloc::format!("side.auction.{}", Self::NAME)
}
}
include!("side.auction.serde.rs");
include!("side.auction.tonic.rs");
// @@protoc_insertion_point(module)
Loading

0 comments on commit 5352b6c

Please sign in to comment.