diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 8da0007..e73ddad 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -19,7 +19,7 @@ use walkdir::WalkDir; static QUIET: AtomicBool = AtomicBool::new(false); /// The Provenance SDK commit or tag to be cloned and used to build the proto files -const PROVENANCE_SDK_REV: &str = "v1.19.1"; +const PROVENANCE_SDK_REV: &str = "v1.20.0-rc2"; // All paths must end with a / and either be absolute or include a ./ to reference the current // working directory. @@ -199,7 +199,7 @@ fn compile_sdk_protos_and_services(out_dir: &Path) { .build_server(true) .out_dir(out_dir) .extern_path(".tendermint", "::tendermint_proto") - .compile(&protos, &includes) + .compile_protos(&protos, &includes) .unwrap(); info!("=> Done!"); @@ -262,7 +262,7 @@ fn copy_and_patch(src: impl AsRef, dest: impl AsRef) -> io::Result<( const REPLACEMENTS: &[(&str, &str)] = &[ // Use `tendermint-proto` proto definitions ("(super::)+cosmos", "cosmos_sdk_proto::cosmos"), - ("(super::)+ibc", "cosmos_sdk_proto::ibc"), + ("(super::)+ibc", "ibc_proto::ibc"), // Feature-gate gRPC client modules ( "/// Generated client implementations.", diff --git a/provenance-sdk-go b/provenance-sdk-go index d1119ab..fa0263a 160000 --- a/provenance-sdk-go +++ b/provenance-sdk-go @@ -1 +1 @@ -Subproject commit d1119ab02c423d86a0f485a8f124e73511ec1b9b +Subproject commit fa0263a7ff71a0855111c0b1b2c82ca55128b9d4 diff --git a/provenance-sdk-proto/Cargo.toml b/provenance-sdk-proto/Cargo.toml index 1c938f8..690c916 100644 --- a/provenance-sdk-proto/Cargo.toml +++ b/provenance-sdk-proto/Cargo.toml @@ -11,7 +11,8 @@ keywords = ["blockchain", "cosmos", "proto", "provenance", "tendermint"] edition = "2021" [dependencies] -cosmos-sdk-proto = { version = "0.24", default-features = false } +cosmos-sdk-proto = { version = "0.25", default-features = false } +ibc-proto = { version = "0.49", default-features = false } prost = "0.13" prost-types = "0.13" # TODO this only needs to be included if grpc or grpc-transport are included diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/PROVENANCE_SDK_COMMIT b/provenance-sdk-proto/src/prost/provenance-sdk/PROVENANCE_SDK_COMMIT index 8e63bed..1c5c38d 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/PROVENANCE_SDK_COMMIT +++ b/provenance-sdk-proto/src/prost/provenance-sdk/PROVENANCE_SDK_COMMIT @@ -1 +1 @@ -v1.19.1 \ No newline at end of file +v1.20.0-rc2 \ No newline at end of file diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs index f85b3fd..5e611e8 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// Params defines the set of params for the attribute module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// maximum length of data to allow in an attribute value @@ -8,7 +7,6 @@ pub struct Params { pub max_value_length: u32, } /// Attribute holds a typed key/value structure for data associated with an account -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Attribute { /// The attribute name. @@ -28,7 +26,6 @@ pub struct Attribute { pub expiration_date: ::core::option::Option<::prost_types::Timestamp>, } /// EventAttributeAdd event emitted when attribute is added -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeAdd { #[prost(string, tag = "1")] @@ -45,7 +42,6 @@ pub struct EventAttributeAdd { pub expiration: ::prost::alloc::string::String, } /// EventAttributeUpdate event emitted when attribute is updated -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeUpdate { #[prost(string, tag = "1")] @@ -64,7 +60,6 @@ pub struct EventAttributeUpdate { pub owner: ::prost::alloc::string::String, } /// EventAttributeExpirationUpdate event emitted when attribute expiration is updated -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeExpirationUpdate { #[prost(string, tag = "1")] @@ -81,7 +76,6 @@ pub struct EventAttributeExpirationUpdate { pub updated_expiration: ::prost::alloc::string::String, } /// EventAttributeDelete event emitted when attribute is deleted -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeDelete { #[prost(string, tag = "1")] @@ -92,7 +86,6 @@ pub struct EventAttributeDelete { pub owner: ::prost::alloc::string::String, } /// EventAttributeDistinctDelete event emitted when attribute is deleted with matching value -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeDistinctDelete { #[prost(string, tag = "1")] @@ -107,7 +100,6 @@ pub struct EventAttributeDistinctDelete { pub owner: ::prost::alloc::string::String, } /// EventAttributeExpired event emitted when attribute has expired and been deleted in BeginBlocker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeExpired { #[prost(string, tag = "1")] @@ -122,14 +114,12 @@ pub struct EventAttributeExpired { pub expiration: ::prost::alloc::string::String, } /// EventAccountDataUpdated event emitted when accountdata is set, updated, or deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAccountDataUpdated { #[prost(string, tag = "1")] pub account: ::prost::alloc::string::String, } /// EventAttributeParamsUpdated event emitted when attribute params are updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttributeParamsUpdated { #[prost(string, tag = "1")] @@ -165,15 +155,15 @@ impl AttributeType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - AttributeType::Unspecified => "ATTRIBUTE_TYPE_UNSPECIFIED", - AttributeType::Uuid => "ATTRIBUTE_TYPE_UUID", - AttributeType::Json => "ATTRIBUTE_TYPE_JSON", - AttributeType::String => "ATTRIBUTE_TYPE_STRING", - AttributeType::Uri => "ATTRIBUTE_TYPE_URI", - AttributeType::Int => "ATTRIBUTE_TYPE_INT", - AttributeType::Float => "ATTRIBUTE_TYPE_FLOAT", - AttributeType::Proto => "ATTRIBUTE_TYPE_PROTO", - AttributeType::Bytes => "ATTRIBUTE_TYPE_BYTES", + Self::Unspecified => "ATTRIBUTE_TYPE_UNSPECIFIED", + Self::Uuid => "ATTRIBUTE_TYPE_UUID", + Self::Json => "ATTRIBUTE_TYPE_JSON", + Self::String => "ATTRIBUTE_TYPE_STRING", + Self::Uri => "ATTRIBUTE_TYPE_URI", + Self::Int => "ATTRIBUTE_TYPE_INT", + Self::Float => "ATTRIBUTE_TYPE_FLOAT", + Self::Proto => "ATTRIBUTE_TYPE_PROTO", + Self::Bytes => "ATTRIBUTE_TYPE_BYTES", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -194,7 +184,6 @@ impl AttributeType { } /// MsgAddAttributeRequest defines an sdk.Msg type that is used to add a new attribute to an account. /// Attributes may only be set in an account by the account that the attribute name resolves to. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddAttributeRequest { /// The attribute name. @@ -217,12 +206,10 @@ pub struct MsgAddAttributeRequest { pub expiration_date: ::core::option::Option<::prost_types::Timestamp>, } /// MsgAddAttributeResponse defines the Msg/AddAttribute response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddAttributeResponse {} /// MsgUpdateAttributeRequest defines an sdk.Msg type that is used to update an existing attribute to an account. /// Attributes may only be set in an account by the account that the attribute name resolves to. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateAttributeRequest { /// The attribute name. @@ -248,12 +235,10 @@ pub struct MsgUpdateAttributeRequest { pub owner: ::prost::alloc::string::String, } /// MsgUpdateAttributeResponse defines the Msg/UpdateAttribute response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateAttributeResponse {} /// MsgUpdateAttributeExpirationRequest defines an sdk.Msg type that is used to update an existing attribute's expiration /// date -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateAttributeExpirationRequest { /// The attribute name. @@ -273,12 +258,10 @@ pub struct MsgUpdateAttributeExpirationRequest { pub owner: ::prost::alloc::string::String, } /// MsgUpdateAttributeExpirationResponse defines the Msg/Vote response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateAttributeExpirationResponse {} /// MsgDeleteAttributeRequest defines a message to delete an attribute from an account /// Attributes may only be removed from an account by the account that the attribute name resolves to. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteAttributeRequest { /// The attribute name. @@ -292,12 +275,10 @@ pub struct MsgDeleteAttributeRequest { pub owner: ::prost::alloc::string::String, } /// MsgDeleteAttributeResponse defines the Msg/DeleteAttribute response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteAttributeResponse {} /// MsgDeleteDistinctAttributeRequest defines a message to delete an attribute with matching name, value, and type from /// an account. Attributes may only be removed from an account by the account that the attribute name resolves to. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteDistinctAttributeRequest { /// The attribute name. @@ -314,11 +295,9 @@ pub struct MsgDeleteDistinctAttributeRequest { pub owner: ::prost::alloc::string::String, } /// MsgDeleteDistinctAttributeResponse defines the Msg/DeleteDistinctAttribute response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteDistinctAttributeResponse {} /// MsgSetAccountDataRequest defines a message to set an account's accountdata attribute. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataRequest { #[prost(string, tag = "1")] @@ -327,11 +306,9 @@ pub struct MsgSetAccountDataRequest { pub account: ::prost::alloc::string::String, } /// MsgSetAccountDataResponse defines the Msg/SetAccountData response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataResponse {} /// MsgUpdateParamsRequest is a request message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsRequest { /// authority should be the governance module account address. @@ -342,14 +319,19 @@ pub struct MsgUpdateParamsRequest { pub params: ::core::option::Option, } /// MsgUpdateParamsResponse is a response message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Msg defines the attribute module Msg service. @@ -438,10 +420,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -460,10 +439,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -485,10 +461,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -508,10 +481,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -533,10 +503,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -556,10 +523,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -578,10 +542,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -599,7 +560,13 @@ pub mod msg_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] @@ -999,15 +966,17 @@ pub mod msg_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -1031,11 +1000,9 @@ pub mod msg_server { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -1043,7 +1010,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryAttributeRequest is the request type for the Query/Attribute method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributeRequest { /// account defines the address to query for. @@ -1058,7 +1024,6 @@ pub struct QueryAttributeRequest { ::core::option::Option, } /// QueryAttributeResponse is the response type for the Query/Attribute method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributeResponse { /// a string containing the address of the account the attributes are assigned to. @@ -1073,7 +1038,6 @@ pub struct QueryAttributeResponse { ::core::option::Option, } /// QueryAttributesRequest is the request type for the Query/Attributes method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributesRequest { /// account defines the address to query for. @@ -1085,7 +1049,6 @@ pub struct QueryAttributesRequest { ::core::option::Option, } /// QueryAttributesResponse is the response type for the Query/Attributes method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributesResponse { /// a string containing the address of the account the attributes are assigned to= @@ -1100,7 +1063,6 @@ pub struct QueryAttributesResponse { ::core::option::Option, } /// QueryScanRequest is the request type for the Query/Scan method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScanRequest { /// account defines the address to query for. @@ -1115,7 +1077,6 @@ pub struct QueryScanRequest { ::core::option::Option, } /// QueryScanResponse is the response type for the Query/Scan method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScanResponse { /// a string containing the address of the account the attributes are assigned to= @@ -1130,7 +1091,6 @@ pub struct QueryScanResponse { ::core::option::Option, } /// QueryAttributeAccountsRequest is the request type for the Query/AttributeAccounts method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributeAccountsRequest { /// name is the attribute name to query for @@ -1142,7 +1102,6 @@ pub struct QueryAttributeAccountsRequest { ::core::option::Option, } /// QueryAttributeAccountsResponse is the response type for the Query/AttributeAccounts method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttributeAccountsResponse { /// list of account addresses that have attributes of request name @@ -1154,7 +1113,6 @@ pub struct QueryAttributeAccountsResponse { ::core::option::Option, } /// QueryAccountDataRequest is the request type for the Query/AccountData method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountDataRequest { /// account is the bech32 address of the account to get the data for @@ -1162,7 +1120,6 @@ pub struct QueryAccountDataRequest { pub account: ::prost::alloc::string::String, } /// QueryAccountDataResponse is the response type for the Query/AccountData method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountDataResponse { /// value is the accountdata attribute value for the requested account. @@ -1173,7 +1130,13 @@ pub struct QueryAccountDataResponse { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Query defines the gRPC querier service for attribute module. @@ -1265,10 +1228,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1285,10 +1245,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1307,10 +1264,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1328,10 +1282,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.attribute.v1.Query/Scan"); @@ -1349,10 +1300,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1372,10 +1320,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1393,7 +1338,13 @@ pub mod query_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] @@ -1735,15 +1686,17 @@ pub mod query_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -1767,7 +1720,6 @@ pub mod query_server { } } /// GenesisState defines the attribute module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the parameters of the module. diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs index 22009e8..d8915e1 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// AccessGrant associates a collection of permissions with an address for delegated marker account control. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessGrant { #[prost(string, tag = "1")] @@ -35,6 +34,7 @@ pub enum Access { /// - Update the marker's required attributes. /// - Update the send-deny list. /// - Use the transfer or bank send endpoints to move marker funds out of their own account. + /// /// This access right is only supported on RESTRICTED markers. Transfer = 7, /// ACCESS_FORCE_TRANSFER is the ability to transfer restricted coins from a 3rd-party account without their signature. @@ -48,15 +48,15 @@ impl Access { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Access::Unspecified => "ACCESS_UNSPECIFIED", - Access::Mint => "ACCESS_MINT", - Access::Burn => "ACCESS_BURN", - Access::Deposit => "ACCESS_DEPOSIT", - Access::Withdraw => "ACCESS_WITHDRAW", - Access::Delete => "ACCESS_DELETE", - Access::Admin => "ACCESS_ADMIN", - Access::Transfer => "ACCESS_TRANSFER", - Access::ForceTransfer => "ACCESS_FORCE_TRANSFER", + Self::Unspecified => "ACCESS_UNSPECIFIED", + Self::Mint => "ACCESS_MINT", + Self::Burn => "ACCESS_BURN", + Self::Deposit => "ACCESS_DEPOSIT", + Self::Withdraw => "ACCESS_WITHDRAW", + Self::Delete => "ACCESS_DELETE", + Self::Admin => "ACCESS_ADMIN", + Self::Transfer => "ACCESS_TRANSFER", + Self::ForceTransfer => "ACCESS_FORCE_TRANSFER", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -76,7 +76,6 @@ impl Access { } } /// Params defines the set of params for the account module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// Deprecated: Prefer to use `max_supply` instead. Maximum amount of supply to allow a marker to be created with @@ -95,7 +94,6 @@ pub struct Params { pub max_supply: ::prost::alloc::string::String, } /// MarkerAccount holds the marker configuration information in addition to a base account structure. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MarkerAccount { /// base cosmos account information including address and coin holdings. @@ -136,7 +134,6 @@ pub struct MarkerAccount { pub required_attributes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// NetAssetValue defines a marker's net asset value -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NetAssetValue { /// price is the complete value of the asset's volume @@ -150,7 +147,6 @@ pub struct NetAssetValue { pub updated_block_height: u64, } /// EventMarkerAdd event emitted when marker is added -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerAdd { #[prost(string, tag = "1")] @@ -167,7 +163,6 @@ pub struct EventMarkerAdd { pub address: ::prost::alloc::string::String, } /// EventMarkerAddAccess event emitted when marker access is added -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerAddAccess { #[prost(message, optional, tag = "1")] @@ -178,7 +173,6 @@ pub struct EventMarkerAddAccess { pub administrator: ::prost::alloc::string::String, } /// EventMarkerAccess event access permissions for address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerAccess { #[prost(string, tag = "1")] @@ -187,7 +181,6 @@ pub struct EventMarkerAccess { pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// EventMarkerDeleteAccess event emitted when marker access is revoked -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerDeleteAccess { #[prost(string, tag = "1")] @@ -198,7 +191,6 @@ pub struct EventMarkerDeleteAccess { pub administrator: ::prost::alloc::string::String, } /// EventMarkerFinalize event emitted when marker is finalized -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerFinalize { #[prost(string, tag = "1")] @@ -207,7 +199,6 @@ pub struct EventMarkerFinalize { pub administrator: ::prost::alloc::string::String, } /// EventMarkerActivate event emitted when marker is activated -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerActivate { #[prost(string, tag = "1")] @@ -216,7 +207,6 @@ pub struct EventMarkerActivate { pub administrator: ::prost::alloc::string::String, } /// EventMarkerCancel event emitted when marker is cancelled -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerCancel { #[prost(string, tag = "1")] @@ -225,7 +215,6 @@ pub struct EventMarkerCancel { pub administrator: ::prost::alloc::string::String, } /// EventMarkerDelete event emitted when marker is deleted -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerDelete { #[prost(string, tag = "1")] @@ -234,7 +223,6 @@ pub struct EventMarkerDelete { pub administrator: ::prost::alloc::string::String, } /// EventMarkerMint event emitted when additional marker supply is minted -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerMint { #[prost(string, tag = "1")] @@ -245,7 +233,6 @@ pub struct EventMarkerMint { pub administrator: ::prost::alloc::string::String, } /// EventMarkerBurn event emitted when coin is burned from marker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerBurn { #[prost(string, tag = "1")] @@ -256,7 +243,6 @@ pub struct EventMarkerBurn { pub administrator: ::prost::alloc::string::String, } /// EventMarkerWithdraw event emitted when coins are withdrew from marker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerWithdraw { #[prost(string, tag = "1")] @@ -269,7 +255,6 @@ pub struct EventMarkerWithdraw { pub to_address: ::prost::alloc::string::String, } /// EventMarkerTransfer event emitted when coins are transfered to from account to another -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerTransfer { #[prost(string, tag = "1")] @@ -284,7 +269,6 @@ pub struct EventMarkerTransfer { pub from_address: ::prost::alloc::string::String, } /// EventMarkerSetDenomMetadata event emitted when metadata is set on marker with denom -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerSetDenomMetadata { #[prost(string, tag = "1")] @@ -303,7 +287,6 @@ pub struct EventMarkerSetDenomMetadata { pub metadata_symbol: ::prost::alloc::string::String, } /// EventDenomUnit denom units for set denom metadata event -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventDenomUnit { #[prost(string, tag = "1")] @@ -314,7 +297,6 @@ pub struct EventDenomUnit { pub aliases: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// EventSetNetAssetValue event emitted when Net Asset Value for marker is update or added -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSetNetAssetValue { #[prost(string, tag = "1")] @@ -327,7 +309,6 @@ pub struct EventSetNetAssetValue { pub source: ::prost::alloc::string::String, } /// EventMarkerParamsUpdated event emitted when marker params are updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMarkerParamsUpdated { #[prost(string, tag = "1")] @@ -355,9 +336,9 @@ impl MarkerType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - MarkerType::Unspecified => "MARKER_TYPE_UNSPECIFIED", - MarkerType::Coin => "MARKER_TYPE_COIN", - MarkerType::Restricted => "MARKER_TYPE_RESTRICTED", + Self::Unspecified => "MARKER_TYPE_UNSPECIFIED", + Self::Coin => "MARKER_TYPE_COIN", + Self::Restricted => "MARKER_TYPE_RESTRICTED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -395,12 +376,12 @@ impl MarkerStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - MarkerStatus::Unspecified => "MARKER_STATUS_UNSPECIFIED", - MarkerStatus::Proposed => "MARKER_STATUS_PROPOSED", - MarkerStatus::Finalized => "MARKER_STATUS_FINALIZED", - MarkerStatus::Active => "MARKER_STATUS_ACTIVE", - MarkerStatus::Cancelled => "MARKER_STATUS_CANCELLED", - MarkerStatus::Destroyed => "MARKER_STATUS_DESTROYED", + Self::Unspecified => "MARKER_STATUS_UNSPECIFIED", + Self::Proposed => "MARKER_STATUS_PROPOSED", + Self::Finalized => "MARKER_STATUS_FINALIZED", + Self::Active => "MARKER_STATUS_ACTIVE", + Self::Cancelled => "MARKER_STATUS_CANCELLED", + Self::Destroyed => "MARKER_STATUS_DESTROYED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -418,7 +399,6 @@ impl MarkerStatus { } /// MsgGrantAllowanceRequest validates permission to create a fee grant based on marker admin access. If /// successful a feegrant is recorded where the marker account itself is the grantor -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgGrantAllowanceRequest { #[prost(string, tag = "1")] @@ -433,12 +413,10 @@ pub struct MsgGrantAllowanceRequest { pub allowance: ::core::option::Option<::prost_types::Any>, } /// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgGrantAllowanceResponse {} /// MsgAddMarkerRequest defines the Msg/AddMarker request type. /// If being provided as a governance proposal, set the from_address to the gov module's account address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddMarkerRequest { #[prost(message, optional, tag = "1")] @@ -470,11 +448,9 @@ pub struct MsgAddMarkerRequest { pub usd_mills: u64, } /// MsgAddMarkerResponse defines the Msg/AddMarker response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddMarkerResponse {} /// MsgAddAccessRequest defines the Msg/AddAccess request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddAccessRequest { #[prost(string, tag = "1")] @@ -485,11 +461,9 @@ pub struct MsgAddAccessRequest { pub access: ::prost::alloc::vec::Vec, } /// MsgAddAccessResponse defines the Msg/AddAccess response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddAccessResponse {} /// MsgDeleteAccessRequest defines the Msg/DeleteAccess request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteAccessRequest { #[prost(string, tag = "1")] @@ -500,11 +474,9 @@ pub struct MsgDeleteAccessRequest { pub removed_address: ::prost::alloc::string::String, } /// MsgDeleteAccessResponse defines the Msg/DeleteAccess response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteAccessResponse {} /// MsgFinalizeRequest defines the Msg/Finalize request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgFinalizeRequest { #[prost(string, tag = "1")] @@ -513,11 +485,9 @@ pub struct MsgFinalizeRequest { pub administrator: ::prost::alloc::string::String, } /// MsgFinalizeResponse defines the Msg/Finalize response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgFinalizeResponse {} /// MsgActivateRequest defines the Msg/Activate request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgActivateRequest { #[prost(string, tag = "1")] @@ -526,11 +496,9 @@ pub struct MsgActivateRequest { pub administrator: ::prost::alloc::string::String, } /// MsgActivateResponse defines the Msg/Activate response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgActivateResponse {} /// MsgCancelRequest defines the Msg/Cancel request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelRequest { #[prost(string, tag = "1")] @@ -539,11 +507,9 @@ pub struct MsgCancelRequest { pub administrator: ::prost::alloc::string::String, } /// MsgCancelResponse defines the Msg/Cancel response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCancelResponse {} /// MsgDeleteRequest defines the Msg/Delete request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteRequest { #[prost(string, tag = "1")] @@ -552,11 +518,9 @@ pub struct MsgDeleteRequest { pub administrator: ::prost::alloc::string::String, } /// MsgDeleteResponse defines the Msg/Delete response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteResponse {} /// MsgMintRequest defines the Msg/Mint request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMintRequest { #[prost(message, optional, tag = "1")] @@ -565,11 +529,9 @@ pub struct MsgMintRequest { pub administrator: ::prost::alloc::string::String, } /// MsgMintResponse defines the Msg/Mint response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgMintResponse {} /// MsgBurnRequest defines the Msg/Burn request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBurnRequest { #[prost(message, optional, tag = "1")] @@ -578,11 +540,9 @@ pub struct MsgBurnRequest { pub administrator: ::prost::alloc::string::String, } /// MsgBurnResponse defines the Msg/Burn response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgBurnResponse {} /// MsgWithdrawRequest defines the Msg/Withdraw request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawRequest { #[prost(string, tag = "1")] @@ -595,11 +555,9 @@ pub struct MsgWithdrawRequest { pub amount: ::prost::alloc::vec::Vec, } /// MsgWithdrawResponse defines the Msg/Withdraw response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgWithdrawResponse {} /// MsgTransferRequest defines the Msg/Transfer request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTransferRequest { #[prost(message, optional, tag = "1")] @@ -612,25 +570,20 @@ pub struct MsgTransferRequest { pub to_address: ::prost::alloc::string::String, } /// MsgTransferResponse defines the Msg/Transfer response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgTransferResponse {} /// MsgIbcTransferRequest defines the Msg/IbcTransfer request type for markers. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgIbcTransferRequest { #[prost(message, optional, tag = "1")] - pub transfer: - ::core::option::Option, + pub transfer: ::core::option::Option, #[prost(string, tag = "2")] pub administrator: ::prost::alloc::string::String, } /// MsgIbcTransferResponse defines the Msg/IbcTransfer response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgIbcTransferResponse {} /// MsgSetDenomMetadataRequest defines the Msg/SetDenomMetadata request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetDenomMetadataRequest { #[prost(message, optional, tag = "1")] @@ -639,11 +592,9 @@ pub struct MsgSetDenomMetadataRequest { pub administrator: ::prost::alloc::string::String, } /// MsgSetDenomMetadataResponse defines the Msg/SetDenomMetadata response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetDenomMetadataResponse {} /// MsgAddFinalizeActivateMarkerRequest defines the Msg/AddFinalizeActivateMarker request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddFinalizeActivateMarkerRequest { #[prost(message, optional, tag = "1")] @@ -673,12 +624,10 @@ pub struct MsgAddFinalizeActivateMarkerRequest { pub usd_mills: u64, } /// MsgAddFinalizeActivateMarkerResponse defines the Msg/AddFinalizeActivateMarker response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddFinalizeActivateMarkerResponse {} /// MsgSupplyIncreaseProposalRequest defines a governance proposal to administer a marker and increase total supply of /// the marker through minting coin and placing it within the marker or assigning it directly to an account -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSupplyIncreaseProposalRequest { #[prost(message, optional, tag = "1")] @@ -691,11 +640,9 @@ pub struct MsgSupplyIncreaseProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgSupplyIncreaseProposalResponse defines the Msg/SupplyIncreaseProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSupplyIncreaseProposalResponse {} /// MsgSupplyDecreaseProposalRequest defines a governance proposal to decrease total supply of the marker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSupplyDecreaseProposalRequest { #[prost(message, optional, tag = "1")] @@ -705,13 +652,11 @@ pub struct MsgSupplyDecreaseProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgSupplyIncreaseProposalResponse defines the Msg/SupplyDecreaseProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSupplyDecreaseProposalResponse {} /// MsgUpdateRequiredAttributesRequest defines a msg to update/add/remove required attributes from a resticted marker /// signer must have transfer authority to change attributes, to update attribute add current to remove list and new to /// add list -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateRequiredAttributesRequest { /// The denomination of the marker to update. @@ -728,12 +673,10 @@ pub struct MsgUpdateRequiredAttributesRequest { pub transfer_authority: ::prost::alloc::string::String, } /// MsgUpdateRequiredAttributesResponse defines the Msg/UpdateRequiredAttributes response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateRequiredAttributesResponse {} /// MsgUpdateForcedTransferRequest defines a msg to update the allow_forced_transfer field of a marker. /// It is only usable via governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateForcedTransferRequest { /// The denomination of the marker to update. @@ -747,12 +690,10 @@ pub struct MsgUpdateForcedTransferRequest { pub authority: ::prost::alloc::string::String, } /// MsgUpdateForcedTransferResponse defines the Msg/UpdateForcedTransfer response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateForcedTransferResponse {} /// MsgSetAccountDataRequest defines a msg to set/update/delete the account data for a marker. /// Signer must have deposit authority or be a gov proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataRequest { /// The denomination of the marker to update. @@ -766,12 +707,10 @@ pub struct MsgSetAccountDataRequest { pub signer: ::prost::alloc::string::String, } /// MsgSetAccountDataResponse defines the Msg/SetAccountData response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataResponse {} /// MsgUpdateSendDenyListRequest defines a msg to add/remove addresses to send deny list for a resticted marker /// signer must have transfer authority -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateSendDenyListRequest { /// The denomination of the marker to update. @@ -788,11 +727,9 @@ pub struct MsgUpdateSendDenyListRequest { pub authority: ::prost::alloc::string::String, } /// MsgUpdateSendDenyListResponse defines the Msg/UpdateSendDenyList response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateSendDenyListResponse {} /// MsgAddNetAssetValuesRequest defines the Msg/AddNetAssetValues request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddNetAssetValuesRequest { #[prost(string, tag = "1")] @@ -803,11 +740,9 @@ pub struct MsgAddNetAssetValuesRequest { pub net_asset_values: ::prost::alloc::vec::Vec, } /// MsgAddNetAssetValuesResponse defines the Msg/AddNetAssetValue response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddNetAssetValuesResponse {} /// MsgSetAdministratorProposalRequest defines the Msg/SetAdministratorProposal request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetAdministratorProposalRequest { #[prost(string, tag = "1")] @@ -819,11 +754,9 @@ pub struct MsgSetAdministratorProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgSetAdministratorProposalResponse defines the Msg/SetAdministratorProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetAdministratorProposalResponse {} /// MsgRemoveAdministratorProposalRequest defines the Msg/RemoveAdministratorProposal request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveAdministratorProposalRequest { #[prost(string, tag = "1")] @@ -835,11 +768,9 @@ pub struct MsgRemoveAdministratorProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgRemoveAdministratorProposalResponse defines the Msg/RemoveAdministratorProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRemoveAdministratorProposalResponse {} /// MsgChangeStatusProposalRequest defines the Msg/ChangeStatusProposal request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChangeStatusProposalRequest { #[prost(string, tag = "1")] @@ -851,11 +782,9 @@ pub struct MsgChangeStatusProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgChangeStatusProposalResponse defines the Msg/ChangeStatusProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgChangeStatusProposalResponse {} /// MsgWithdrawEscrowProposalRequest defines the Msg/WithdrawEscrowProposal request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawEscrowProposalRequest { #[prost(string, tag = "1")] @@ -869,11 +798,9 @@ pub struct MsgWithdrawEscrowProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgWithdrawEscrowProposalResponse defines the Msg/WithdrawEscrowProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgWithdrawEscrowProposalResponse {} /// MsgSetDenomMetadataProposalRequest defines the Msg/SetDenomMetadataProposal request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetDenomMetadataProposalRequest { #[prost(message, optional, tag = "1")] @@ -883,11 +810,9 @@ pub struct MsgSetDenomMetadataProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgSetDenomMetadataProposalResponse defines the Msg/SetDenomMetadataProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetDenomMetadataProposalResponse {} /// MsgUpdateParamsRequest is a request message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsRequest { /// authority should be the governance module account address. @@ -898,14 +823,19 @@ pub struct MsgUpdateParamsRequest { pub params: ::core::option::Option, } /// MsgUpdateParamsResponse is a response message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Msg defines the Marker Msg service. @@ -994,10 +924,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Finalize"); @@ -1013,10 +940,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Activate"); @@ -1031,10 +955,7 @@ pub mod msg_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Cancel"); @@ -1049,10 +970,7 @@ pub mod msg_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Delete"); @@ -1067,10 +985,7 @@ pub mod msg_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Mint"); @@ -1085,10 +1000,7 @@ pub mod msg_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Burn"); @@ -1104,10 +1016,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/AddAccess"); @@ -1123,10 +1032,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1143,10 +1049,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Withdraw"); @@ -1162,10 +1065,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/AddMarker"); @@ -1181,10 +1081,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Msg/Transfer"); @@ -1201,10 +1098,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1221,10 +1115,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1244,10 +1135,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1268,10 +1156,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1293,10 +1178,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1318,10 +1200,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1343,10 +1222,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1368,10 +1244,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1391,10 +1264,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1413,10 +1283,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1436,10 +1303,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1460,10 +1324,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1485,10 +1346,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1510,10 +1368,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1535,10 +1390,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1560,10 +1412,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1583,10 +1432,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1602,7 +1448,13 @@ pub mod msg_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] @@ -2956,15 +2808,17 @@ pub mod msg_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -3041,27 +2895,27 @@ impl SiPrefix { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - SiPrefix::None => "SI_PREFIX_NONE", - SiPrefix::Deka => "SI_PREFIX_DEKA", - SiPrefix::Hecto => "SI_PREFIX_HECTO", - SiPrefix::Kilo => "SI_PREFIX_KILO", - SiPrefix::Mega => "SI_PREFIX_MEGA", - SiPrefix::Giga => "SI_PREFIX_GIGA", - SiPrefix::Tera => "SI_PREFIX_TERA", - SiPrefix::Peta => "SI_PREFIX_PETA", - SiPrefix::Exa => "SI_PREFIX_EXA", - SiPrefix::Zetta => "SI_PREFIX_ZETTA", - SiPrefix::Yotta => "SI_PREFIX_YOTTA", - SiPrefix::Deci => "SI_PREFIX_DECI", - SiPrefix::Centi => "SI_PREFIX_CENTI", - SiPrefix::Milli => "SI_PREFIX_MILLI", - SiPrefix::Micro => "SI_PREFIX_MICRO", - SiPrefix::Nano => "SI_PREFIX_NANO", - SiPrefix::Pico => "SI_PREFIX_PICO", - SiPrefix::Femto => "SI_PREFIX_FEMTO", - SiPrefix::Atto => "SI_PREFIX_ATTO", - SiPrefix::Zepto => "SI_PREFIX_ZEPTO", - SiPrefix::Yocto => "SI_PREFIX_YOCTO", + Self::None => "SI_PREFIX_NONE", + Self::Deka => "SI_PREFIX_DEKA", + Self::Hecto => "SI_PREFIX_HECTO", + Self::Kilo => "SI_PREFIX_KILO", + Self::Mega => "SI_PREFIX_MEGA", + Self::Giga => "SI_PREFIX_GIGA", + Self::Tera => "SI_PREFIX_TERA", + Self::Peta => "SI_PREFIX_PETA", + Self::Exa => "SI_PREFIX_EXA", + Self::Zetta => "SI_PREFIX_ZETTA", + Self::Yotta => "SI_PREFIX_YOTTA", + Self::Deci => "SI_PREFIX_DECI", + Self::Centi => "SI_PREFIX_CENTI", + Self::Milli => "SI_PREFIX_MILLI", + Self::Micro => "SI_PREFIX_MICRO", + Self::Nano => "SI_PREFIX_NANO", + Self::Pico => "SI_PREFIX_PICO", + Self::Femto => "SI_PREFIX_FEMTO", + Self::Atto => "SI_PREFIX_ATTO", + Self::Zepto => "SI_PREFIX_ZEPTO", + Self::Yocto => "SI_PREFIX_YOCTO", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3093,11 +2947,9 @@ impl SiPrefix { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -3105,7 +2957,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryAllMarkersRequest is the request type for the Query/AllMarkers method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllMarkersRequest { /// Optional status to filter request @@ -3117,7 +2968,6 @@ pub struct QueryAllMarkersRequest { ::core::option::Option, } /// QueryAllMarkersResponse is the response type for the Query/AllMarkers method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllMarkersResponse { #[prost(message, repeated, tag = "1")] @@ -3128,7 +2978,6 @@ pub struct QueryAllMarkersResponse { ::core::option::Option, } /// QueryMarkerRequest is the request type for the Query/Marker method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMarkerRequest { /// the address or denom of the marker @@ -3136,14 +2985,12 @@ pub struct QueryMarkerRequest { pub id: ::prost::alloc::string::String, } /// QueryMarkerResponse is the response type for the Query/Marker method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMarkerResponse { #[prost(message, optional, tag = "1")] pub marker: ::core::option::Option<::prost_types::Any>, } /// QueryHoldingRequest is the request type for the Query/MarkerHolders method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHoldingRequest { /// the address or denom of the marker @@ -3155,7 +3002,6 @@ pub struct QueryHoldingRequest { ::core::option::Option, } /// QueryHoldingResponse is the response type for the Query/MarkerHolders method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHoldingResponse { #[prost(message, repeated, tag = "1")] @@ -3166,7 +3012,6 @@ pub struct QueryHoldingResponse { ::core::option::Option, } /// QuerySupplyRequest is the request type for the Query/MarkerSupply method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyRequest { /// address or denom for the marker @@ -3174,7 +3019,6 @@ pub struct QuerySupplyRequest { pub id: ::prost::alloc::string::String, } /// QuerySupplyResponse is the response type for the Query/MarkerSupply method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyResponse { /// amount is the supply of the marker. @@ -3182,7 +3026,6 @@ pub struct QuerySupplyResponse { pub amount: ::core::option::Option, } /// QueryEscrowRequest is the request type for the Query/MarkerEscrow method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowRequest { /// address or denom for the marker @@ -3190,14 +3033,12 @@ pub struct QueryEscrowRequest { pub id: ::prost::alloc::string::String, } /// QueryEscrowResponse is the response type for the Query/MarkerEscrow method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowResponse { #[prost(message, repeated, tag = "1")] pub escrow: ::prost::alloc::vec::Vec, } /// QueryAccessRequest is the request type for the Query/MarkerAccess method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccessRequest { /// address or denom for the marker @@ -3205,28 +3046,24 @@ pub struct QueryAccessRequest { pub id: ::prost::alloc::string::String, } /// QueryAccessResponse is the response type for the Query/MarkerAccess method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccessResponse { #[prost(message, repeated, tag = "1")] pub accounts: ::prost::alloc::vec::Vec, } /// QueryDenomMetadataRequest is the request type for Query/DenomMetadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataRequest { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, } /// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataResponse { #[prost(message, optional, tag = "1")] pub metadata: ::core::option::Option, } /// QueryAccountDataRequest is the request type for the Query/AccountData -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountDataRequest { /// The denomination to look up. @@ -3234,7 +3071,6 @@ pub struct QueryAccountDataRequest { pub denom: ::prost::alloc::string::String, } /// QueryAccountDataResponse is the response type for the Query/AccountData -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountDataResponse { /// The accountdata for the requested denom. @@ -3242,7 +3078,6 @@ pub struct QueryAccountDataResponse { pub value: ::prost::alloc::string::String, } /// Balance defines an account address and balance pair used in queries for accounts holding a marker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Balance { /// address is the address of the balance holder. @@ -3253,7 +3088,6 @@ pub struct Balance { pub coins: ::prost::alloc::vec::Vec, } /// QueryNetAssetValuesRequest is the request type for the Query/NetAssetValues method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNetAssetValuesRequest { /// address or denom for the marker @@ -3261,7 +3095,6 @@ pub struct QueryNetAssetValuesRequest { pub id: ::prost::alloc::string::String, } /// QueryNetAssetValuesRequest is the response type for the Query/NetAssetValues method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNetAssetValuesResponse { /// net asset values for marker denom @@ -3272,7 +3105,13 @@ pub struct QueryNetAssetValuesResponse { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Query defines the gRPC querier service for marker module. @@ -3364,10 +3203,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Params"); @@ -3383,10 +3219,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -3403,10 +3236,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Marker"); @@ -3422,10 +3252,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Holding"); @@ -3441,10 +3268,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Supply"); @@ -3460,10 +3284,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Escrow"); @@ -3479,10 +3300,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.marker.v1.Query/Access"); @@ -3498,10 +3316,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -3520,10 +3335,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -3540,10 +3352,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -3561,7 +3370,13 @@ pub mod query_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] @@ -4071,15 +3886,17 @@ pub mod query_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -4104,7 +3921,6 @@ pub mod query_server { } /// MarkerTransferAuthorization gives the grantee permissions to execute /// a marker transfer on behalf of the granter's account. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MarkerTransferAuthorization { /// transfer_limit is the total amount the grantee can transfer @@ -4116,7 +3932,6 @@ pub struct MarkerTransferAuthorization { pub allow_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GenesisState defines the account module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the parameters of the module. @@ -4133,7 +3948,6 @@ pub struct GenesisState { pub deny_send_addresses: ::prost::alloc::vec::Vec, } /// DenySendAddress defines addresses that are denied sends for marker denom -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenySendAddress { /// marker_address is the marker's address for denied address @@ -4144,7 +3958,6 @@ pub struct DenySendAddress { pub deny_address: ::prost::alloc::string::String, } /// MarkerNetAssetValues defines the net asset values for a marker -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MarkerNetAssetValues { /// address defines the marker address @@ -4158,7 +3971,6 @@ pub struct MarkerNetAssetValues { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgAddMarkerRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddMarkerProposal { #[prost(string, tag = "1")] @@ -4185,7 +3997,6 @@ pub struct AddMarkerProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgSupplyIncreaseProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SupplyIncreaseProposal { #[prost(string, tag = "1")] @@ -4203,7 +4014,6 @@ pub struct SupplyIncreaseProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgSupplyDecreaseProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SupplyDecreaseProposal { #[prost(string, tag = "1")] @@ -4218,7 +4028,6 @@ pub struct SupplyDecreaseProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgSetAdministratorProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetAdministratorProposal { #[prost(string, tag = "1")] @@ -4235,7 +4044,6 @@ pub struct SetAdministratorProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgRemoveAdministratorProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveAdministratorProposal { #[prost(string, tag = "1")] @@ -4251,7 +4059,6 @@ pub struct RemoveAdministratorProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgChangeStatusProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChangeStatusProposal { #[prost(string, tag = "1")] @@ -4267,7 +4074,6 @@ pub struct ChangeStatusProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgWithdrawEscrowProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WithdrawEscrowProposal { #[prost(string, tag = "1")] @@ -4285,7 +4091,6 @@ pub struct WithdrawEscrowProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgSetDenomMetadataProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetDenomMetadataProposal { #[prost(string, tag = "1")] diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.p8e.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.p8e.rs index 0af0440..e7753f3 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.p8e.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.p8e.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Contract { #[prost(message, optional, tag = "1")] @@ -26,7 +25,6 @@ pub struct Contract { pub context: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DefinitionSpec { #[prost(string, tag = "1")] @@ -39,7 +37,6 @@ pub struct DefinitionSpec { pub r#type: i32, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fact { #[prost(string, tag = "1")] @@ -48,7 +45,6 @@ pub struct Fact { pub data_location: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Condition { #[prost(string, tag = "1")] @@ -57,7 +53,6 @@ pub struct Condition { pub result: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Consideration { #[prost(string, tag = "1")] @@ -68,7 +63,6 @@ pub struct Consideration { pub result: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProposedFact { #[prost(string, tag = "1")] @@ -81,7 +75,6 @@ pub struct ProposedFact { pub ancestor: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionResult { #[prost(message, optional, tag = "1")] @@ -94,14 +87,12 @@ pub struct ExecutionResult { pub error_message: ::prost::alloc::string::String, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Recitals { #[prost(message, repeated, tag = "1")] pub parties: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Recital { #[prost(enumeration = "PartyType", tag = "1")] @@ -112,7 +103,6 @@ pub struct Recital { pub address: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Location { #[prost(message, optional, tag = "1")] @@ -121,7 +111,6 @@ pub struct Location { pub classname: ::prost::alloc::string::String, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProvenanceReference { #[prost(message, optional, tag = "1")] @@ -134,14 +123,12 @@ pub struct ProvenanceReference { pub name: ::prost::alloc::string::String, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureSet { #[prost(message, repeated, tag = "1")] pub signatures: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Signature { #[prost(string, tag = "1")] @@ -154,7 +141,6 @@ pub struct Signature { pub signer: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningAndEncryptionPublicKeys { #[prost(message, optional, tag = "1")] @@ -163,7 +149,6 @@ pub struct SigningAndEncryptionPublicKeys { pub encryption_public_key: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PublicKey { #[prost(bytes = "vec", tag = "1")] @@ -174,14 +159,12 @@ pub struct PublicKey { pub curve: i32, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Uuid { #[prost(string, tag = "1")] pub value: ::prost::alloc::string::String, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Timestamp { #[prost(int64, tag = "1")] @@ -190,7 +173,6 @@ pub struct Timestamp { pub nanos: i32, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpec { #[prost(message, optional, tag = "1")] @@ -205,7 +187,6 @@ pub struct ContractSpec { pub consideration_specs: ::prost::alloc::vec::Vec, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConditionSpec { #[prost(string, tag = "1")] @@ -216,7 +197,6 @@ pub struct ConditionSpec { pub output_spec: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsiderationSpec { #[prost(string, tag = "1")] @@ -229,7 +209,6 @@ pub struct ConsiderationSpec { pub output_spec: ::core::option::Option, } /// Deprecated: Do not use. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OutputSpec { #[prost(message, optional, tag = "1")] @@ -255,10 +234,10 @@ impl DefinitionSpecType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - DefinitionSpecType::Unknown => "DEFINITION_SPEC_TYPE_UNKNOWN", - DefinitionSpecType::Proposed => "DEFINITION_SPEC_TYPE_PROPOSED", - DefinitionSpecType::Fact => "DEFINITION_SPEC_TYPE_FACT", - DefinitionSpecType::FactList => "DEFINITION_SPEC_TYPE_FACT_LIST", + Self::Unknown => "DEFINITION_SPEC_TYPE_UNKNOWN", + Self::Proposed => "DEFINITION_SPEC_TYPE_PROPOSED", + Self::Fact => "DEFINITION_SPEC_TYPE_FACT", + Self::FactList => "DEFINITION_SPEC_TYPE_FACT_LIST", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -288,8 +267,8 @@ impl PublicKeyCurve { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - PublicKeyCurve::Secp256k1 => "SECP256K1", - PublicKeyCurve::P256 => "P256", + Self::Secp256k1 => "SECP256K1", + Self::P256 => "P256", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -315,7 +294,7 @@ impl PublicKeyType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - PublicKeyType::Elliptic => "ELLIPTIC", + Self::Elliptic => "ELLIPTIC", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -346,10 +325,10 @@ impl ExecutionResultType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ExecutionResultType::ResultTypeUnknown => "RESULT_TYPE_UNKNOWN", - ExecutionResultType::ResultTypePass => "RESULT_TYPE_PASS", - ExecutionResultType::ResultTypeSkip => "RESULT_TYPE_SKIP", - ExecutionResultType::ResultTypeFail => "RESULT_TYPE_FAIL", + Self::ResultTypeUnknown => "RESULT_TYPE_UNKNOWN", + Self::ResultTypePass => "RESULT_TYPE_PASS", + Self::ResultTypeSkip => "RESULT_TYPE_SKIP", + Self::ResultTypeFail => "RESULT_TYPE_FAIL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -399,18 +378,18 @@ impl PartyType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - PartyType::Unknown => "PARTY_TYPE_UNKNOWN", - PartyType::Originator => "PARTY_TYPE_ORIGINATOR", - PartyType::Servicer => "PARTY_TYPE_SERVICER", - PartyType::Investor => "PARTY_TYPE_INVESTOR", - PartyType::Custodian => "PARTY_TYPE_CUSTODIAN", - PartyType::Owner => "PARTY_TYPE_OWNER", - PartyType::Affiliate => "PARTY_TYPE_AFFILIATE", - PartyType::Omnibus => "PARTY_TYPE_OMNIBUS", - PartyType::Provenance => "PARTY_TYPE_PROVENANCE", - PartyType::Marker => "PARTY_TYPE_MARKER", - PartyType::Controller => "PARTY_TYPE_CONTROLLER", - PartyType::Validator => "PARTY_TYPE_VALIDATOR", + Self::Unknown => "PARTY_TYPE_UNKNOWN", + Self::Originator => "PARTY_TYPE_ORIGINATOR", + Self::Servicer => "PARTY_TYPE_SERVICER", + Self::Investor => "PARTY_TYPE_INVESTOR", + Self::Custodian => "PARTY_TYPE_CUSTODIAN", + Self::Owner => "PARTY_TYPE_OWNER", + Self::Affiliate => "PARTY_TYPE_AFFILIATE", + Self::Omnibus => "PARTY_TYPE_OMNIBUS", + Self::Provenance => "PARTY_TYPE_PROVENANCE", + Self::Marker => "PARTY_TYPE_MARKER", + Self::Controller => "PARTY_TYPE_CONTROLLER", + Self::Validator => "PARTY_TYPE_VALIDATOR", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs index 254f732..120623c 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs @@ -1,10 +1,8 @@ // This file is @generated by prost-build. /// Params defines the set of params for the metadata module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params {} /// ScopeIdInfo contains various info regarding a scope id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeIdInfo { /// scope_id is the raw bytes of the scope address. @@ -24,7 +22,6 @@ pub struct ScopeIdInfo { pub scope_uuid: ::prost::alloc::string::String, } /// SessionIdInfo contains various info regarding a session id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionIdInfo { /// session_id is the raw bytes of the session address. @@ -50,7 +47,6 @@ pub struct SessionIdInfo { pub scope_id_info: ::core::option::Option, } /// RecordIdInfo contains various info regarding a record id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordIdInfo { /// record_id is the raw bytes of the record address. @@ -73,7 +69,6 @@ pub struct RecordIdInfo { pub scope_id_info: ::core::option::Option, } /// ScopeSpecIdInfo contains various info regarding a scope specification id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecIdInfo { /// scope_spec_id is the raw bytes of the scope specification address. @@ -93,7 +88,6 @@ pub struct ScopeSpecIdInfo { pub scope_spec_uuid: ::prost::alloc::string::String, } /// ContractSpecIdInfo contains various info regarding a contract specification id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecIdInfo { /// contract_spec_id is the raw bytes of the contract specification address. @@ -113,7 +107,6 @@ pub struct ContractSpecIdInfo { pub contract_spec_uuid: ::prost::alloc::string::String, } /// RecordSpecIdInfo contains various info regarding a record specification id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecIdInfo { /// record_spec_id is the raw bytes of the record specification address. @@ -137,7 +130,6 @@ pub struct RecordSpecIdInfo { } /// Defines an Locator object stored on chain, which represents a owner( blockchain address) associated with a endpoint /// uri for it's associated object store. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ObjectStoreLocator { /// account address the endpoint is owned by @@ -151,14 +143,12 @@ pub struct ObjectStoreLocator { pub encryption_key: ::prost::alloc::string::String, } /// Params defines the parameters for the metadata-locator module methods. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OsLocatorParams { #[prost(uint32, tag = "1")] pub max_uri_length: u32, } /// ScopeSpecification defines the required parties, resources, conditions, and consideration outputs for a contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecification { /// unique identifier for this specification on chain @@ -178,7 +168,6 @@ pub struct ScopeSpecification { pub contract_spec_ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// ContractSpecification defines the required parties, resources, conditions, and consideration outputs for a contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecification { /// unique identifier for this specification on chain @@ -205,7 +194,6 @@ pub struct ContractSpecification { pub mod contract_specification { /// Reference to a metadata record with a hash and type information for the instance of code that will process this /// contract - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Source { /// the address of a record on chain that represents this contract @@ -217,7 +205,6 @@ pub mod contract_specification { } } /// RecordSpecification defines the specification for a Record including allowed/required inputs/outputs -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecification { /// unique identifier for this specification on chain @@ -241,7 +228,6 @@ pub struct RecordSpecification { } /// InputSpecification defines a name, type_name, and source reference (either on or off chain) to define an input /// parameter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InputSpecification { /// name for this input @@ -257,7 +243,6 @@ pub struct InputSpecification { /// Nested message and enum types in `InputSpecification`. pub mod input_specification { /// source is either on chain (record_id) or off-chain (hash) - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Source { /// the address of a record on chain (For Established Records) @@ -269,7 +254,6 @@ pub mod input_specification { } } /// Description holds general information that is handy to associate with a structure. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Description { /// A Name for this thing. @@ -306,10 +290,10 @@ impl DefinitionType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - DefinitionType::Unspecified => "DEFINITION_TYPE_UNSPECIFIED", - DefinitionType::Proposed => "DEFINITION_TYPE_PROPOSED", - DefinitionType::Record => "DEFINITION_TYPE_RECORD", - DefinitionType::RecordList => "DEFINITION_TYPE_RECORD_LIST", + Self::Unspecified => "DEFINITION_TYPE_UNSPECIFIED", + Self::Proposed => "DEFINITION_TYPE_PROPOSED", + Self::Record => "DEFINITION_TYPE_RECORD", + Self::RecordList => "DEFINITION_TYPE_RECORD_LIST", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -357,17 +341,17 @@ impl PartyType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - PartyType::Unspecified => "PARTY_TYPE_UNSPECIFIED", - PartyType::Originator => "PARTY_TYPE_ORIGINATOR", - PartyType::Servicer => "PARTY_TYPE_SERVICER", - PartyType::Investor => "PARTY_TYPE_INVESTOR", - PartyType::Custodian => "PARTY_TYPE_CUSTODIAN", - PartyType::Owner => "PARTY_TYPE_OWNER", - PartyType::Affiliate => "PARTY_TYPE_AFFILIATE", - PartyType::Omnibus => "PARTY_TYPE_OMNIBUS", - PartyType::Provenance => "PARTY_TYPE_PROVENANCE", - PartyType::Controller => "PARTY_TYPE_CONTROLLER", - PartyType::Validator => "PARTY_TYPE_VALIDATOR", + Self::Unspecified => "PARTY_TYPE_UNSPECIFIED", + Self::Originator => "PARTY_TYPE_ORIGINATOR", + Self::Servicer => "PARTY_TYPE_SERVICER", + Self::Investor => "PARTY_TYPE_INVESTOR", + Self::Custodian => "PARTY_TYPE_CUSTODIAN", + Self::Owner => "PARTY_TYPE_OWNER", + Self::Affiliate => "PARTY_TYPE_AFFILIATE", + Self::Omnibus => "PARTY_TYPE_OMNIBUS", + Self::Provenance => "PARTY_TYPE_PROVENANCE", + Self::Controller => "PARTY_TYPE_CONTROLLER", + Self::Validator => "PARTY_TYPE_VALIDATOR", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -389,7 +373,6 @@ impl PartyType { } } /// Scope defines a root reference for a collection of records owned by one or more parties. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Scope { /// Unique ID for this scope. Implements sdk.Address interface for use where addresses are required in Cosmos @@ -405,8 +388,20 @@ pub struct Scope { /// Addresses in this list are authorized to receive off-chain data associated with this scope. #[prost(string, repeated, tag = "4")] pub data_access: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts - /// are supported for this value. This attribute may only be changed by the entity indicated once it is set. + /// The address that controls the value associated with this scope. + /// + /// The value owner is actually tracked by the bank module using a coin with the denom "nft/". + /// The value owner can be changed using WriteScope or anything that transfers funds, e.g. MsgSend. + /// + /// During WriteScope: + /// - If this field is empty, it indicates that there should not be a change to the value owner. + /// I.e. Once a scope has a value owner, it will always have one (until it's deleted). + /// - If this field has a value, the existing value owner will be looked up, and + /// - If there's already an existing value owner, they must be a signer, + /// and the coin will be transferred to the new value owner. + /// - If there isn't yet a value owner, the coin will be minted and sent to the new value owner. + /// If the scope already exists, the owners must be signers (just like changing other fields). + /// If it's a new scope, there's no special signer limitations related to the value owner. #[prost(string, tag = "5")] pub value_owner_address: ::prost::alloc::string::String, /// Whether all parties in this scope and its sessions must be present in this scope's owners field. @@ -418,7 +413,6 @@ pub struct Scope { /// The context will have a specification and set of parties involved. /// /// NOTE: When there are no more Records within a Scope that reference a Session, the Session is removed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Session { #[prost(bytes = "vec", tag = "1")] @@ -440,7 +434,6 @@ pub struct Session { pub audit: ::core::option::Option, } /// A record (of fact) is attached to a session or each consideration output from a contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Record { /// name/identifier for this record. Value must be unique within the scope. Also known as a Fact name @@ -463,7 +456,6 @@ pub struct Record { pub specification_id: ::prost::alloc::vec::Vec, } /// Process contains information used to uniquely identify what was used to generate this record -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Process { /// a name associated with the process (type_name, classname or smart contract common name) @@ -479,7 +471,6 @@ pub struct Process { /// Nested message and enum types in `Process`. pub mod process { /// unique identifier for this process - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum ProcessId { /// the address of a smart contract used for this process @@ -491,7 +482,6 @@ pub mod process { } } /// Tracks the inputs used to establish this record -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordInput { /// Name value included to link back to the definition spec. @@ -510,7 +500,6 @@ pub struct RecordInput { /// Nested message and enum types in `RecordInput`. pub mod record_input { /// data source - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Source { /// the address of a record on chain (For Established Records) @@ -522,7 +511,6 @@ pub mod record_input { } } /// RecordOutput encapsulates the output of a process recorded on chain -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordOutput { /// Hash of the data output that was output/generated for this record @@ -533,7 +521,6 @@ pub struct RecordOutput { pub status: i32, } /// A Party is an address with/in a given role associated with a contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Party { /// address of the account (on chain) @@ -547,7 +534,6 @@ pub struct Party { pub optional: bool, } /// AuditFields capture information about the last account to make modifications and when they were made -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuditFields { /// the date/time when this entry was created @@ -570,7 +556,6 @@ pub struct AuditFields { pub message: ::prost::alloc::string::String, } /// NetAssetValue defines a scope's net asset value -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NetAssetValue { /// price is the complete value of the asset's volume @@ -579,6 +564,11 @@ pub struct NetAssetValue { /// updated_block_height is the block height of last update #[prost(uint64, tag = "2")] pub updated_block_height: u64, + /// volume is the number of scope instances that were purchased for the price + /// Typically this will be null (equivalent to one) or one. The only reason this would be more than + /// one is for cases where the precision of the price denom is insufficient to represent the actual price + #[prost(uint64, tag = "3")] + pub volume: u64, } /// A set of types for inputs on a record (of fact) #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -598,9 +588,9 @@ impl RecordInputStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - RecordInputStatus::Unspecified => "RECORD_INPUT_STATUS_UNSPECIFIED", - RecordInputStatus::Proposed => "RECORD_INPUT_STATUS_PROPOSED", - RecordInputStatus::Record => "RECORD_INPUT_STATUS_RECORD", + Self::Unspecified => "RECORD_INPUT_STATUS_UNSPECIFIED", + Self::Proposed => "RECORD_INPUT_STATUS_PROPOSED", + Self::Record => "RECORD_INPUT_STATUS_RECORD", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -633,10 +623,10 @@ impl ResultStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ResultStatus::Unspecified => "RESULT_STATUS_UNSPECIFIED", - ResultStatus::Pass => "RESULT_STATUS_PASS", - ResultStatus::Skip => "RESULT_STATUS_SKIP", - ResultStatus::Fail => "RESULT_STATUS_FAIL", + Self::Unspecified => "RESULT_STATUS_UNSPECIFIED", + Self::Pass => "RESULT_STATUS_PASS", + Self::Skip => "RESULT_STATUS_SKIP", + Self::Fail => "RESULT_STATUS_FAIL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -651,7 +641,6 @@ impl ResultStatus { } } /// MsgWriteScopeRequest is the request type for the Msg/WriteScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteScopeRequest { /// scope is the Scope you want added or updated. @@ -678,7 +667,6 @@ pub struct MsgWriteScopeRequest { pub usd_mills: u64, } /// MsgWriteScopeResponse is the response type for the Msg/WriteScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteScopeResponse { /// scope_id_info contains information about the id/address of the scope that was added or updated. @@ -686,7 +674,6 @@ pub struct MsgWriteScopeResponse { pub scope_id_info: ::core::option::Option, } /// MsgDeleteScopeRequest is the request type for the Msg/DeleteScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeRequest { /// Unique ID for the scope to delete @@ -696,11 +683,9 @@ pub struct MsgDeleteScopeRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteScopeResponse is the response type for the Msg/DeleteScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeResponse {} /// MsgAddScopeDataAccessRequest is the request to add data access AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddScopeDataAccessRequest { /// scope MetadataAddress for updating data access @@ -714,11 +699,9 @@ pub struct MsgAddScopeDataAccessRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgAddScopeDataAccessResponse is the response for adding data access AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddScopeDataAccessResponse {} /// MsgDeleteScopeDataAccessRequest is the request to remove data access AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeDataAccessRequest { /// scope MetadataAddress for removing data access @@ -732,11 +715,9 @@ pub struct MsgDeleteScopeDataAccessRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteScopeDataAccessResponse is the response from removing data access AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeDataAccessResponse {} /// MsgAddScopeOwnerRequest is the request to add owner AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddScopeOwnerRequest { /// scope MetadataAddress for updating data access @@ -750,11 +731,9 @@ pub struct MsgAddScopeOwnerRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgAddScopeOwnerResponse is the response for adding owner AccAddresses to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddScopeOwnerResponse {} /// MsgDeleteScopeOwnerRequest is the request to remove owner AccAddresses to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeOwnerRequest { /// scope MetadataAddress for removing data access @@ -768,11 +747,9 @@ pub struct MsgDeleteScopeOwnerRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteScopeOwnerResponse is the response from removing owner AccAddress to scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeOwnerResponse {} /// MsgUpdateValueOwnersRequest is the request to update the value owner addresses in one or more scopes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateValueOwnersRequest { /// scope_ids are the scope metadata addresses of all scopes to be updated. @@ -786,11 +763,9 @@ pub struct MsgUpdateValueOwnersRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgUpdateValueOwnersResponse is the response from updating value owner addresses in one or more scopes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateValueOwnersResponse {} /// MsgMigrateValueOwnerRequest is the request to migrate all scopes with one value owner to another value owner. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMigrateValueOwnerRequest { /// existing is the value owner address that is being migrated. @@ -804,11 +779,9 @@ pub struct MsgMigrateValueOwnerRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgMigrateValueOwnerResponse is the response from migrating a value owner address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgMigrateValueOwnerResponse {} /// MsgWriteSessionRequest is the request type for the Msg/WriteSession RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteSessionRequest { /// session is the Session you want added or updated. @@ -834,7 +807,6 @@ pub struct MsgWriteSessionRequest { pub spec_uuid: ::prost::alloc::string::String, } /// SessionIDComponents contains fields for the components that make up a session id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionIdComponents { /// session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0" @@ -847,7 +819,6 @@ pub struct SessionIdComponents { /// Nested message and enum types in `SessionIdComponents`. pub mod session_id_components { /// scope is used to define the scope this session belongs to. - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum ScopeIdentifier { /// scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0" @@ -859,7 +830,6 @@ pub mod session_id_components { } } /// MsgWriteSessionResponse is the response type for the Msg/WriteSession RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteSessionResponse { /// session_id_info contains information about the id/address of the session that was added or updated. @@ -867,7 +837,6 @@ pub struct MsgWriteSessionResponse { pub session_id_info: ::core::option::Option, } /// MsgWriteRecordRequest is the request type for the Msg/WriteRecord RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteRecordRequest { /// record is the Record you want added or updated. @@ -898,7 +867,6 @@ pub struct MsgWriteRecordRequest { pub parties: ::prost::alloc::vec::Vec, } /// MsgWriteRecordResponse is the response type for the Msg/WriteRecord RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteRecordResponse { /// record_id_info contains information about the id/address of the record that was added or updated. @@ -906,7 +874,6 @@ pub struct MsgWriteRecordResponse { pub record_id_info: ::core::option::Option, } /// MsgDeleteRecordRequest is the request type for the Msg/DeleteRecord RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteRecordRequest { #[prost(bytes = "vec", tag = "1")] @@ -915,11 +882,9 @@ pub struct MsgDeleteRecordRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteRecordResponse is the response type for the Msg/DeleteRecord RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteRecordResponse {} /// MsgWriteScopeSpecificationRequest is the request type for the Msg/WriteScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteScopeSpecificationRequest { /// specification is the ScopeSpecification you want added or updated. @@ -938,7 +903,6 @@ pub struct MsgWriteScopeSpecificationRequest { pub spec_uuid: ::prost::alloc::string::String, } /// MsgWriteScopeSpecificationResponse is the response type for the Msg/WriteScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteScopeSpecificationResponse { /// scope_spec_id_info contains information about the id/address of the scope specification that was added or updated. @@ -946,7 +910,6 @@ pub struct MsgWriteScopeSpecificationResponse { pub scope_spec_id_info: ::core::option::Option, } /// MsgDeleteScopeSpecificationRequest is the request type for the Msg/DeleteScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeSpecificationRequest { /// MetadataAddress for the scope specification to delete. @@ -956,11 +919,9 @@ pub struct MsgDeleteScopeSpecificationRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteScopeSpecificationResponse is the response type for the Msg/DeleteScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteScopeSpecificationResponse {} /// MsgWriteContractSpecificationRequest is the request type for the Msg/WriteContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteContractSpecificationRequest { /// specification is the ContractSpecification you want added or updated. @@ -979,7 +940,6 @@ pub struct MsgWriteContractSpecificationRequest { pub spec_uuid: ::prost::alloc::string::String, } /// MsgWriteContractSpecificationResponse is the response type for the Msg/WriteContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteContractSpecificationResponse { /// contract_spec_id_info contains information about the id/address of the contract specification that was added or @@ -988,7 +948,6 @@ pub struct MsgWriteContractSpecificationResponse { pub contract_spec_id_info: ::core::option::Option, } /// MsgAddContractSpecToScopeSpecRequest is the request type for the Msg/AddContractSpecToScopeSpec RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddContractSpecToScopeSpecRequest { /// MetadataAddress for the contract specification to add. @@ -1001,11 +960,9 @@ pub struct MsgAddContractSpecToScopeSpecRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgAddContractSpecToScopeSpecResponse is the response type for the Msg/AddContractSpecToScopeSpec RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddContractSpecToScopeSpecResponse {} /// MsgDeleteContractSpecFromScopeSpecRequest is the request type for the Msg/DeleteContractSpecFromScopeSpec RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteContractSpecFromScopeSpecRequest { /// MetadataAddress for the contract specification to add. @@ -1019,11 +976,9 @@ pub struct MsgDeleteContractSpecFromScopeSpecRequest { } /// MsgDeleteContractSpecFromScopeSpecResponse is the response type for the Msg/DeleteContractSpecFromScopeSpec RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteContractSpecFromScopeSpecResponse {} /// MsgDeleteContractSpecificationRequest is the request type for the Msg/DeleteContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteContractSpecificationRequest { /// MetadataAddress for the contract specification to delete. @@ -1033,11 +988,9 @@ pub struct MsgDeleteContractSpecificationRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteContractSpecificationResponse is the response type for the Msg/DeleteContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteContractSpecificationResponse {} /// MsgWriteRecordSpecificationRequest is the request type for the Msg/WriteRecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteRecordSpecificationRequest { /// specification is the RecordSpecification you want added or updated. @@ -1056,7 +1009,6 @@ pub struct MsgWriteRecordSpecificationRequest { pub contract_spec_uuid: ::prost::alloc::string::String, } /// MsgWriteRecordSpecificationResponse is the response type for the Msg/WriteRecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteRecordSpecificationResponse { /// record_spec_id_info contains information about the id/address of the record specification that was added or @@ -1065,7 +1017,6 @@ pub struct MsgWriteRecordSpecificationResponse { pub record_spec_id_info: ::core::option::Option, } /// MsgDeleteRecordSpecificationRequest is the request type for the Msg/DeleteRecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteRecordSpecificationRequest { /// MetadataAddress for the record specification to delete. @@ -1075,11 +1026,9 @@ pub struct MsgDeleteRecordSpecificationRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgDeleteRecordSpecificationResponse is the response type for the Msg/DeleteRecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteRecordSpecificationResponse {} /// MsgBindOSLocatorRequest is the request type for the Msg/BindOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBindOsLocatorRequest { /// The object locator to bind the address to bind to the URI. @@ -1087,14 +1036,12 @@ pub struct MsgBindOsLocatorRequest { pub locator: ::core::option::Option, } /// MsgBindOSLocatorResponse is the response type for the Msg/BindOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBindOsLocatorResponse { #[prost(message, optional, tag = "1")] pub locator: ::core::option::Option, } /// MsgDeleteOSLocatorRequest is the request type for the Msg/DeleteOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteOsLocatorRequest { /// The record being removed @@ -1102,14 +1049,12 @@ pub struct MsgDeleteOsLocatorRequest { pub locator: ::core::option::Option, } /// MsgDeleteOSLocatorResponse is the response type for the Msg/DeleteOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteOsLocatorResponse { #[prost(message, optional, tag = "1")] pub locator: ::core::option::Option, } /// MsgModifyOSLocatorRequest is the request type for the Msg/ModifyOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgModifyOsLocatorRequest { /// The object locator to bind the address to bind to the URI. @@ -1117,14 +1062,12 @@ pub struct MsgModifyOsLocatorRequest { pub locator: ::core::option::Option, } /// MsgModifyOSLocatorResponse is the response type for the Msg/ModifyOSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgModifyOsLocatorResponse { #[prost(message, optional, tag = "1")] pub locator: ::core::option::Option, } /// MsgSetAccountDataRequest is the request to set/update/delete a scope's account data. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataRequest { /// The identifier to associate the data with. @@ -1139,12 +1082,10 @@ pub struct MsgSetAccountDataRequest { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// MsgSetAccountDataResponse is the response from setting/updating/deleting a scope's account data. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetAccountDataResponse {} /// MsgWriteP8eContractSpecRequest has been deprecated and is no longer usable. /// Deprecated: This message is no longer part of any endpoint and cannot be used for anything. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteP8eContractSpecRequest { #[prost(message, optional, tag = "1")] @@ -1154,7 +1095,6 @@ pub struct MsgWriteP8eContractSpecRequest { } /// MsgWriteP8eContractSpecResponse has been deprecated and is no longer usable. /// Deprecated: This message is no longer part of any endpoint and cannot be used for anything. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWriteP8eContractSpecResponse { #[prost(message, optional, tag = "1")] @@ -1164,7 +1104,6 @@ pub struct MsgWriteP8eContractSpecResponse { } /// MsgP8eMemorializeContractRequest has been deprecated and is no longer usable. /// Deprecated: This message is no longer part of any endpoint and cannot be used for anything. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgP8eMemorializeContractRequest { #[prost(string, tag = "1")] @@ -1184,7 +1123,6 @@ pub struct MsgP8eMemorializeContractRequest { } /// MsgP8eMemorializeContractResponse has been deprecated and is no longer usable. /// Deprecated: This message is no longer part of any endpoint and cannot be used for anything. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgP8eMemorializeContractResponse { #[prost(message, optional, tag = "1")] @@ -1195,7 +1133,6 @@ pub struct MsgP8eMemorializeContractResponse { pub record_id_infos: ::prost::alloc::vec::Vec, } /// MsgAddNetAssetValuesRequest defines the Msg/AddNetAssetValues request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddNetAssetValuesRequest { #[prost(string, tag = "1")] @@ -1206,14 +1143,19 @@ pub struct MsgAddNetAssetValuesRequest { pub net_asset_values: ::prost::alloc::vec::Vec, } /// MsgAddNetAssetValuesResponse defines the Msg/AddNetAssetValue response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddNetAssetValuesResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Msg defines the Metadata Msg service. @@ -1302,10 +1244,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1322,10 +1261,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1342,10 +1278,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1367,10 +1300,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1390,10 +1320,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1412,10 +1339,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1435,10 +1359,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1458,10 +1379,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1481,10 +1399,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1503,10 +1418,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1523,10 +1435,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1547,10 +1456,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1572,10 +1478,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1597,10 +1500,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1622,10 +1522,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1647,10 +1544,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1672,10 +1566,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1697,10 +1588,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1722,10 +1610,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1745,10 +1630,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1767,10 +1649,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1789,10 +1668,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1812,10 +1688,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -1834,10 +1707,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1856,7 +1726,13 @@ pub mod msg_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] @@ -3054,15 +2930,17 @@ pub mod msg_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -3086,7 +2964,6 @@ pub mod msg_server { } } /// EventTxCompleted is an event message indicating that a TX has completed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventTxCompleted { /// module is the module the TX belongs to. @@ -3100,7 +2977,6 @@ pub struct EventTxCompleted { pub signers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// EventScopeCreated is an event message indicating a scope has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeCreated { /// scope_addr is the bech32 address string of the scope id that was created. @@ -3108,7 +2984,6 @@ pub struct EventScopeCreated { pub scope_addr: ::prost::alloc::string::String, } /// EventScopeUpdated is an event message indicating a scope has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeUpdated { /// scope_addr is the bech32 address string of the scope id that was updated. @@ -3116,7 +2991,6 @@ pub struct EventScopeUpdated { pub scope_addr: ::prost::alloc::string::String, } /// EventScopeDeleted is an event message indicating a scope has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeDeleted { /// scope_addr is the bech32 address string of the scope id that was deleted. @@ -3124,7 +2998,6 @@ pub struct EventScopeDeleted { pub scope_addr: ::prost::alloc::string::String, } /// EventSessionCreated is an event message indicating a session has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSessionCreated { /// session_addr is the bech32 address string of the session id that was created. @@ -3135,7 +3008,6 @@ pub struct EventSessionCreated { pub scope_addr: ::prost::alloc::string::String, } /// EventSessionUpdated is an event message indicating a session has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSessionUpdated { /// session_addr is the bech32 address string of the session id that was updated. @@ -3146,7 +3018,6 @@ pub struct EventSessionUpdated { pub scope_addr: ::prost::alloc::string::String, } /// EventSessionDeleted is an event message indicating a session has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSessionDeleted { /// session_addr is the bech32 address string of the session id that was deleted. @@ -3157,7 +3028,6 @@ pub struct EventSessionDeleted { pub scope_addr: ::prost::alloc::string::String, } /// EventRecordCreated is an event message indicating a record has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordCreated { /// record_addr is the bech32 address string of the record id that was created. @@ -3171,7 +3041,6 @@ pub struct EventRecordCreated { pub scope_addr: ::prost::alloc::string::String, } /// EventRecordUpdated is an event message indicating a record has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordUpdated { /// record_addr is the bech32 address string of the record id that was updated. @@ -3185,7 +3054,6 @@ pub struct EventRecordUpdated { pub scope_addr: ::prost::alloc::string::String, } /// EventRecordDeleted is an event message indicating a record has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordDeleted { /// record is the bech32 address string of the record id that was deleted. @@ -3196,7 +3064,6 @@ pub struct EventRecordDeleted { pub scope_addr: ::prost::alloc::string::String, } /// EventScopeSpecificationCreated is an event message indicating a scope specification has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeSpecificationCreated { /// scope_specification_addr is the bech32 address string of the specification id of the scope specification that was @@ -3205,7 +3072,6 @@ pub struct EventScopeSpecificationCreated { pub scope_specification_addr: ::prost::alloc::string::String, } /// EventScopeSpecificationUpdated is an event message indicating a scope specification has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeSpecificationUpdated { /// scope_specification_addr is the bech32 address string of the specification id of the scope specification that was @@ -3214,7 +3080,6 @@ pub struct EventScopeSpecificationUpdated { pub scope_specification_addr: ::prost::alloc::string::String, } /// EventScopeSpecificationDeleted is an event message indicating a scope specification has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventScopeSpecificationDeleted { /// scope_specification_addr is the bech32 address string of the specification id of the scope specification that was @@ -3223,7 +3088,6 @@ pub struct EventScopeSpecificationDeleted { pub scope_specification_addr: ::prost::alloc::string::String, } /// EventContractSpecificationCreated is an event message indicating a contract specification has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventContractSpecificationCreated { /// contract_specification_addr is the bech32 address string of the specification id of the contract specification that @@ -3232,7 +3096,6 @@ pub struct EventContractSpecificationCreated { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventContractSpecificationUpdated is an event message indicating a contract specification has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventContractSpecificationUpdated { /// contract_specification_addr is the bech32 address string of the specification id of the contract specification that @@ -3241,7 +3104,6 @@ pub struct EventContractSpecificationUpdated { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventContractSpecificationDeleted is an event message indicating a contract specification has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventContractSpecificationDeleted { /// contract_specification_addr is the bech32 address string of the specification id of the contract specification that @@ -3250,7 +3112,6 @@ pub struct EventContractSpecificationDeleted { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventRecordSpecificationCreated is an event message indicating a record specification has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordSpecificationCreated { /// record_specification_addr is the bech32 address string of the specification id of the record specification that was @@ -3263,7 +3124,6 @@ pub struct EventRecordSpecificationCreated { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventRecordSpecificationUpdated is an event message indicating a record specification has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordSpecificationUpdated { /// record_specification_addr is the bech32 address string of the specification id of the record specification that was @@ -3276,7 +3136,6 @@ pub struct EventRecordSpecificationUpdated { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventRecordSpecificationDeleted is an event message indicating a record specification has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRecordSpecificationDeleted { /// record_specification_addr is the bech32 address string of the specification id of the record specification that was @@ -3289,7 +3148,6 @@ pub struct EventRecordSpecificationDeleted { pub contract_specification_addr: ::prost::alloc::string::String, } /// EventOSLocatorCreated is an event message indicating an object store locator has been created. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOsLocatorCreated { /// owner is the owner in the object store locator that was created. @@ -3297,7 +3155,6 @@ pub struct EventOsLocatorCreated { pub owner: ::prost::alloc::string::String, } /// EventOSLocatorUpdated is an event message indicating an object store locator has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOsLocatorUpdated { /// owner is the owner in the object store locator that was updated. @@ -3305,7 +3162,6 @@ pub struct EventOsLocatorUpdated { pub owner: ::prost::alloc::string::String, } /// EventOSLocatorDeleted is an event message indicating an object store locator has been deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOsLocatorDeleted { /// owner is the owner in the object store locator that was deleted. @@ -3313,7 +3169,6 @@ pub struct EventOsLocatorDeleted { pub owner: ::prost::alloc::string::String, } /// EventSetNetAssetValue event emitted when Net Asset Value for a scope is update or added -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSetNetAssetValue { #[prost(string, tag = "1")] @@ -3322,9 +3177,10 @@ pub struct EventSetNetAssetValue { pub price: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub source: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub volume: ::prost::alloc::string::String, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { /// include_request is a flag for whether to include this request in your result. @@ -3332,7 +3188,6 @@ pub struct QueryParamsRequest { pub include_request: bool, } /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -3343,7 +3198,6 @@ pub struct QueryParamsResponse { pub request: ::core::option::Option, } /// ScopeRequest is the request type for the Query/Scope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeRequest { /// scope_id can either be a uuid, e.g. 91978ba2-5f35-459a-86a7-feca1b0512e0 or a bech32 scope address, e.g. @@ -3371,7 +3225,6 @@ pub struct ScopeRequest { pub include_request: bool, } /// ScopeResponse is the response type for the Query/Scope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeResponse { /// scope is the wrapped scope result. @@ -3388,7 +3241,6 @@ pub struct ScopeResponse { pub request: ::core::option::Option, } /// SessionWrapper contains a single scope and its uuid. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeWrapper { /// scope is the on-chain scope message. @@ -3402,7 +3254,6 @@ pub struct ScopeWrapper { pub scope_spec_id_info: ::core::option::Option, } /// ScopesAllRequest is the request type for the Query/ScopesAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopesAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3417,7 +3268,6 @@ pub struct ScopesAllRequest { ::core::option::Option, } /// ScopesAllResponse is the response type for the Query/ScopesAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopesAllResponse { /// scopes are the wrapped scopes. @@ -3432,7 +3282,6 @@ pub struct ScopesAllResponse { ::core::option::Option, } /// SessionsRequest is the request type for the Query/Sessions RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionsRequest { /// scope_id can either be a uuid, e.g. 91978ba2-5f35-459a-86a7-feca1b0512e0 or a bech32 scope address, e.g. @@ -3464,7 +3313,6 @@ pub struct SessionsRequest { pub include_request: bool, } /// SessionsResponse is the response type for the Query/Sessions RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionsResponse { /// scope is the wrapped scope that holds these sessions (if requested). @@ -3481,7 +3329,6 @@ pub struct SessionsResponse { pub request: ::core::option::Option, } /// SessionWrapper contains a single session and some extra identifiers for it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionWrapper { /// session is the on-chain session message. @@ -3495,7 +3342,6 @@ pub struct SessionWrapper { pub contract_spec_id_info: ::core::option::Option, } /// SessionsAllRequest is the request type for the Query/SessionsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionsAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3510,7 +3356,6 @@ pub struct SessionsAllRequest { ::core::option::Option, } /// SessionsAllResponse is the response type for the Query/SessionsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionsAllResponse { /// sessions are the wrapped sessions. @@ -3525,7 +3370,6 @@ pub struct SessionsAllResponse { ::core::option::Option, } /// RecordsRequest is the request type for the Query/Records RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordsRequest { /// record_addr is a bech32 record address, e.g. record1q2ge0zaztu65tx5x5llv5xc9ztsw42dq2jdvmdazuwzcaddhh8gmu3mcze3. @@ -3557,7 +3401,6 @@ pub struct RecordsRequest { pub include_request: bool, } /// RecordsResponse is the response type for the Query/Records RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordsResponse { /// scope is the wrapped scope that holds these records (if requested). @@ -3574,7 +3417,6 @@ pub struct RecordsResponse { pub request: ::core::option::Option, } /// RecordWrapper contains a single record and some extra identifiers for it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordWrapper { /// record is the on-chain record message. @@ -3588,7 +3430,6 @@ pub struct RecordWrapper { pub record_spec_id_info: ::core::option::Option, } /// RecordsAllRequest is the request type for the Query/RecordsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordsAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3603,7 +3444,6 @@ pub struct RecordsAllRequest { ::core::option::Option, } /// RecordsAllResponse is the response type for the Query/RecordsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordsAllResponse { /// records are the wrapped records. @@ -3618,7 +3458,6 @@ pub struct RecordsAllResponse { ::core::option::Option, } /// OwnershipRequest is the request type for the Query/Ownership RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OwnershipRequest { #[prost(string, tag = "1")] @@ -3632,7 +3471,6 @@ pub struct OwnershipRequest { ::core::option::Option, } /// OwnershipResponse is the response type for the Query/Ownership RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OwnershipResponse { /// A list of scope ids (uuid) associated with the given address. @@ -3647,7 +3485,6 @@ pub struct OwnershipResponse { ::core::option::Option, } /// ValueOwnershipRequest is the request type for the Query/ValueOwnership RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValueOwnershipRequest { #[prost(string, tag = "1")] @@ -3661,7 +3498,6 @@ pub struct ValueOwnershipRequest { ::core::option::Option, } /// ValueOwnershipResponse is the response type for the Query/ValueOwnership RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValueOwnershipResponse { /// A list of scope ids (uuid) associated with the given address. @@ -3676,7 +3512,6 @@ pub struct ValueOwnershipResponse { ::core::option::Option, } /// ScopeSpecificationRequest is the request type for the Query/ScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecificationRequest { /// specification_id can either be a uuid, e.g. dc83ea70-eacd-40fe-9adf-1cf6148bf8a2 or a bech32 scope specification @@ -3699,7 +3534,6 @@ pub struct ScopeSpecificationRequest { pub include_request: bool, } /// ScopeSpecificationResponse is the response type for the Query/ScopeSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecificationResponse { /// scope_specification is the wrapped scope specification. @@ -3716,7 +3550,6 @@ pub struct ScopeSpecificationResponse { pub request: ::core::option::Option, } /// ScopeSpecificationWrapper contains a single scope specification and some extra identifiers for it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecificationWrapper { /// specification is the on-chain scope specification message. @@ -3727,7 +3560,6 @@ pub struct ScopeSpecificationWrapper { pub scope_spec_id_info: ::core::option::Option, } /// ScopeSpecificationsAllRequest is the request type for the Query/ScopeSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecificationsAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3742,7 +3574,6 @@ pub struct ScopeSpecificationsAllRequest { ::core::option::Option, } /// ScopeSpecificationsAllResponse is the response type for the Query/ScopeSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScopeSpecificationsAllResponse { /// scope_specifications are the wrapped scope specifications. @@ -3757,7 +3588,6 @@ pub struct ScopeSpecificationsAllResponse { ::core::option::Option, } /// ContractSpecificationRequest is the request type for the Query/ContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecificationRequest { /// specification_id can either be a uuid, e.g. def6bc0a-c9dd-4874-948f-5206e6060a84 or a bech32 contract specification @@ -3778,7 +3608,6 @@ pub struct ContractSpecificationRequest { pub include_request: bool, } /// ContractSpecificationResponse is the response type for the Query/ContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecificationResponse { /// contract_specification is the wrapped contract specification. @@ -3793,7 +3622,6 @@ pub struct ContractSpecificationResponse { pub request: ::core::option::Option, } /// ContractSpecificationWrapper contains a single contract specification and some extra identifiers for it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecificationWrapper { /// specification is the on-chain contract specification message. @@ -3804,7 +3632,6 @@ pub struct ContractSpecificationWrapper { pub contract_spec_id_info: ::core::option::Option, } /// ContractSpecificationsAllRequest is the request type for the Query/ContractSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecificationsAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3819,7 +3646,6 @@ pub struct ContractSpecificationsAllRequest { ::core::option::Option, } /// ContractSpecificationsAllResponse is the response type for the Query/ContractSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractSpecificationsAllResponse { /// contract_specifications are the wrapped contract specifications. @@ -3835,7 +3661,6 @@ pub struct ContractSpecificationsAllResponse { } /// RecordSpecificationsForContractSpecificationRequest is the request type for the /// Query/RecordSpecificationsForContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationsForContractSpecificationRequest { /// specification_id can either be a uuid, e.g. def6bc0a-c9dd-4874-948f-5206e6060a84 or a bech32 contract specification @@ -3853,7 +3678,6 @@ pub struct RecordSpecificationsForContractSpecificationRequest { } /// RecordSpecificationsForContractSpecificationResponse is the response type for the /// Query/RecordSpecificationsForContractSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationsForContractSpecificationResponse { /// record_specifications is any number of wrapped record specifications associated with this contract_specification. @@ -3870,7 +3694,6 @@ pub struct RecordSpecificationsForContractSpecificationResponse { pub request: ::core::option::Option, } /// RecordSpecificationRequest is the request type for the Query/RecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationRequest { /// specification_id can either be a uuid, e.g. def6bc0a-c9dd-4874-948f-5206e6060a84 or a bech32 contract specification @@ -3892,7 +3715,6 @@ pub struct RecordSpecificationRequest { pub include_request: bool, } /// RecordSpecificationResponse is the response type for the Query/RecordSpecification RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationResponse { /// record_specification is the wrapped record specification. @@ -3903,7 +3725,6 @@ pub struct RecordSpecificationResponse { pub request: ::core::option::Option, } /// RecordSpecificationWrapper contains a single record specification and some extra identifiers for it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationWrapper { /// specification is the on-chain record specification message. @@ -3914,7 +3735,6 @@ pub struct RecordSpecificationWrapper { pub record_spec_id_info: ::core::option::Option, } /// RecordSpecificationsAllRequest is the request type for the Query/RecordSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationsAllRequest { /// exclude_id_info is a flag for whether to exclude the id info from the response. @@ -3929,7 +3749,6 @@ pub struct RecordSpecificationsAllRequest { ::core::option::Option, } /// RecordSpecificationsAllResponse is the response type for the Query/RecordSpecificationsAll RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordSpecificationsAllResponse { /// record_specifications are the wrapped record specifications. @@ -3944,7 +3763,6 @@ pub struct RecordSpecificationsAllResponse { ::core::option::Option, } /// GetByAddrRequest is the request type for the Query/GetByAddr RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetByAddrRequest { /// ids are the metadata addresses of the things to look up. @@ -3952,7 +3770,6 @@ pub struct GetByAddrRequest { pub addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetByAddrResponse is the response type for the Query/GetByAddr RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetByAddrResponse { /// scopes contains any scopes that were requested and found. @@ -3978,7 +3795,6 @@ pub struct GetByAddrResponse { pub not_found: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// OSLocatorParamsRequest is the request type for the Query/OSLocatorParams RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OsLocatorParamsRequest { /// include_request is a flag for whether to include this request in your result. @@ -3986,7 +3802,6 @@ pub struct OsLocatorParamsRequest { pub include_request: bool, } /// OSLocatorParamsResponse is the response type for the Query/OSLocatorParams RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OsLocatorParamsResponse { /// params defines the parameters of the module. @@ -3997,7 +3812,6 @@ pub struct OsLocatorParamsResponse { pub request: ::core::option::Option, } /// OSLocatorRequest is the request type for the Query/OSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorRequest { #[prost(string, tag = "1")] @@ -4007,7 +3821,6 @@ pub struct OsLocatorRequest { pub include_request: bool, } /// OSLocatorResponse is the response type for the Query/OSLocator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorResponse { #[prost(message, optional, tag = "1")] @@ -4017,7 +3830,6 @@ pub struct OsLocatorResponse { pub request: ::core::option::Option, } /// OSLocatorsByURIRequest is the request type for the Query/OSLocatorsByURI RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorsByUriRequest { #[prost(string, tag = "1")] @@ -4031,7 +3843,6 @@ pub struct OsLocatorsByUriRequest { ::core::option::Option, } /// OSLocatorsByURIResponse is the response type for the Query/OSLocatorsByURI RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorsByUriResponse { #[prost(message, repeated, tag = "1")] @@ -4045,7 +3856,6 @@ pub struct OsLocatorsByUriResponse { ::core::option::Option, } /// OSLocatorsByScopeRequest is the request type for the Query/OSLocatorsByScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorsByScopeRequest { #[prost(string, tag = "1")] @@ -4055,7 +3865,6 @@ pub struct OsLocatorsByScopeRequest { pub include_request: bool, } /// OSLocatorsByScopeResponse is the response type for the Query/OSLocatorsByScope RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsLocatorsByScopeResponse { #[prost(message, repeated, tag = "1")] @@ -4065,7 +3874,6 @@ pub struct OsLocatorsByScopeResponse { pub request: ::core::option::Option, } /// OSAllLocatorsRequest is the request type for the Query/OSAllLocators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsAllLocatorsRequest { /// include_request is a flag for whether to include this request in your result. @@ -4077,7 +3885,6 @@ pub struct OsAllLocatorsRequest { ::core::option::Option, } /// OSAllLocatorsResponse is the response type for the Query/OSAllLocators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OsAllLocatorsResponse { #[prost(message, repeated, tag = "1")] @@ -4091,7 +3898,6 @@ pub struct OsAllLocatorsResponse { ::core::option::Option, } /// AccountDataRequest is the request type for the Query/AccountData RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccountDataRequest { /// The metadata address to look up. @@ -4100,7 +3906,6 @@ pub struct AccountDataRequest { pub metadata_addr: ::prost::alloc::vec::Vec, } /// AccountDataResponse is the response type for the Query/AccountData RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccountDataResponse { /// The accountdata for the requested metadata address. @@ -4108,7 +3913,6 @@ pub struct AccountDataResponse { pub value: ::prost::alloc::string::String, } /// QueryNetAssetValuesRequest is the request type for the Query/NetAssetValues method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScopeNetAssetValuesRequest { /// scopeid metadata address @@ -4116,7 +3920,6 @@ pub struct QueryScopeNetAssetValuesRequest { pub id: ::prost::alloc::string::String, } /// QueryNetAssetValuesRequest is the response type for the Query/NetAssetValues method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryScopeNetAssetValuesResponse { /// net asset values for scope @@ -4127,7 +3930,13 @@ pub struct QueryScopeNetAssetValuesResponse { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Query defines the Metadata Query service. @@ -4219,10 +4028,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.metadata.v1.Query/Params"); @@ -4254,10 +4060,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.metadata.v1.Query/Scope"); @@ -4272,10 +4075,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4317,10 +4117,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4337,10 +4134,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4379,10 +4173,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4399,10 +4190,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4420,10 +4208,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4440,10 +4225,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4469,10 +4251,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4494,10 +4273,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4525,10 +4301,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4550,10 +4323,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4580,10 +4350,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4603,10 +4370,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4628,10 +4392,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4650,10 +4411,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4670,10 +4428,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4692,10 +4447,7 @@ pub mod query_client { request: impl tonic::IntoRequest, ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4712,10 +4464,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4735,10 +4484,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4758,10 +4504,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4781,10 +4524,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -4805,10 +4545,7 @@ pub mod query_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -4827,7 +4564,13 @@ pub mod query_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] @@ -6077,15 +5820,17 @@ pub mod query_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -6109,7 +5854,6 @@ pub mod query_server { } } /// GenesisState defines the account module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the parameters of the module. @@ -6137,7 +5881,6 @@ pub struct GenesisState { pub net_asset_values: ::prost::alloc::vec::Vec, } /// MarkerNetAssetValues defines the net asset values for a scope -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MarkerNetAssetValues { /// address defines the scope address diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs index d78efcc..6594475 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// MsgAssessCustomMsgFeeRequest defines an sdk.Msg type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAssessCustomMsgFeeRequest { /// optional short name for custom msg fee, this will be emitted as a property of the event @@ -20,11 +19,9 @@ pub struct MsgAssessCustomMsgFeeRequest { pub recipient_basis_points: ::prost::alloc::string::String, } /// MsgAssessCustomMsgFeeResponse defines the Msg/AssessCustomMsgFeee response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAssessCustomMsgFeeResponse {} /// AddMsgFeeProposal defines a governance proposal to add additional msg based fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddMsgFeeProposalRequest { /// type url of msg to add fee @@ -44,11 +41,9 @@ pub struct MsgAddMsgFeeProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgAddMsgFeeProposalResponse defines the Msg/AddMsgFeeProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAddMsgFeeProposalResponse {} /// UpdateMsgFeeProposal defines a governance proposal to update a current msg based fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateMsgFeeProposalRequest { /// type url of msg to update fee @@ -68,11 +63,9 @@ pub struct MsgUpdateMsgFeeProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgUpdateMsgFeeProposalResponse defines the Msg/RemoveMsgFeeProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateMsgFeeProposalResponse {} /// RemoveMsgFeeProposal defines a governance proposal to delete a current msg based fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveMsgFeeProposalRequest { /// type url of msg fee to remove @@ -85,11 +78,9 @@ pub struct MsgRemoveMsgFeeProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgRemoveMsgFeeProposalResponse defines the Msg/RemoveMsgFeeProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRemoveMsgFeeProposalResponse {} /// UpdateNhashPerUsdMilProposal defines a governance proposal to update the nhash per usd mil param -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateNhashPerUsdMilProposalRequest { /// nhash_per_usd_mil is number of nhash per usd mil @@ -102,11 +93,9 @@ pub struct MsgUpdateNhashPerUsdMilProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgUpdateNhashPerUsdMilProposalResponse defines the Msg/UpdateNhashPerUsdMilProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateNhashPerUsdMilProposalResponse {} /// UpdateConversionFeeDenomProposal defines a governance proposal to update the msg fee conversion denom -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateConversionFeeDenomProposalRequest { /// conversion_fee_denom is the denom that usd will be converted to @@ -119,14 +108,19 @@ pub struct MsgUpdateConversionFeeDenomProposalRequest { pub authority: ::prost::alloc::string::String, } /// MsgUpdateConversionFeeDenomProposalResponse defines the Msg/UpdateConversionFeeDenomProposal response type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateConversionFeeDenomProposalResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Msg defines the msgfees Msg service. @@ -218,10 +212,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -241,10 +232,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -266,10 +254,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -291,10 +276,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -316,10 +298,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -341,10 +320,7 @@ pub mod msg_client { tonic::Status, > { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -363,7 +339,13 @@ pub mod msg_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] @@ -741,15 +723,17 @@ pub mod msg_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -773,7 +757,6 @@ pub mod msg_server { } } /// Params defines the set of params for the msgfees module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// floor_gas_price is the constant used to calculate fees when gas fees shares denom with msg fee. @@ -795,7 +778,6 @@ pub struct Params { pub conversion_fee_denom: ::prost::alloc::string::String, } /// MsgFee is the core of what gets stored on the blockchain to define a msg-based fee. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgFee { /// msg_type_url is the type-url of the message with the added fee, e.g. "/cosmos.bank.v1beta1.MsgSend". @@ -819,7 +801,6 @@ pub struct MsgFee { pub recipient_basis_points: u32, } /// EventMsgFee final event property for msg fee on type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMsgFee { #[prost(string, tag = "1")] @@ -832,18 +813,15 @@ pub struct EventMsgFee { pub recipient: ::prost::alloc::string::String, } /// EventMsgFees event emitted with summary of msg fees -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMsgFees { #[prost(message, repeated, tag = "1")] pub msg_fees: ::prost::alloc::vec::Vec, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -851,7 +829,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryAllMsgFeesRequest queries all Msg which have fees associated with them. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllMsgFeesRequest { /// pagination defines an optional pagination for the request. @@ -860,7 +837,6 @@ pub struct QueryAllMsgFeesRequest { ::core::option::Option, } /// response for querying all msg's with fees associated with them -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllMsgFeesResponse { #[prost(message, repeated, tag = "1")] @@ -871,7 +847,6 @@ pub struct QueryAllMsgFeesResponse { ::core::option::Option, } /// CalculateTxFeesRequest is the request type for the Query RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CalculateTxFeesRequest { /// tx_bytes is the transaction to simulate. @@ -886,7 +861,6 @@ pub struct CalculateTxFeesRequest { pub gas_adjustment: f32, } /// CalculateTxFeesResponse is the response type for the Query RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CalculateTxFeesResponse { /// additional_fees are the amount of coins to be for addition msg fees @@ -904,7 +878,13 @@ pub struct CalculateTxFeesResponse { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Query defines the gRPC querier service for marker module. @@ -996,10 +976,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.msgfees.v1.Query/Params"); @@ -1015,10 +992,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1038,10 +1012,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( @@ -1060,7 +1031,13 @@ pub mod query_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] @@ -1275,15 +1252,17 @@ pub mod query_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -1307,7 +1286,6 @@ pub mod query_server { } } /// GenesisState contains a set of msg fees, persisted from the store -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the parameters of the module. @@ -1321,7 +1299,6 @@ pub struct GenesisState { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgAddMsgFeeProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddMsgFeeProposal { /// propsal title @@ -1347,7 +1324,6 @@ pub struct AddMsgFeeProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgUpdateMsgFeeProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMsgFeeProposal { /// propsal title @@ -1373,7 +1349,6 @@ pub struct UpdateMsgFeeProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgRemoveMsgFeeProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveMsgFeeProposal { /// propsal title @@ -1390,7 +1365,6 @@ pub struct RemoveMsgFeeProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgUpdateNhashPerUsdMilProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateNhashPerUsdMilProposal { /// proposal title @@ -1407,7 +1381,6 @@ pub struct UpdateNhashPerUsdMilProposal { /// Deprecated: This message is no longer usable. It is only still included for /// backwards compatibility (e.g. looking up old governance proposals). /// It is replaced by providing a MsgUpdateConversionFeeDenomProposalRequest in a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateConversionFeeDenomProposal { /// proposal title diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs index 3107dda..a197d1e 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// Params defines the set of params for the name module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// maximum length of name segment to allow @@ -17,7 +16,6 @@ pub struct Params { pub allow_unrestricted_names: bool, } /// NameRecord is a structure used to bind ownership of a name hierarchy to a collection of addresses -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NameRecord { /// the bound name @@ -35,7 +33,6 @@ pub struct NameRecord { /// for the sole creation of sub names. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov /// proposals, see MsgCreateRootNameRequest. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateRootNameProposal { /// proposal title @@ -55,7 +52,6 @@ pub struct CreateRootNameProposal { pub restricted: bool, } /// Event emitted when name is bound. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventNameBound { #[prost(string, tag = "1")] @@ -66,7 +62,6 @@ pub struct EventNameBound { pub restricted: bool, } /// Event emitted when name is unbound. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventNameUnbound { #[prost(string, tag = "1")] @@ -77,7 +72,6 @@ pub struct EventNameUnbound { pub restricted: bool, } /// Event emitted when name is updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventNameUpdate { #[prost(string, tag = "1")] @@ -88,7 +82,6 @@ pub struct EventNameUpdate { pub restricted: bool, } /// EventNameParamsUpdated event emitted when name params are updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventNameParamsUpdated { #[prost(string, tag = "1")] @@ -103,7 +96,6 @@ pub struct EventNameParamsUpdated { /// MsgBindNameRequest defines an sdk.Msg type that is used to add an address/name binding under an optional parent name. /// The record may optionally be restricted to prevent additional names from being added under this one without the /// owner signing the request. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBindNameRequest { /// The parent record to bind this name under. @@ -114,13 +106,11 @@ pub struct MsgBindNameRequest { pub record: ::core::option::Option, } /// MsgBindNameResponse defines the Msg/BindName response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgBindNameResponse {} /// MsgDeleteNameRequest defines an sdk.Msg type that is used to remove an existing address/name binding. The binding /// may not have any child names currently bound for this request to be successful. All associated attributes on account /// addresses will be deleted. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeleteNameRequest { /// The record being removed @@ -128,13 +118,11 @@ pub struct MsgDeleteNameRequest { pub record: ::core::option::Option, } /// MsgDeleteNameResponse defines the Msg/DeleteName response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDeleteNameResponse {} /// MsgCreateRootNameRequest defines an sdk.Msg type to create a new root name /// that is controlled by a given owner and optionally restricted to the owner /// for the sole creation of sub names. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateRootNameRequest { /// The signing authority for the request @@ -145,11 +133,9 @@ pub struct MsgCreateRootNameRequest { pub record: ::core::option::Option, } /// MsgCreateRootNameResponse defines Msg/CreateRootName response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreateRootNameResponse {} /// MsgModifyNameRequest defines a governance method that is used to update an existing address/name binding. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgModifyNameRequest { /// The address signing the message @@ -160,11 +146,9 @@ pub struct MsgModifyNameRequest { pub record: ::core::option::Option, } /// MsgModifyNameResponse defines the Msg/ModifyName response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgModifyNameResponse {} /// MsgUpdateParamsRequest is a request message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsRequest { /// authority should be the governance module account address. @@ -175,14 +159,19 @@ pub struct MsgUpdateParamsRequest { pub params: ::core::option::Option, } /// MsgUpdateParamsResponse is a response message for the UpdateParams endpoint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Msg defines the bank Msg service. @@ -271,10 +260,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Msg/BindName"); @@ -290,10 +276,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Msg/DeleteName"); @@ -309,10 +292,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Msg/ModifyName"); @@ -328,10 +308,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -348,10 +325,7 @@ pub mod msg_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Msg/UpdateParams"); @@ -366,7 +340,13 @@ pub mod msg_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] @@ -659,15 +639,17 @@ pub mod msg_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -691,11 +673,9 @@ pub mod msg_server { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -703,7 +683,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryResolveRequest is the request type for the Query/Resolve method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryResolveRequest { /// name to resolve the address for @@ -711,7 +690,6 @@ pub struct QueryResolveRequest { pub name: ::prost::alloc::string::String, } /// QueryResolveResponse is the response type for the Query/Resolve method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryResolveResponse { /// a string containing the address the name resolves to @@ -722,7 +700,6 @@ pub struct QueryResolveResponse { pub restricted: bool, } /// QueryReverseLookupRequest is the request type for the Query/ReverseLookup method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryReverseLookupRequest { /// address to find name records for @@ -734,7 +711,6 @@ pub struct QueryReverseLookupRequest { ::core::option::Option, } /// QueryReverseLookupResponse is the response type for the Query/Resolve method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryReverseLookupResponse { /// an array of names bound against a given address @@ -749,7 +725,13 @@ pub struct QueryReverseLookupResponse { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::http::Uri; use tonic::codegen::*; /// Query defines the gRPC querier service for distribution module. @@ -841,10 +823,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Query/Params"); @@ -860,10 +839,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static("/provenance.name.v1.Query/Resolve"); @@ -879,10 +855,7 @@ pub mod query_client { ) -> std::result::Result, tonic::Status> { self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) + tonic::Status::unknown(format!("Service was not ready: {}", e.into())) })?; let codec = tonic::codec::ProstCodec::default(); let path = @@ -898,7 +871,13 @@ pub mod query_client { #[cfg(feature = "grpc")] #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value + )] use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] @@ -1108,15 +1087,17 @@ pub mod query_server { Box::pin(fut) } _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", tonic::Code::Unimplemented as i32) - .header( - http::header::CONTENT_TYPE, - tonic::metadata::GRPC_CONTENT_TYPE, - ) - .body(empty_body()) - .unwrap()) + let mut response = http::Response::new(empty_body()); + let headers = response.headers_mut(); + headers.insert( + tonic::Status::GRPC_STATUS, + (tonic::Code::Unimplemented as i32).into(), + ); + headers.insert( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ); + Ok(response) }), } } @@ -1140,7 +1121,6 @@ pub mod query_server { } } /// GenesisState defines the name module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the parameters of the module.