diff --git a/src/api_private.bin b/src/api_private.bin index 205c2d5..be3e2f6 100644 Binary files a/src/api_private.bin and b/src/api_private.bin differ diff --git a/src/api_public.bin b/src/api_public.bin index 9bdea50..3dd2c49 100644 Binary files a/src/api_public.bin and b/src/api_public.bin differ diff --git a/src/google.api.rs b/src/google.api.rs index b9962ea..73ba5d5 100644 --- a/src/google.api.rs +++ b/src/google.api.rs @@ -2,7 +2,6 @@ /// Defines the HTTP configuration for an API service. It contains a list of /// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method /// to one or more HTTP REST API methods. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Http { /// A list of HTTP configuration rules that apply to individual API methods. @@ -295,7 +294,6 @@ pub struct Http { #[allow(dead_code)] pub struct HttpRuleComment {} /// HACK: see docs in [`HttpRuleComment`] ignored in doctest pass -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HttpRule { /// Selects a method to which this rule applies. @@ -340,7 +338,6 @@ pub mod http_rule { #[allow(dead_code)] pub struct HttpRuleComment {} /// HACK: see docs in [`HttpRuleComment`] ignored in doctest pass - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Pattern { /// Maps to HTTP GET. Used for listing and getting information about @@ -368,7 +365,6 @@ pub mod http_rule { } } /// A custom pattern is used for defining custom HTTP verb. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CustomHttpPattern { /// The name of this custom HTTP verb. diff --git a/src/massa.abi.v1.rs b/src/massa.abi.v1.rs index ce750d2..c1cfcd3 100644 --- a/src/massa.abi.v1.rs +++ b/src/massa.abi.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// Error message used in abi Response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Error { /// a string representing the error @@ -8,7 +7,6 @@ pub struct Error { pub message: ::prost::alloc::string::String, } /// Create SC request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateScRequest { /// Bytecode is the compiled code of the smart contract @@ -16,7 +14,6 @@ pub struct CreateScRequest { pub bytecode: ::prost::alloc::vec::Vec, } /// Create SC result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateScResult { /// Address of the just created smart contract @@ -24,7 +21,6 @@ pub struct CreateScResult { pub sc_address: ::prost::alloc::string::String, } /// Call SC request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallRequest { /// Address of the smart contract to call @@ -41,7 +37,6 @@ pub struct CallRequest { pub call_coins: ::core::option::Option, } /// Call SC response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallResponse { /// Return_data is the return value of the function @@ -49,7 +44,6 @@ pub struct CallResponse { pub data: ::prost::alloc::vec::Vec, } /// Local execution request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LocalExecutionRequest { /// Bytecode is the compiled code of the smart contract @@ -63,7 +57,6 @@ pub struct LocalExecutionRequest { pub function_arg: ::prost::alloc::vec::Vec, } /// Local call response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LocalExecutionResponse { /// Return_data is the return value of the function @@ -71,7 +64,6 @@ pub struct LocalExecutionResponse { pub data: ::prost::alloc::vec::Vec, } /// Generate event request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenerateEventRequest { /// Event @@ -79,11 +71,9 @@ pub struct GenerateEventRequest { pub event: ::prost::alloc::vec::Vec, } /// Generate event resulst -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GenerateEventResult {} /// Transfer coins request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferCoinsRequest { /// The address of the recipient @@ -99,11 +89,9 @@ pub struct TransferCoinsRequest { pub sender_address: ::core::option::Option<::prost::alloc::string::String>, } /// Transfer coin result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TransferCoinsResult {} /// Function exists request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FunctionExistsRequest { /// Address of the smart contract to call @@ -114,8 +102,7 @@ pub struct FunctionExistsRequest { pub function_name: ::prost::alloc::string::String, } /// Function exists result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FunctionExistsResult { /// Exists is true if the function exists #[prost(bool, tag = "1")] @@ -125,7 +112,6 @@ pub struct FunctionExistsResult { /// `rg message | rg "\{" | rg "Result" | wc -l` /// the given count should be equal to the number of messages in RespResult + 1 /// the +1 comes from ResResult itself which is counted above -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RespResult { #[prost( @@ -136,7 +122,6 @@ pub struct RespResult { } /// Nested message and enum types in `RespResult`. pub mod resp_result { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Res { #[prost(message, tag = "1")] @@ -268,7 +253,6 @@ pub mod resp_result { } } /// Generic message that encapsulate response from ABI calls. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbiResponse { #[prost(oneof = "abi_response::Resp", tags = "1, 2")] @@ -276,7 +260,6 @@ pub struct AbiResponse { } /// Nested message and enum types in `AbiResponse`. pub mod abi_response { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Resp { /// variant for success @@ -288,15 +271,13 @@ pub mod abi_response { } } /// Amount to string request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NativeAmountToStringRequest { /// Amount to convert to string #[prost(message, optional, tag = "1")] pub to_convert: ::core::option::Option, } /// Amount to string result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NativeAmountToStringResult { /// Converted Amount @@ -304,7 +285,6 @@ pub struct NativeAmountToStringResult { pub converted_amount: ::prost::alloc::string::String, } /// Amount from string request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NativeAmountFromStringRequest { /// String to convert to Amount @@ -312,15 +292,13 @@ pub struct NativeAmountFromStringRequest { pub to_convert: ::prost::alloc::string::String, } /// Amount from string result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NativeAmountFromStringResult { /// Converted Amount #[prost(message, optional, tag = "1")] pub converted_amount: ::core::option::Option, } /// Check address request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckAddressRequest { /// Address to check @@ -328,15 +306,13 @@ pub struct CheckAddressRequest { pub to_check: ::prost::alloc::string::String, } /// Check address result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckAddressResult { /// Is address valid #[prost(bool, tag = "1")] pub is_valid: bool, } /// Check PubKey request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckPubKeyRequest { /// PubKey to check @@ -344,15 +320,13 @@ pub struct CheckPubKeyRequest { pub to_check: ::prost::alloc::string::String, } /// Check PubKey result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckPubKeyResult { /// Is PubKey valid #[prost(bool, tag = "1")] pub is_valid: bool, } /// Check Sig request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckSigRequest { /// Sig to check @@ -360,32 +334,28 @@ pub struct CheckSigRequest { pub to_check: ::prost::alloc::string::String, } /// Check Sig result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckSigResult { /// Is Sig valid #[prost(bool, tag = "1")] pub is_valid: bool, } /// Check Amount request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckNativeAmountRequest { /// Amount to check #[prost(message, optional, tag = "1")] pub to_check: ::core::option::Option, } /// Check Amount result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckNativeAmountResult { /// Is Amount valid #[prost(bool, tag = "1")] pub is_valid: bool, } /// Amount addition request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddNativeAmountRequest { /// First amount to add #[prost(message, optional, tag = "1")] @@ -395,8 +365,7 @@ pub struct AddNativeAmountRequest { pub amount2: ::core::option::Option, } /// Amount addition result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddNativeAmountResult { /// Sum of amounts #[prost(message, optional, tag = "1")] @@ -405,8 +374,7 @@ pub struct AddNativeAmountResult { /// Amount subtraction request /// try to compute difference = left - right /// fails if right > left -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SubNativeAmountRequest { /// First amount to subtract from #[prost(message, optional, tag = "1")] @@ -416,8 +384,7 @@ pub struct SubNativeAmountRequest { pub right: ::core::option::Option, } /// Amount subtraction result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SubNativeAmountResult { /// Difference of amounts (left - right) #[prost(message, optional, tag = "1")] @@ -425,8 +392,7 @@ pub struct SubNativeAmountResult { } /// Amount multiplication request /// Try to compute product = amount * coefficient (fail if overflow) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ScalarMulNativeAmountRequest { /// Amount to multiply #[prost(message, optional, tag = "1")] @@ -436,8 +402,7 @@ pub struct ScalarMulNativeAmountRequest { pub coefficient: u64, } /// Amount multiplication result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ScalarMulNativeAmountResult { /// Product of amount and coefficient #[prost(message, optional, tag = "1")] @@ -447,8 +412,7 @@ pub struct ScalarMulNativeAmountResult { /// Try to compute quotient = dividend / divisor /// Fails if divisor == 0 /// Fails if underflow -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ScalarDivRemNativeAmountRequest { /// Amount to divide #[prost(message, optional, tag = "1")] @@ -458,8 +422,7 @@ pub struct ScalarDivRemNativeAmountRequest { pub divisor: u64, } /// Amount division by scalar result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ScalarDivRemNativeAmountResult { /// Quotient of amount and divisor #[prost(message, optional, tag = "1")] @@ -469,8 +432,7 @@ pub struct ScalarDivRemNativeAmountResult { pub remainder: ::core::option::Option, } /// Amount division request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DivRemNativeAmountRequest { /// Amount to divide #[prost(message, optional, tag = "1")] @@ -480,8 +442,7 @@ pub struct DivRemNativeAmountRequest { pub divisor: ::core::option::Option, } /// Amount division result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DivRemNativeAmountResult { /// Quotient of amount and divisor #[prost(uint64, tag = "1")] @@ -491,8 +452,7 @@ pub struct DivRemNativeAmountResult { pub remainder: ::core::option::Option, } /// Time addition checked request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedAddNativeTimeRequest { /// First time to add #[prost(message, optional, tag = "1")] @@ -502,16 +462,14 @@ pub struct CheckedAddNativeTimeRequest { pub right: ::core::option::Option, } /// Time addition checked result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedAddNativeTimeResult { /// Sum of times #[prost(message, optional, tag = "1")] pub sum: ::core::option::Option, } /// Time subtraction checked request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedSubNativeTimeRequest { /// First time to subtract from #[prost(message, optional, tag = "1")] @@ -521,16 +479,14 @@ pub struct CheckedSubNativeTimeRequest { pub right: ::core::option::Option, } /// Time subtraction checked result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedSubNativeTimeResult { /// Difference of times (left - right) #[prost(message, optional, tag = "1")] pub difference: ::core::option::Option, } /// Time scalar mult checked request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedScalarMulNativeTimeRequest { /// Time to multiply #[prost(message, optional, tag = "1")] @@ -540,16 +496,14 @@ pub struct CheckedScalarMulNativeTimeRequest { pub coefficient: u64, } /// Time scalar mult checked result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedScalarMulNativeTimeResult { /// Product of time and coefficient #[prost(message, optional, tag = "1")] pub product: ::core::option::Option, } /// Time scalar divrem checked request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedScalarDivRemNativeTimeRequest { /// Time to divide #[prost(message, optional, tag = "1")] @@ -559,8 +513,7 @@ pub struct CheckedScalarDivRemNativeTimeRequest { pub divisor: u64, } /// Time scalar divrem checked result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedScalarDivRemNativeTimeResult { /// Quotient of time and divisor #[prost(message, optional, tag = "1")] @@ -570,8 +523,7 @@ pub struct CheckedScalarDivRemNativeTimeResult { pub remainder: ::core::option::Option, } /// Time division checked request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedDivRemNativeTimeRequest { /// Time to divide #[prost(message, optional, tag = "1")] @@ -581,8 +533,7 @@ pub struct CheckedDivRemNativeTimeRequest { pub divisor: ::core::option::Option, } /// Time division checked result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckedDivRemNativeTimeResult { /// Quotient of time and divisor #[prost(uint64, tag = "1")] @@ -592,8 +543,7 @@ pub struct CheckedDivRemNativeTimeResult { pub remainder: ::core::option::Option, } /// Time comparison request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompareNativeTimeRequest { /// First time to compare #[prost(message, optional, tag = "1")] @@ -603,15 +553,13 @@ pub struct CompareNativeTimeRequest { pub right: ::core::option::Option, } /// Time comparison result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompareNativeTimeResult { /// Comparison result #[prost(enumeration = "super::super::model::v1::ComparisonResult", tag = "1")] pub result: i32, } /// Compare Address request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompareAddressRequest { /// First address to compare @@ -622,15 +570,13 @@ pub struct CompareAddressRequest { pub right: ::prost::alloc::string::String, } /// Compare Address result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompareAddressResult { /// Comparison result #[prost(enumeration = "super::super::model::v1::ComparisonResult", tag = "1")] pub result: i32, } /// Compare PubKey request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ComparePubKeyRequest { /// First public key to compare @@ -641,15 +587,13 @@ pub struct ComparePubKeyRequest { pub right: ::prost::alloc::string::String, } /// Compare PubKey result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ComparePubKeyResult { /// Comparison result #[prost(enumeration = "super::super::model::v1::ComparisonResult", tag = "1")] pub result: i32, } /// Verify Sig request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VerifySigRequest { /// Signature to verify @@ -663,16 +607,14 @@ pub struct VerifySigRequest { pub pub_key: ::prost::alloc::string::String, } /// Verify Sig result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VerifySigResult { /// Verification result #[prost(bool, tag = "1")] pub is_verified: bool, } /// Compare NativeAmount request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompareNativeAmountRequest { /// First amount to compare #[prost(message, optional, tag = "1")] @@ -682,15 +624,13 @@ pub struct CompareNativeAmountRequest { pub right: ::core::option::Option, } /// Compare NativeAmount result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompareNativeAmountResult { /// Comparison result #[prost(enumeration = "super::super::model::v1::ComparisonResult", tag = "1")] pub result: i32, } /// Keccak256 hash request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Keccak256Request { /// Data to hash @@ -698,7 +638,6 @@ pub struct Keccak256Request { pub data: ::prost::alloc::vec::Vec, } /// Keccak256 hash result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Keccak256Result { /// Hash of data @@ -706,7 +645,6 @@ pub struct Keccak256Result { pub hash: ::prost::alloc::vec::Vec, } /// EVM signature verification request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvmVerifySigRequest { /// Signature to verify @@ -720,15 +658,13 @@ pub struct EvmVerifySigRequest { pub pub_key: ::prost::alloc::vec::Vec, } /// EVM signature verification result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EvmVerifySigResult { /// Verification result #[prost(bool, tag = "1")] pub is_verified: bool, } /// EVM get address from public key request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvmGetAddressFromPubkeyRequest { /// Public key to get address from @@ -736,7 +672,6 @@ pub struct EvmGetAddressFromPubkeyRequest { pub pub_key: ::prost::alloc::vec::Vec, } /// EVM get address from public key result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvmGetAddressFromPubkeyResult { /// Address @@ -744,7 +679,6 @@ pub struct EvmGetAddressFromPubkeyResult { pub address: ::prost::alloc::vec::Vec, } /// EVM get public key from signature request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvmGetPubkeyFromSignatureRequest { /// Signed hash to verify @@ -755,7 +689,6 @@ pub struct EvmGetPubkeyFromSignatureRequest { pub sig: ::prost::alloc::vec::Vec, } /// EVM get public key from signature result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvmGetPubkeyFromSignatureResult { /// Public key @@ -763,7 +696,6 @@ pub struct EvmGetPubkeyFromSignatureResult { pub pub_key: ::prost::alloc::vec::Vec, } /// Is address EOA request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IsAddressEoaRequest { /// Address to check @@ -771,15 +703,13 @@ pub struct IsAddressEoaRequest { pub address: ::prost::alloc::string::String, } /// Is address EOA result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct IsAddressEoaResult { /// Is address EOA #[prost(bool, tag = "1")] pub is_eoa: bool, } /// Blake3 hash request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HashBlake3Request { /// Data to hash @@ -787,7 +717,6 @@ pub struct HashBlake3Request { pub data: ::prost::alloc::vec::Vec, } /// Blake3 hash result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HashBlake3Result { /// Hash of data @@ -795,7 +724,6 @@ pub struct HashBlake3Result { pub hash: ::prost::alloc::vec::Vec, } /// Get keys request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDsKeysRequest { /// keys prefix @@ -806,7 +734,6 @@ pub struct GetDsKeysRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Get keys result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDsKeysResult { /// keys @@ -814,7 +741,6 @@ pub struct GetDsKeysResult { pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// Set data store value request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetDsValueRequest { /// key @@ -828,11 +754,9 @@ pub struct SetDsValueRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Set data store value result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetDsValueResult {} /// Append data request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AppendDsValueRequest { /// key @@ -846,11 +770,9 @@ pub struct AppendDsValueRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Append data result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AppendDsValueResult {} /// Get data request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDsValueRequest { /// key @@ -861,7 +783,6 @@ pub struct GetDsValueRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Get data result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDsValueResult { /// value @@ -869,7 +790,6 @@ pub struct GetDsValueResult { pub value: ::prost::alloc::vec::Vec, } /// Delete data store entry request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteDsEntryRequest { /// key @@ -880,11 +800,9 @@ pub struct DeleteDsEntryRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Delete data store entry result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DeleteDsEntryResult {} /// Data store entry exists request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DsEntryExistsRequest { /// key @@ -895,19 +813,16 @@ pub struct DsEntryExistsRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Data store entry exists result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DsEntryExistsResult { /// has data #[prost(bool, tag = "1")] pub has_data: bool, } /// Get owned addresses request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetOwnedAddressesRequest {} /// Get owned addresses result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOwnedAddressesResult { /// owned addresses @@ -915,11 +830,9 @@ pub struct GetOwnedAddressesResult { pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Get call stack request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCallStackRequest {} /// Get call stack result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetCallStackResult { /// call stack @@ -927,7 +840,6 @@ pub struct GetCallStackResult { pub calls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Address from public key request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressFromPubKeyRequest { /// Native public key @@ -935,7 +847,6 @@ pub struct AddressFromPubKeyRequest { pub pub_key: ::prost::alloc::string::String, } /// Address from public key result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressFromPubKeyResult { /// Address @@ -943,14 +854,12 @@ pub struct AddressFromPubKeyResult { pub address: ::prost::alloc::string::String, } /// Unsafe random request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct UnsafeRandomRequest { #[prost(uint32, tag = "2")] pub num_bytes: u32, } /// Unsafe random result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnsafeRandomResult { /// Random bytes generated @@ -958,7 +867,6 @@ pub struct UnsafeRandomResult { pub random_bytes: ::prost::alloc::vec::Vec, } /// Send async message request filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendAsyncMessageFilter { /// Target address @@ -969,7 +877,6 @@ pub struct SendAsyncMessageFilter { pub target_key: ::core::option::Option<::prost::alloc::vec::Vec>, } /// Send async message request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendAsyncMessageRequest { /// Target address @@ -1001,46 +908,38 @@ pub struct SendAsyncMessageRequest { pub filter: ::core::option::Option, } /// Send async message result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SendAsyncMessageResult {} /// Get origin operation id request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetOriginOperationIdRequest {} /// Get origin operation id result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOriginOperationIdResult { #[prost(message, optional, tag = "1")] pub operation_id: ::core::option::Option<::prost::alloc::string::String>, } /// Get native time request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetNativeTimeRequest {} /// Get native time result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetNativeTimeResult { /// Native time #[prost(message, optional, tag = "1")] pub time: ::core::option::Option, } /// Get current slot request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCurrentSlotRequest {} /// Get current slot result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCurrentSlotResult { /// Current slot #[prost(message, optional, tag = "1")] pub slot: ::core::option::Option, } /// Set bytecode request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetBytecodeRequest { /// Bytecode @@ -1051,11 +950,9 @@ pub struct SetBytecodeRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Set bytecode result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetBytecodeResult {} /// Get bytecode request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBytecodeRequest { /// Address to get bytecode for, if none, use current address @@ -1063,7 +960,6 @@ pub struct GetBytecodeRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Get bytecode result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBytecodeResult { /// Bytecode @@ -1071,19 +967,16 @@ pub struct GetBytecodeResult { pub bytecode: ::prost::alloc::vec::Vec, } /// Caller has write access request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CallerHasWriteAccessRequest {} /// Caller has write access result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CallerHasWriteAccessResult { /// Caller has write access #[prost(bool, tag = "1")] pub has_write_access: bool, } /// Hash sha256 request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HashSha256Request { /// data @@ -1091,7 +984,6 @@ pub struct HashSha256Request { pub data: ::prost::alloc::vec::Vec, } /// Hash sha256 result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HashSha256Result { /// hash @@ -1099,7 +991,6 @@ pub struct HashSha256Result { pub hash: ::prost::alloc::vec::Vec, } /// Get op data request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOpDataRequest { /// key @@ -1107,7 +998,6 @@ pub struct GetOpDataRequest { pub key: ::prost::alloc::vec::Vec, } /// Get op data result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOpDataResult { /// value @@ -1115,7 +1005,6 @@ pub struct GetOpDataResult { pub value: ::prost::alloc::vec::Vec, } /// Op entry exists request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpEntryExistsRequest { /// key @@ -1123,15 +1012,13 @@ pub struct OpEntryExistsRequest { pub key: ::prost::alloc::vec::Vec, } /// Op entry exists result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OpEntryExistsResult { /// has key #[prost(bool, tag = "1")] pub has_key: bool, } /// Get op keys request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOpKeysRequest { /// keys prefix @@ -1139,7 +1026,6 @@ pub struct GetOpKeysRequest { pub prefix: ::prost::alloc::vec::Vec, } /// Get op keys result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOpKeysResult { /// keys @@ -1147,19 +1033,16 @@ pub struct GetOpKeysResult { pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// Get remaining gas request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetRemainingGasRequest {} /// Get remaining gas result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetRemainingGasResult { /// remaining gas #[prost(uint64, tag = "1")] pub remaining_gas: u64, } /// Get balance request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBalanceRequest { /// Address to get balance for, if none, use current address @@ -1167,116 +1050,99 @@ pub struct GetBalanceRequest { pub address: ::core::option::Option<::prost::alloc::string::String>, } /// Get balance result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetBalanceResult { /// balance #[prost(message, optional, tag = "1")] pub balance: ::core::option::Option, } /// Get call coins request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCallCoinsRequest {} /// Get call coins result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCallCoinsResult { /// coins #[prost(message, optional, tag = "1")] pub coins: ::core::option::Option, } /// Get the version of the address request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAddressVersionRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } /// Get the version of the address result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetAddressVersionResult { #[prost(uint64, tag = "1")] pub version: u64, } /// Get the category of the address request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAddressCategoryRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } /// Get the category of the address result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetAddressCategoryResult { #[prost(enumeration = "super::super::model::v1::AddressCategory", tag = "1")] pub category: i32, } /// Get the version of the public key request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetPubKeyVersionRequest { #[prost(string, tag = "1")] pub pub_key: ::prost::alloc::string::String, } /// Get the version of the public key result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetPubKeyVersionResult { #[prost(uint64, tag = "1")] pub version: u64, } /// Get the version of the signature request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSignatureVersionRequest { #[prost(string, tag = "1")] pub signature: ::prost::alloc::string::String, } /// Get the version of the signature result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetSignatureVersionResult { #[prost(uint64, tag = "1")] pub version: u64, } /// bytes to base58 request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BytesToBase58CheckRequest { #[prost(bytes = "vec", tag = "1")] pub bytes: ::prost::alloc::vec::Vec, } /// bytes to base58 result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BytesToBase58CheckResult { #[prost(string, tag = "1")] pub base58_check: ::prost::alloc::string::String, } /// base58 to bytes request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Base58CheckToBytesRequest { #[prost(string, tag = "1")] pub base58_check: ::prost::alloc::string::String, } /// base58 to bytes result -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Base58CheckToBytesResult { #[prost(bytes = "vec", tag = "1")] pub bytes: ::prost::alloc::vec::Vec, } /// Chain id request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ChainIdRequest {} /// Chain id result -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ChainIdResult { #[prost(uint64, tag = "1")] pub id: u64, diff --git a/src/massa.api.v1.rs b/src/massa.api.v1.rs index 9c1a151..e36da48 100644 --- a/src/massa.api.v1.rs +++ b/src/massa.api.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// AddToBootstrapBlacklistRequest holds the request for AddToBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddToBootstrapBlacklistRequest { /// IP addresses to add to bootstrap blacklist @@ -8,11 +7,9 @@ pub struct AddToBootstrapBlacklistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// AddToBootstrapBlacklistResponse holds the response from AddToBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddToBootstrapBlacklistResponse {} /// AddToBootstrapWhitelistRequest holds the request for AddToBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddToBootstrapWhitelistRequest { /// IP addresses to add to bootstrap whitelist @@ -20,11 +17,9 @@ pub struct AddToBootstrapWhitelistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// AddToBootstrapWhitelistResponse holds the response from AddToBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddToBootstrapWhitelistResponse {} /// AddToPeersWhitelistRequest holds the request for AddToPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddToPeersWhitelistRequest { /// IP addresses to add to peers whitelist @@ -32,11 +27,9 @@ pub struct AddToPeersWhitelistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// AddToPeersWhitelistResponse holds the response from AddToPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddToPeersWhitelistResponse {} /// AddStakingSecretKeysRequest holds the request for AddStakingSecretKeys -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddStakingSecretKeysRequest { /// Secret keys to add to wallet @@ -44,23 +37,18 @@ pub struct AddStakingSecretKeysRequest { pub secret_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// AddStakingSecretKeysResponse holds the response from AddStakingSecretKeys -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AddStakingSecretKeysResponse {} /// AllowEveryoneToBootstrapRequest holds the request for AllowEveryoneToBootstrap -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AllowEveryoneToBootstrapRequest {} /// AllowEveryoneToBootstrapResponse holds the response from AllowEveryoneToBootstrap -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AllowEveryoneToBootstrapResponse {} /// GetBootstrapBlacklistRequest holds the request for GetBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetBootstrapBlacklistRequest {} /// GetBootstrapBlacklistResponse holds the response from GetBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBootstrapBlacklistResponse { /// Bootstrap blacklisted IP addresses @@ -68,11 +56,9 @@ pub struct GetBootstrapBlacklistResponse { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetBootstrapWhitelistRequest holds the request for GetBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetBootstrapWhitelistRequest {} /// GetBootstrapWhitelistResponse holds the response from GetBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBootstrapWhitelistResponse { /// Bootstrap whitelisted IP addresses @@ -80,11 +66,9 @@ pub struct GetBootstrapWhitelistResponse { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetMipStatusRequest holds request for GetMipStatus -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetMipStatusRequest {} /// GetMipStatusResponse holds response from GetMipStatus -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetMipStatusResponse { /// (MipInfo - status id) entries @@ -94,11 +78,9 @@ pub struct GetMipStatusResponse { >, } /// GetNodeStatusRequest holds the request for GetNodeStatus -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetNodeStatusRequest {} /// GetNodeStatusResponse holds the response from GetNodeStatus -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNodeStatusResponse { /// Node status @@ -106,11 +88,9 @@ pub struct GetNodeStatusResponse { pub status: ::core::option::Option, } /// GetPeersWhitelistRequest holds the request for GetPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetPeersWhitelistRequest {} /// GetPeersWhitelistResponse holds the response from GetPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetPeersWhitelistResponse { /// Whitelisted IP addresses @@ -118,7 +98,6 @@ pub struct GetPeersWhitelistResponse { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// BanNodesByIdsRequest holds the request for BanNodesByIds -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BanNodesByIdsRequest { /// Node ids to ban @@ -126,11 +105,9 @@ pub struct BanNodesByIdsRequest { pub node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// BanNodesByIdsResponse holds the response from BanNodesByIds -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BanNodesByIdsResponse {} /// BanNodesByIpsRequest holds the request for BanNodesByIps -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BanNodesByIpsRequest { /// Node IP addresses to ban @@ -138,11 +115,9 @@ pub struct BanNodesByIpsRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// BanNodesByIpsResponse holds the response from BanNodesByIps -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BanNodesByIpsResponse {} /// RemoveFromBootstrapBlacklistRequest holds the request for RemoveFromBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveFromBootstrapBlacklistRequest { /// IP addresses to remove from bootstrap blacklist @@ -150,11 +125,9 @@ pub struct RemoveFromBootstrapBlacklistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// RemoveFromBootstrapBlacklistResponse holds the response from RemoveFromBootstrapBlacklist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RemoveFromBootstrapBlacklistResponse {} /// RemoveFromBootstrapWhitelistRequest holds the request for RemoveFromBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveFromBootstrapWhitelistRequest { /// IP addresses to remove from bootstrap whitelist @@ -162,11 +135,9 @@ pub struct RemoveFromBootstrapWhitelistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// RemoveFromBootstrapWhitelistResponse holds the response from RemoveFromBootstrapWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RemoveFromBootstrapWhitelistResponse {} /// RemoveFromPeersWhitelistRequest holds the request for RemoveFromPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveFromPeersWhitelistRequest { /// IP addresses to remove from peers whitelist @@ -174,11 +145,9 @@ pub struct RemoveFromPeersWhitelistRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// RemoveFromPeersWhitelistResponse holds the response from RemoveFromPeersWhitelist -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RemoveFromPeersWhitelistResponse {} /// RemoveStakingAddressesRequest holds the request for RemoveStakingAddresses -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveStakingAddressesRequest { /// Addresses to remove from staking @@ -186,11 +155,9 @@ pub struct RemoveStakingAddressesRequest { pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// RemoveStakingAddressesResponse holds the response from RemoveStakingAddresses -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RemoveStakingAddressesResponse {} /// SignMessagesRequest holds the request for SignMessages -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignMessagesRequest { /// Messages to sign in bytes @@ -198,7 +165,6 @@ pub struct SignMessagesRequest { pub messages: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// SignMessagesResponse holds the response from SignMessages -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignMessagesResponse { /// Public key that signed the message @@ -209,15 +175,12 @@ pub struct SignMessagesResponse { pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// ShutdownGracefullyRequest holds the request for ShutdownGracefully -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ShutdownGracefullyRequest {} /// ShutdownGracefullyResponse holds the response from ShutdownGracefully -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ShutdownGracefullyResponse {} /// UnbanNodesByIdsRequest holds the request for UnbanNodesByIds -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnbanNodesByIdsRequest { /// Node ids to unban @@ -225,11 +188,9 @@ pub struct UnbanNodesByIdsRequest { pub node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// UnbanNodesByIdsResponse holds the response from UnbanNodesByIds -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct UnbanNodesByIdsResponse {} /// UnbanNodesByIpsRequest holds the request for UnbanNodesByIps -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnbanNodesByIpsRequest { /// Nodes IP addresses to unban @@ -237,12 +198,17 @@ pub struct UnbanNodesByIpsRequest { pub ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// UnbanNodesByIpsResponse holds the response from UnbanNodesByIps -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct UnbanNodesByIpsResponse {} /// Generated client implementations. pub mod private_service_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::*; use tonic::codegen::http::Uri; /// Massa private gRPC service @@ -265,8 +231,8 @@ pub mod private_service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -291,7 +257,7 @@ pub mod private_service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { PrivateServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -338,8 +304,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -369,8 +334,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -401,8 +365,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -429,8 +392,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -460,8 +422,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -491,8 +452,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -522,8 +482,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -553,8 +512,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -579,8 +537,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -605,8 +562,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -633,8 +589,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -659,8 +614,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -685,8 +639,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -716,8 +669,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -747,8 +699,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -778,8 +729,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -809,8 +759,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -835,8 +784,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -863,8 +811,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -891,8 +838,7 @@ pub mod private_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -911,11 +857,17 @@ pub mod private_service_client { } /// Generated server implementations. pub mod private_service_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 PrivateServiceServer. #[async_trait] - pub trait PrivateService: Send + Sync + 'static { + pub trait PrivateService: std::marker::Send + std::marker::Sync + 'static { /// Add IP addresses to node bootstrap blacklist async fn add_to_bootstrap_blacklist( &self, @@ -1080,20 +1032,18 @@ pub mod private_service_server { } /// Massa private gRPC service #[derive(Debug)] - pub struct PrivateServiceServer { - inner: _Inner, + pub struct PrivateServiceServer { + inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - struct _Inner(Arc); - impl PrivateServiceServer { + impl PrivateServiceServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } pub fn from_arc(inner: Arc) -> Self { - let inner = _Inner(inner); Self { inner, accept_compression_encodings: Default::default(), @@ -1143,8 +1093,8 @@ pub mod private_service_server { impl tonic::codegen::Service> for PrivateServiceServer where T: PrivateService, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -1156,7 +1106,6 @@ pub mod private_service_server { Poll::Ready(Ok(())) } fn call(&mut self, req: http::Request) -> Self::Future { - let inner = self.inner.clone(); match req.uri().path() { "/massa.api.v1.PrivateService/AddToBootstrapBlacklist" => { #[allow(non_camel_case_types)] @@ -1193,7 +1142,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = AddToBootstrapBlacklistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1245,7 +1193,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = AddToBootstrapWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1295,7 +1242,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = AddToPeersWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1345,7 +1291,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = AddStakingSecretKeysSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1397,7 +1342,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = AllowEveryoneToBootstrapSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1447,7 +1391,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetBootstrapBlacklistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1497,7 +1440,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetBootstrapWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1543,7 +1485,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetMipStatusSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1590,7 +1531,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetNodeStatusSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1637,7 +1577,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetPeersWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1684,7 +1623,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = BanNodesByIdsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1731,7 +1669,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = BanNodesByIpsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1786,7 +1723,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = RemoveFromBootstrapBlacklistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1841,7 +1777,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = RemoveFromBootstrapWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1893,7 +1828,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = RemoveFromPeersWhitelistSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1943,7 +1877,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = RemoveStakingAddressesSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1989,7 +1922,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SignMessagesSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -2036,7 +1968,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = ShutdownGracefullySvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -2083,7 +2014,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = UnbanNodesByIdsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -2130,7 +2060,6 @@ pub mod private_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = UnbanNodesByIpsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -2149,20 +2078,25 @@ pub mod private_service_server { } _ => { Box::pin(async move { - Ok( - http::Response::builder() - .status(200) - .header("grpc-status", "12") - .header("content-type", "application/grpc") - .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) }) } } } } - impl Clone for PrivateServiceServer { + impl Clone for PrivateServiceServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -2174,22 +2108,13 @@ pub mod private_service_server { } } } - impl Clone for _Inner { - fn clone(&self) -> Self { - Self(Arc::clone(&self.0)) - } - } - impl std::fmt::Debug for _Inner { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{:?}", self.0) - } - } - impl tonic::server::NamedService for PrivateServiceServer { - const NAME: &'static str = "massa.api.v1.PrivateService"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "massa.api.v1.PrivateService"; + impl tonic::server::NamedService for PrivateServiceServer { + const NAME: &'static str = SERVICE_NAME; } } /// ExecuteReadOnlyCallRequest holds request for ExecuteReadOnlyCall -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecuteReadOnlyCallRequest { /// Execution call @@ -2197,7 +2122,6 @@ pub struct ExecuteReadOnlyCallRequest { pub call: ::core::option::Option, } /// ExecuteReadOnlyCallResponse holds response from ExecuteReadOnlyCall -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecuteReadOnlyCallResponse { /// Execution output @@ -2205,7 +2129,6 @@ pub struct ExecuteReadOnlyCallResponse { pub output: ::core::option::Option, } /// GetBlocksRequest holds request for GetBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlocksRequest { /// Block ids @@ -2213,7 +2136,6 @@ pub struct GetBlocksRequest { pub block_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetBlocksResponse holds response from GetBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlocksResponse { /// Wrapped blocks @@ -2221,7 +2143,6 @@ pub struct GetBlocksResponse { pub wrapped_blocks: ::prost::alloc::vec::Vec, } /// GetDatastoreEntriesRequest holds request from GetDatastoreEntries -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDatastoreEntriesRequest { /// Returns all the datastore entries that verify all the filters @@ -2229,7 +2150,6 @@ pub struct GetDatastoreEntriesRequest { pub filters: ::prost::alloc::vec::Vec, } /// DatastoreEntryFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDatastoreEntryFilter { /// Filter @@ -2239,7 +2159,6 @@ pub struct GetDatastoreEntryFilter { /// Nested message and enum types in `GetDatastoreEntryFilter`. pub mod get_datastore_entry_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these (address-key) pairs @@ -2248,7 +2167,6 @@ pub mod get_datastore_entry_filter { } } /// GetDatastoreEntriesResponse holds response from GetDatastoreEntries -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetDatastoreEntriesResponse { /// Datastore entries @@ -2258,7 +2176,6 @@ pub struct GetDatastoreEntriesResponse { >, } /// GetEndorsementsRequest holds request for GetEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetEndorsementsRequest { /// Endorsement ids @@ -2266,7 +2183,6 @@ pub struct GetEndorsementsRequest { pub endorsement_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetEndorsementsResponse holds response from GetEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetEndorsementsResponse { /// Wrapped operations @@ -2276,11 +2192,9 @@ pub struct GetEndorsementsResponse { >, } /// GetNextBlockBestParentsRequest holds request for GetNextBlockBestParents -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetNextBlockBestParentsRequest {} /// GetNextBlockBestParentsResponse holds response from GetNextBlockBestParents -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNextBlockBestParentsResponse { /// Next block best parents @@ -2288,7 +2202,6 @@ pub struct GetNextBlockBestParentsResponse { pub block_parents: ::prost::alloc::vec::Vec, } /// GetOperationsRequest holds request for GetOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOperationsRequest { /// Operation ids @@ -2296,7 +2209,6 @@ pub struct GetOperationsRequest { pub operation_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GetOperationsResponse holds response from GetOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOperationsResponse { /// Wrapped operations @@ -2306,7 +2218,6 @@ pub struct GetOperationsResponse { >, } /// GetScExecutionEventsRequest holds request for GetScExecutionEvents -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetScExecutionEventsRequest { /// Returns all the sc execution events that verify all the filters @@ -2314,7 +2225,6 @@ pub struct GetScExecutionEventsRequest { pub filters: ::prost::alloc::vec::Vec, } /// ScExecutionEvents Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScExecutionEventsFilter { /// Filter @@ -2324,7 +2234,6 @@ pub struct ScExecutionEventsFilter { /// Nested message and enum types in `ScExecutionEventsFilter`. pub mod sc_execution_events_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Slot range @@ -2351,7 +2260,6 @@ pub mod sc_execution_events_filter { } } /// GetScExecutionEventsResponse holds response from GetScExecutionEvents -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetScExecutionEventsResponse { /// ScExecutionEvents @@ -2359,11 +2267,9 @@ pub struct GetScExecutionEventsResponse { pub events: ::prost::alloc::vec::Vec, } /// GetStatusRequest holds request from GetStatus -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetStatusRequest {} /// GetStatusResponse holds request from GetStatus -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetStatusResponse { /// Status @@ -2371,7 +2277,6 @@ pub struct GetStatusResponse { pub status: ::core::option::Option, } /// GetSelectorDrawsRequest holds request from GetSelectorDraws -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSelectorDrawsRequest { /// Returns all the selector draws that verify all the filters @@ -2379,7 +2284,6 @@ pub struct GetSelectorDrawsRequest { pub filters: ::prost::alloc::vec::Vec, } /// SelectorDraws Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SelectorDrawsFilter { /// Returns all the selector draws that verify all the filters @@ -2389,7 +2293,6 @@ pub struct SelectorDrawsFilter { /// Nested message and enum types in `SelectorDrawsFilter`. pub mod selector_draws_filter { /// Returns all the selector draws that verify all the filters - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of the Addresses @@ -2401,7 +2304,6 @@ pub mod selector_draws_filter { } } /// GetSelectorDrawsResponse holds response from GetSelectorDraws -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSelectorDrawsResponse { /// Selector draws @@ -2409,7 +2311,6 @@ pub struct GetSelectorDrawsResponse { pub draws: ::prost::alloc::vec::Vec, } /// GetStakersRequest holds request from GetStakers -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetStakersRequest { /// Returns all the stakers that verify all the filters @@ -2417,8 +2318,7 @@ pub struct GetStakersRequest { pub filters: ::prost::alloc::vec::Vec, } /// Stakers Filter -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct StakersFilter { /// Returns all the stakers that verify all the filters #[prost(oneof = "stakers_filter::Filter", tags = "1, 2, 3")] @@ -2427,8 +2327,7 @@ pub struct StakersFilter { /// Nested message and enum types in `StakersFilter`. pub mod stakers_filter { /// Returns all the stakers that verify all the filters - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Filter { /// Minimum rolls #[prost(uint64, tag = "1")] @@ -2442,7 +2341,6 @@ pub mod stakers_filter { } } /// GetStakersResponse holds response from GetStakers -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetStakersResponse { /// Stakers @@ -2450,19 +2348,16 @@ pub struct GetStakersResponse { pub stakers: ::prost::alloc::vec::Vec, } /// GetTransactionsThroughputRequest holds request for GetTransactionsThroughput -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetTransactionsThroughputRequest {} /// GetTransactionsThroughputResponse holds response from GetTransactionsThroughput -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetTransactionsThroughputResponse { /// Transactions throughput #[prost(uint32, tag = "1")] pub throughput: u32, } /// Request to atomically execute a batch of execution state queries -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryStateRequest { /// Execution queries @@ -2470,7 +2365,6 @@ pub struct QueryStateRequest { pub queries: ::prost::alloc::vec::Vec, } /// Query state query item -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryRequestItem { #[prost( @@ -2481,7 +2375,6 @@ pub struct ExecutionQueryRequestItem { } /// Nested message and enum types in `ExecutionQueryRequestItem`. pub mod execution_query_request_item { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum RequestItem { /// Checks if address exists (candidate) @@ -2549,7 +2442,6 @@ pub mod execution_query_request_item { } } /// Request to check if address exists (candidate) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressExistsCandidate { /// Address to check @@ -2557,7 +2449,6 @@ pub struct AddressExistsCandidate { pub address: ::prost::alloc::string::String, } /// Request to check if address exists (final) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressExistsFinal { /// Address to check @@ -2565,7 +2456,6 @@ pub struct AddressExistsFinal { pub address: ::prost::alloc::string::String, } /// Request to get the balance (candidate) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBalanceCandidate { /// Address to query @@ -2573,7 +2463,6 @@ pub struct AddressBalanceCandidate { pub address: ::prost::alloc::string::String, } /// Request to get the balance (final) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBalanceFinal { /// Address to query @@ -2581,7 +2470,6 @@ pub struct AddressBalanceFinal { pub address: ::prost::alloc::string::String, } /// Request to get the bytecode (candidate) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytecodeCandidate { /// Address to query @@ -2589,7 +2477,6 @@ pub struct AddressBytecodeCandidate { pub address: ::prost::alloc::string::String, } /// Request to get the bytecode (final) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytecodeFinal { /// Address to query @@ -2597,7 +2484,6 @@ pub struct AddressBytecodeFinal { pub address: ::prost::alloc::string::String, } /// Request to get the datastore keys (candidate) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDatastoreKeysCandidate { /// Address to query @@ -2608,7 +2494,6 @@ pub struct AddressDatastoreKeysCandidate { pub prefix: ::prost::alloc::vec::Vec, } /// Request to get the datastore keys (final) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDatastoreKeysFinal { /// Address to query @@ -2619,7 +2504,6 @@ pub struct AddressDatastoreKeysFinal { pub prefix: ::prost::alloc::vec::Vec, } /// Request to get a datastore value (candidate) for an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDatastoreValueCandidate { /// Address to query @@ -2630,7 +2514,6 @@ pub struct AddressDatastoreValueCandidate { pub key: ::prost::alloc::vec::Vec, } /// Request to get a datastore value (final) for an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDatastoreValueFinal { /// Address to query @@ -2641,7 +2524,6 @@ pub struct AddressDatastoreValueFinal { pub key: ::prost::alloc::vec::Vec, } /// Request to get the execution status (candidate) for an operation -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpExecutionStatusCandidate { /// Operation ID to query @@ -2649,7 +2531,6 @@ pub struct OpExecutionStatusCandidate { pub operation_id: ::prost::alloc::string::String, } /// Request to get the execution status (final) for an operation -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpExecutionStatusFinal { /// Operation ID to query @@ -2657,8 +2538,7 @@ pub struct OpExecutionStatusFinal { pub operation_id: ::prost::alloc::string::String, } /// Request to get the execution status (candidate) for a denunciation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DenunciationExecutionStatusCandidate { /// Denunciation index to query #[prost(message, optional, tag = "1")] @@ -2667,8 +2547,7 @@ pub struct DenunciationExecutionStatusCandidate { >, } /// Request to get the execution status (final) for a denunciation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DenunciationExecutionStatusFinal { /// Denunciation index to query #[prost(message, optional, tag = "1")] @@ -2677,7 +2556,6 @@ pub struct DenunciationExecutionStatusFinal { >, } /// Request to get the roll count (candidate) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressRollsCandidate { /// Address to query @@ -2685,7 +2563,6 @@ pub struct AddressRollsCandidate { pub address: ::prost::alloc::string::String, } /// Request to get the roll count (final) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressRollsFinal { /// Address to query @@ -2693,7 +2570,6 @@ pub struct AddressRollsFinal { pub address: ::prost::alloc::string::String, } /// Request to get the deferred credits (candidate) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDeferredCreditsCandidate { /// Address to query @@ -2701,7 +2577,6 @@ pub struct AddressDeferredCreditsCandidate { pub address: ::prost::alloc::string::String, } /// Request to get the deferred credits (final) of an address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressDeferredCreditsFinal { /// Address to query @@ -2709,7 +2584,6 @@ pub struct AddressDeferredCreditsFinal { pub address: ::prost::alloc::string::String, } /// Request to get all information for a given cycle -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CycleInfos { /// Cycle to query @@ -2720,7 +2594,6 @@ pub struct CycleInfos { pub restrict_to_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Request to get filtered events -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Events { /// Returns all the events that verify all the filters @@ -2728,7 +2601,6 @@ pub struct Events { pub filters: ::prost::alloc::vec::Vec, } /// Response to atomically execute a batch of execution state queries -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryStateResponse { /// Final cursor position @@ -2745,7 +2617,6 @@ pub struct QueryStateResponse { pub responses: ::prost::alloc::vec::Vec, } /// Execution state query response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryResponse { /// Result or error @@ -2755,7 +2626,6 @@ pub struct ExecutionQueryResponse { /// Nested message and enum types in `ExecutionQueryResponse`. pub mod execution_query_response { /// Result or error - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Response { /// Execution query response item @@ -2767,7 +2637,6 @@ pub mod execution_query_response { } } /// Execution state query response item -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryResponseItem { #[prost( @@ -2780,7 +2649,6 @@ pub struct ExecutionQueryResponseItem { } /// Nested message and enum types in `ExecutionQueryResponseItem`. pub mod execution_query_response_item { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum ResponseItem { /// Boolean value @@ -2813,7 +2681,6 @@ pub mod execution_query_response_item { } } /// Deferred credits entry wrapper -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeferredCreditsEntryWrapper { /// Deferred credits entry @@ -2821,8 +2688,7 @@ pub struct DeferredCreditsEntryWrapper { pub entries: ::prost::alloc::vec::Vec, } /// Deferred credits entry -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DeferredCreditsEntry { /// Slot #[prost(message, optional, tag = "1")] @@ -2832,7 +2698,6 @@ pub struct DeferredCreditsEntry { pub amount: ::core::option::Option, } /// Cycle information for execution query -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryCycleInfos { /// Cycle number @@ -2846,7 +2711,6 @@ pub struct ExecutionQueryCycleInfos { pub staker_infos: ::prost::alloc::vec::Vec, } /// Staker information for a given cycle -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryStakerInfoEntry { /// Address of the staker @@ -2857,7 +2721,6 @@ pub struct ExecutionQueryStakerInfoEntry { pub info: ::core::option::Option, } /// Staker information for execution query -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryStakerInfo { /// Active roll count @@ -2870,7 +2733,6 @@ pub struct ExecutionQueryStakerInfo { >, } /// ExecutionQueryStakerInfoProductionStats entry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionQueryStakerInfoProductionStatsEntry { /// Address of the staker @@ -2881,8 +2743,7 @@ pub struct ExecutionQueryStakerInfoProductionStatsEntry { pub stats: ::core::option::Option, } /// Production statistics for staker info in execution query -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExecutionQueryStakerInfoProductionStats { /// Production successes #[prost(uint64, tag = "1")] @@ -2892,7 +2753,6 @@ pub struct ExecutionQueryStakerInfoProductionStats { pub block_failure_count: u64, } /// ScOutputEvents wrapper -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScOutputEventsWrapper { /// Events @@ -2900,7 +2760,6 @@ pub struct ScOutputEventsWrapper { pub events: ::prost::alloc::vec::Vec, } /// NewBlocksRequest holds request for NewBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewBlocksRequest { /// Returns all the blocks that verify all the filters @@ -2908,7 +2767,6 @@ pub struct NewBlocksRequest { pub filters: ::prost::alloc::vec::Vec, } /// NewBlocks Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewBlocksFilter { /// Filter @@ -2918,7 +2776,6 @@ pub struct NewBlocksFilter { /// Nested message and enum types in `NewBlocksFilter`. pub mod new_blocks_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these block ids @@ -2933,7 +2790,6 @@ pub mod new_blocks_filter { } } /// NewBlocksResponse holds response from NewBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewBlocksResponse { /// Signed block @@ -2941,7 +2797,6 @@ pub struct NewBlocksResponse { pub signed_block: ::core::option::Option, } /// NewEndorsementsRequest holds request for NewEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewEndorsementsRequest { /// Returns all the endorsements that verify all the filters @@ -2949,7 +2804,6 @@ pub struct NewEndorsementsRequest { pub filters: ::prost::alloc::vec::Vec, } /// NewEndorsements Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewEndorsementsFilter { /// Filter @@ -2959,7 +2813,6 @@ pub struct NewEndorsementsFilter { /// Nested message and enum types in `NewEndorsementsFilter`. pub mod new_endorsements_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these endorsement ids @@ -2974,7 +2827,6 @@ pub mod new_endorsements_filter { } } /// NewEndorsementsResponse holds response from NewEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewEndorsementsResponse { /// Signed endorsement @@ -2984,7 +2836,6 @@ pub struct NewEndorsementsResponse { >, } /// NewFilledBlocksRequest holds request for NewFilledBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewFilledBlocksRequest { /// Returns all the blocks that verify one of the filters @@ -2992,7 +2843,6 @@ pub struct NewFilledBlocksRequest { pub filters: ::prost::alloc::vec::Vec, } /// NewFilledBlocks Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewFilledBlocksFilter { /// Filter @@ -3002,7 +2852,6 @@ pub struct NewFilledBlocksFilter { /// Nested message and enum types in `NewFilledBlocksFilter`. pub mod new_filled_blocks_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these block ids @@ -3017,7 +2866,6 @@ pub mod new_filled_blocks_filter { } } /// NewFilledBlocksResponse holds response from NewFilledBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewFilledBlocksResponse { /// Block with operations content found in the node. @@ -3025,7 +2873,6 @@ pub struct NewFilledBlocksResponse { pub filled_block: ::core::option::Option, } /// NewOperationsRequest holds request for NewOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewOperationsRequest { /// Returns all the operations that verify all the filters @@ -3033,7 +2880,6 @@ pub struct NewOperationsRequest { pub filters: ::prost::alloc::vec::Vec, } /// NewOperations Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewOperationsFilter { /// Filter @@ -3043,7 +2889,6 @@ pub struct NewOperationsFilter { /// Nested message and enum types in `NewOperationsFilter`. pub mod new_operations_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of the operation ids @@ -3058,7 +2903,6 @@ pub mod new_operations_filter { } } /// NewOperationsResponse holds response from NewOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewOperationsResponse { /// Signed operation @@ -3068,7 +2912,6 @@ pub struct NewOperationsResponse { >, } /// NewSlotExecutionOutputsRequest holds request for NewSlotExecutionOutputs -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewSlotExecutionOutputsRequest { /// Returns all the slot execution outputs that verify all the filters @@ -3076,7 +2919,6 @@ pub struct NewSlotExecutionOutputsRequest { pub filters: ::prost::alloc::vec::Vec, } /// NewSlotExecutionOutputs Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewSlotExecutionOutputsFilter { /// Filter @@ -3089,7 +2931,6 @@ pub struct NewSlotExecutionOutputsFilter { /// Nested message and enum types in `NewSlotExecutionOutputsFilter`. pub mod new_slot_execution_outputs_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Execution output status @@ -3119,7 +2960,6 @@ pub mod new_slot_execution_outputs_filter { } } /// AsyncPoolChangesFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncPoolChangesFilter { /// Filter @@ -3129,7 +2969,6 @@ pub struct AsyncPoolChangesFilter { /// Nested message and enum types in `AsyncPoolChangesFilter`. pub mod async_pool_changes_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message @@ -3157,7 +2996,6 @@ pub mod async_pool_changes_filter { } } /// PosChangesFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PosChangesFilter { /// Filter @@ -3167,7 +3005,6 @@ pub struct PosChangesFilter { /// Nested message and enum types in `PosChangesFilter`. pub mod pos_changes_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message @@ -3179,7 +3016,6 @@ pub mod pos_changes_filter { } } /// ExecutionEventFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionEventFilter { /// Filter @@ -3189,7 +3025,6 @@ pub struct ExecutionEventFilter { /// Nested message and enum types in `ExecutionEventFilter`. pub mod execution_event_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message @@ -3210,7 +3045,6 @@ pub mod execution_event_filter { } } /// ExecutedOpsChangesFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutedOpsChangesFilter { /// Filter @@ -3220,7 +3054,6 @@ pub struct ExecutedOpsChangesFilter { /// Nested message and enum types in `ExecutedOpsChangesFilter`. pub mod executed_ops_changes_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message @@ -3232,8 +3065,7 @@ pub mod executed_ops_changes_filter { } } /// ExecutedDenounciationFilter -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExecutedDenounciationFilter { /// Filter #[prost(oneof = "executed_denounciation_filter::Filter", tags = "1")] @@ -3242,8 +3074,7 @@ pub struct ExecutedDenounciationFilter { /// Nested message and enum types in `ExecutedDenounciationFilter`. pub mod executed_denounciation_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message #[prost(message, tag = "1")] @@ -3251,7 +3082,6 @@ pub mod executed_denounciation_filter { } } /// LedgerChangesFilter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LedgerChangesFilter { /// Filter @@ -3261,7 +3091,6 @@ pub struct LedgerChangesFilter { /// Nested message and enum types in `LedgerChangesFilter`. pub mod ledger_changes_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// Do not return any message @@ -3273,7 +3102,6 @@ pub mod ledger_changes_filter { } } /// NewSlotExecutionOutputsResponse holds response from NewSlotExecutionOutputs -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewSlotExecutionOutputsResponse { /// Slot execution output @@ -3281,15 +3109,13 @@ pub struct NewSlotExecutionOutputsResponse { pub output: ::core::option::Option, } /// NewSlotABICallStacks request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NewSlotAbiCallStacksRequest { /// Finality level to receive informations from #[prost(enumeration = "FinalityLevel", tag = "1")] pub finality_level: i32, } /// NewSlotABICallStacks response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewSlotAbiCallStacksResponse { /// Finality level to receive informations from @@ -3303,15 +3129,13 @@ pub struct NewSlotAbiCallStacksResponse { pub operation_call_stacks: ::prost::alloc::vec::Vec, } /// NewSlotTransfers request -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NewSlotTransfersRequest { /// Finality level to receive informations from #[prost(enumeration = "FinalityLevel", tag = "1")] pub finality_level: i32, } /// NewSlotTransfers response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewSlotTransfersResponse { /// Finality level to receive informations from @@ -3322,7 +3146,6 @@ pub struct NewSlotTransfersResponse { pub transfers: ::prost::alloc::vec::Vec, } /// SendBlocksRequest holds parameters to SendBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendBlocksRequest { /// Secure shared block @@ -3330,7 +3153,6 @@ pub struct SendBlocksRequest { pub block: ::prost::alloc::vec::Vec, } /// SendBlocksResponse holds response from SendBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendBlocksResponse { /// Block result or a gRPC status @@ -3340,7 +3162,6 @@ pub struct SendBlocksResponse { /// Nested message and enum types in `SendBlocksResponse`. pub mod send_blocks_response { /// Block result or a gRPC status - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Result { /// Block result @@ -3352,7 +3173,6 @@ pub mod send_blocks_response { } } /// SendEndorsementsRequest holds parameters to SendEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendEndorsementsRequest { /// Secure shared endorsements @@ -3360,7 +3180,6 @@ pub struct SendEndorsementsRequest { pub endorsements: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// SendEndorsementsResponse holds response from SendEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendEndorsementsResponse { /// Endorsement result or gRPC status @@ -3370,7 +3189,6 @@ pub struct SendEndorsementsResponse { /// Nested message and enum types in `SendEndorsementsResponse`. pub mod send_endorsements_response { /// Endorsement result or gRPC status - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Result { /// Endorsement result @@ -3382,7 +3200,6 @@ pub mod send_endorsements_response { } } /// SendOperationsRequest holds parameters to SendOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendOperationsRequest { /// Secured shared operations @@ -3390,7 +3207,6 @@ pub struct SendOperationsRequest { pub operations: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// SendOperationsResponse holds response from SendOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendOperationsResponse { /// Operation result or gRPC status @@ -3400,7 +3216,6 @@ pub struct SendOperationsResponse { /// Nested message and enum types in `SendOperationsResponse`. pub mod send_operations_response { /// Operation result or gRPC status - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Result { /// Operation result @@ -3412,23 +3227,20 @@ pub mod send_operations_response { } } /// TransactionsThroughputRequest holds request for TransactionsThroughput -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TransactionsThroughputRequest { /// Timer interval in seconds (Optional). Defaults to 10s #[prost(message, optional, tag = "1")] pub interval: ::core::option::Option, } /// TransactionsThroughputResponse holds response from TransactionsThroughput -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TransactionsThroughputResponse { /// Transactions throughput per second #[prost(uint32, tag = "1")] pub throughput: u32, } /// SearchBlocksRequest holds request for SearchBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchBlocksRequest { /// Returns all the blocks that verify all the filters @@ -3436,7 +3248,6 @@ pub struct SearchBlocksRequest { pub filters: ::prost::alloc::vec::Vec, } /// SearchBlocks Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchBlocksFilter { /// Filter @@ -3446,7 +3257,6 @@ pub struct SearchBlocksFilter { /// Nested message and enum types in `SearchBlocksFilter`. pub mod search_blocks_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these block ids @@ -3461,7 +3271,6 @@ pub mod search_blocks_filter { } } /// SearchBlocksResponse holds response from SearchBlocks -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchBlocksResponse { /// Information about the blocks @@ -3469,7 +3278,6 @@ pub struct SearchBlocksResponse { pub block_infos: ::prost::alloc::vec::Vec, } /// SearchEndorsementsRequest holds request for SearchEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchEndorsementsRequest { /// Returns all the endorsements informations that verify all the filters @@ -3477,7 +3285,6 @@ pub struct SearchEndorsementsRequest { pub filters: ::prost::alloc::vec::Vec, } /// SearchEndorsements Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchEndorsementsFilter { /// Filter @@ -3487,7 +3294,6 @@ pub struct SearchEndorsementsFilter { /// Nested message and enum types in `SearchEndorsementsFilter`. pub mod search_endorsements_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of these endorsement ids @@ -3502,7 +3308,6 @@ pub mod search_endorsements_filter { } } /// SearchEndorsementsResponse holds response from SearchEndorsements -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchEndorsementsResponse { /// Information about the endorsements @@ -3512,7 +3317,6 @@ pub struct SearchEndorsementsResponse { >, } /// SearchOperationsRequest holds request for SearchOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchOperationsRequest { /// Returns all the operations that verify all the filters @@ -3520,7 +3324,6 @@ pub struct SearchOperationsRequest { pub filters: ::prost::alloc::vec::Vec, } /// SearchOperations Filter -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchOperationsFilter { /// Filter @@ -3530,7 +3333,6 @@ pub struct SearchOperationsFilter { /// Nested message and enum types in `SearchOperationsFilter`. pub mod search_operations_filter { /// Filter - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Filter { /// One of the operation ids @@ -3542,7 +3344,6 @@ pub mod search_operations_filter { } } /// SearchOperationsResponse holds response from SearchOperations -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchOperationsResponse { /// Information about the operations @@ -3552,7 +3353,6 @@ pub struct SearchOperationsResponse { >, } /// GetOperationABICallStacks request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOperationAbiCallStacksRequest { /// Operations ids to get the call stack from @@ -3560,7 +3360,6 @@ pub struct GetOperationAbiCallStacksRequest { pub operation_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Definition of an ABI call stack element -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbiCallStackElement { /// name of the ABI @@ -3574,7 +3373,6 @@ pub struct AbiCallStackElement { pub return_value: ::prost::alloc::string::String, } /// Definition of an ABI call stack element that is the 'call' ABI -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbiCallStackElementCall { /// name of the ABI @@ -3591,7 +3389,6 @@ pub struct AbiCallStackElementCall { pub return_value: ::prost::alloc::string::String, } /// Definition of an ABI call stack element parent -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbiCallStackElementParent { /// Element of the call stack @@ -3603,7 +3400,6 @@ pub struct AbiCallStackElementParent { /// Nested message and enum types in `ABICallStackElementParent`. pub mod abi_call_stack_element_parent { /// Element of the call stack - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum CallStackElement { /// Any ABI call that is not the ABI 'call' @@ -3615,7 +3411,6 @@ pub mod abi_call_stack_element_parent { } } /// Definition of an ABI call stack -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbiCallStack { /// All elements of the call stack @@ -3623,14 +3418,12 @@ pub struct AbiCallStack { pub call_stack: ::prost::alloc::vec::Vec, } /// GetOperationABICallStacks response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetOperationAbiCallStacksResponse { #[prost(message, repeated, tag = "1")] pub call_stacks: ::prost::alloc::vec::Vec, } /// GetSlotABICallStacks request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSlotAbiCallStacksRequest { /// Slots asked @@ -3638,7 +3431,6 @@ pub struct GetSlotAbiCallStacksRequest { pub slots: ::prost::alloc::vec::Vec, } /// ABI asynchronous execution call stack -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AscabiCallStack { /// Index of the execution in the slot @@ -3649,7 +3441,6 @@ pub struct AscabiCallStack { pub call_stack: ::prost::alloc::vec::Vec, } /// Operation execution call stack -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OperationAbiCallStack { /// Operation id @@ -3660,7 +3451,6 @@ pub struct OperationAbiCallStack { pub call_stack: ::prost::alloc::vec::Vec, } /// Call stack for a slot -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SlotAbiCallStacks { /// Call stacks for asynchronous execution @@ -3671,7 +3461,6 @@ pub struct SlotAbiCallStacks { pub operation_call_stacks: ::prost::alloc::vec::Vec, } /// GetSlotABICallStacks response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSlotAbiCallStacksResponse { /// Call stacks for the slots @@ -3679,7 +3468,6 @@ pub struct GetSlotAbiCallStacksResponse { pub slot_call_stacks: ::prost::alloc::vec::Vec, } /// GetSlotTransfersRequest holds request for GetSlotTransfers -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSlotTransfersRequest { /// Slot to get the transfers from @@ -3687,7 +3475,6 @@ pub struct GetSlotTransfersRequest { pub slots: ::prost::alloc::vec::Vec, } /// Transfer info -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferInfo { /// Sender @@ -3708,7 +3495,6 @@ pub struct TransferInfo { /// Nested message and enum types in `TransferInfo`. pub mod transfer_info { /// Operation id or asc index - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum OperationIdOrAscIndex { /// Operation id @@ -3720,7 +3506,6 @@ pub mod transfer_info { } } /// List of transfers for a slot -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferInfos { /// Slot @@ -3731,7 +3516,6 @@ pub struct TransferInfos { pub transfers: ::prost::alloc::vec::Vec, } /// GetSlotTransfersResponse holds response from GetSlotTransfers -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSlotTransfersResponse { /// Transfers for the slot @@ -3758,16 +3542,14 @@ impl ExecutionQueryExecutionStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ExecutionQueryExecutionStatus::Unspecified => { - "EXECUTION_QUERY_EXECUTION_STATUS_UNSPECIFIED" - } - ExecutionQueryExecutionStatus::AlreadyExecutedWithSuccess => { + Self::Unspecified => "EXECUTION_QUERY_EXECUTION_STATUS_UNSPECIFIED", + Self::AlreadyExecutedWithSuccess => { "EXECUTION_QUERY_EXECUTION_STATUS_ALREADY_EXECUTED_WITH_SUCCESS" } - ExecutionQueryExecutionStatus::AlreadyExecutedWithFailure => { + Self::AlreadyExecutedWithFailure => { "EXECUTION_QUERY_EXECUTION_STATUS_ALREADY_EXECUTED_WITH_FAILURE" } - ExecutionQueryExecutionStatus::ExecutableOrExpired => { + Self::ExecutableOrExpired => { "EXECUTION_QUERY_EXECUTION_STATUS_EXECUTABLE_OR_EXPIRED" } } @@ -3807,9 +3589,9 @@ impl FinalityLevel { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - FinalityLevel::Unspecified => "FINALITY_LEVEL_UNSPECIFIED", - FinalityLevel::Candidate => "FINALITY_LEVEL_CANDIDATE", - FinalityLevel::Final => "FINALITY_LEVEL_FINAL", + Self::Unspecified => "FINALITY_LEVEL_UNSPECIFIED", + Self::Candidate => "FINALITY_LEVEL_CANDIDATE", + Self::Final => "FINALITY_LEVEL_FINAL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3824,7 +3606,13 @@ impl FinalityLevel { } /// Generated client implementations. pub mod public_service_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::*; use tonic::codegen::http::Uri; /// Massa public gRPC service @@ -3847,8 +3635,8 @@ pub mod public_service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -3873,7 +3661,7 @@ pub mod public_service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { PublicServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -3920,8 +3708,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -3948,8 +3735,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -3974,8 +3760,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4002,8 +3787,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4030,8 +3814,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4061,8 +3844,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4087,8 +3869,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4115,8 +3896,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4143,8 +3923,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4169,8 +3948,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4195,8 +3973,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4226,8 +4003,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4252,8 +4028,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4278,8 +4053,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4306,8 +4080,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4334,8 +4107,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4365,8 +4137,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4393,8 +4164,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4421,8 +4191,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4449,8 +4218,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4479,8 +4247,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4509,8 +4276,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4539,8 +4305,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4574,8 +4339,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4604,8 +4368,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4632,8 +4395,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4660,8 +4422,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4690,8 +4451,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4720,8 +4480,7 @@ pub mod public_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -4743,11 +4502,17 @@ pub mod public_service_client { } /// Generated server implementations. pub mod public_service_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 PublicServiceServer. #[async_trait] - pub trait PublicService: Send + Sync + 'static { + pub trait PublicService: std::marker::Send + std::marker::Sync + 'static { /// Execute read only call async fn execute_read_only_call( &self, @@ -4896,7 +4661,7 @@ pub mod public_service_server { type NewBlocksStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// New received and produced blocks async fn new_blocks( @@ -4907,7 +4672,7 @@ pub mod public_service_server { type NewEndorsementsStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// New received and produced endorsements async fn new_endorsements( @@ -4921,7 +4686,7 @@ pub mod public_service_server { type NewFilledBlocksStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// New received and produced blocks with operations async fn new_filled_blocks( @@ -4935,7 +4700,7 @@ pub mod public_service_server { type NewOperationsStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// New received and produced operations async fn new_operations( @@ -4952,7 +4717,7 @@ pub mod public_service_server { tonic::Status, >, > - + Send + + std::marker::Send + 'static; /// New received and slot execution events async fn new_slot_execution_outputs( @@ -4971,7 +4736,7 @@ pub mod public_service_server { tonic::Status, >, > - + Send + + std::marker::Send + 'static; /// Call stack for each slot executed async fn new_slot_abi_call_stacks( @@ -4988,7 +4753,7 @@ pub mod public_service_server { tonic::Status, >, > - + Send + + std::marker::Send + 'static; /// Transfer list for each slot executed async fn new_slot_transfers( @@ -5002,7 +4767,7 @@ pub mod public_service_server { type SendBlocksStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// Send blocks async fn send_blocks( @@ -5016,7 +4781,7 @@ pub mod public_service_server { tonic::Status, >, > - + Send + + std::marker::Send + 'static; /// Send endorsements async fn send_endorsements( @@ -5030,7 +4795,7 @@ pub mod public_service_server { type SendOperationsStream: tonic::codegen::tokio_stream::Stream< Item = std::result::Result, > - + Send + + std::marker::Send + 'static; /// Send operations async fn send_operations( @@ -5047,7 +4812,7 @@ pub mod public_service_server { tonic::Status, >, > - + Send + + std::marker::Send + 'static; /// Transactions throughput async fn transactions_throughput( @@ -5062,20 +4827,18 @@ pub mod public_service_server { } /// Massa public gRPC service #[derive(Debug)] - pub struct PublicServiceServer { - inner: _Inner, + pub struct PublicServiceServer { + inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - struct _Inner(Arc); - impl PublicServiceServer { + impl PublicServiceServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } pub fn from_arc(inner: Arc) -> Self { - let inner = _Inner(inner); Self { inner, accept_compression_encodings: Default::default(), @@ -5125,8 +4888,8 @@ pub mod public_service_server { impl tonic::codegen::Service> for PublicServiceServer where T: PublicService, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -5138,7 +4901,6 @@ pub mod public_service_server { Poll::Ready(Ok(())) } fn call(&mut self, req: http::Request) -> Self::Future { - let inner = self.inner.clone(); match req.uri().path() { "/massa.api.v1.PublicService/ExecuteReadOnlyCall" => { #[allow(non_camel_case_types)] @@ -5173,7 +4935,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = ExecuteReadOnlyCallSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5219,7 +4980,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetBlocksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5266,7 +5026,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetDatastoreEntriesSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5313,7 +5072,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetEndorsementsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5365,7 +5123,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetNextBlockBestParentsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5411,7 +5168,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetOperationsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5461,7 +5217,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetScExecutionEventsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5508,7 +5263,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetSelectorDrawsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5554,7 +5308,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetStakersSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5600,7 +5353,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetStatusSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5653,7 +5405,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetTransactionsThroughputSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5699,7 +5450,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = QueryStateSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5745,7 +5495,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SearchBlocksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5792,7 +5541,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SearchEndorsementsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5839,7 +5587,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SearchOperationsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5892,7 +5639,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetOperationABICallStacksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5942,7 +5688,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetSlotABICallStacksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -5989,7 +5734,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetSlotTransfersSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6038,7 +5782,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewBlocksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6088,7 +5831,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewEndorsementsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6138,7 +5880,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewFilledBlocksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6187,7 +5928,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewOperationsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6241,7 +5981,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewSlotExecutionOutputsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6294,7 +6033,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewSlotABICallStacksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6344,7 +6082,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = NewSlotTransfersSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6393,7 +6130,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SendBlocksSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6443,7 +6179,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SendEndorsementsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6492,7 +6227,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = SendOperationsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6546,7 +6280,6 @@ pub mod public_service_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = TransactionsThroughputSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -6565,20 +6298,25 @@ pub mod public_service_server { } _ => { Box::pin(async move { - Ok( - http::Response::builder() - .status(200) - .header("grpc-status", "12") - .header("content-type", "application/grpc") - .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) }) } } } } - impl Clone for PublicServiceServer { + impl Clone for PublicServiceServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -6590,17 +6328,9 @@ pub mod public_service_server { } } } - impl Clone for _Inner { - fn clone(&self) -> Self { - Self(Arc::clone(&self.0)) - } - } - impl std::fmt::Debug for _Inner { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{:?}", self.0) - } - } - impl tonic::server::NamedService for PublicServiceServer { - const NAME: &'static str = "massa.api.v1.PublicService"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "massa.api.v1.PublicService"; + impl tonic::server::NamedService for PublicServiceServer { + const NAME: &'static str = SERVICE_NAME; } } diff --git a/src/massa.model.v1.rs b/src/massa.model.v1.rs index 84be44a..0a695c8 100644 --- a/src/massa.model.v1.rs +++ b/src/massa.model.v1.rs @@ -1,6 +1,5 @@ // This file is @generated by prost-build. /// Massa NativeAddress -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NativeAddress { /// Address category @@ -14,7 +13,6 @@ pub struct NativeAddress { pub content: ::prost::alloc::vec::Vec, } /// Addresses holds addresses -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Addresses { /// Addresses @@ -39,9 +37,9 @@ impl AddressCategory { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - AddressCategory::Unspecified => "ADDRESS_CATEGORY_UNSPECIFIED", - AddressCategory::UserAddress => "ADDRESS_CATEGORY_USER_ADDRESS", - AddressCategory::ScAddress => "ADDRESS_CATEGORY_SC_ADDRESS", + Self::Unspecified => "ADDRESS_CATEGORY_UNSPECIFIED", + Self::UserAddress => "ADDRESS_CATEGORY_USER_ADDRESS", + Self::ScAddress => "ADDRESS_CATEGORY_SC_ADDRESS", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -56,8 +54,7 @@ impl AddressCategory { } /// NativeAmount is represented as a fraction so precision can be adjusted in /// the future. value = mantissa / (10^scale) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NativeAmount { /// Mantissa #[prost(uint64, tag = "1")] @@ -67,8 +64,7 @@ pub struct NativeAmount { pub scale: u32, } /// When an address is drawn to create an endorsement it is selected for a specific index -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct IndexedSlot { /// Slot #[prost(message, optional, tag = "1")] @@ -78,8 +74,7 @@ pub struct IndexedSlot { pub index: u64, } /// A point in time where a block is expected -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Slot { /// Period #[prost(uint64, tag = "1")] @@ -89,7 +84,6 @@ pub struct Slot { pub thread: u32, } /// Slots -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Slots { /// Slots @@ -97,8 +91,7 @@ pub struct Slots { pub slots: ::prost::alloc::vec::Vec, } /// SlotRange -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SlotRange { /// Start lot (Optional) #[prost(message, optional, tag = "1")] @@ -108,7 +101,6 @@ pub struct SlotRange { pub end_slot: ::core::option::Option, } /// An endorsement, as sent in the network -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Endorsement { /// Slot in which the endorsement can be included @@ -123,7 +115,6 @@ pub struct Endorsement { pub endorsed_block: ::prost::alloc::string::String, } /// Signed endorsement -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedEndorsement { /// Endorsement @@ -146,7 +137,6 @@ pub struct SignedEndorsement { pub serialized_size: u64, } /// EndorsementIds holds endorsements ids -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EndorsementIds { /// Endorsements ids @@ -154,7 +144,6 @@ pub struct EndorsementIds { pub endorsement_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// A wrapper around an endorsement with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EndorsementWrapper { /// Whether the endorsement is still in pool @@ -172,7 +161,6 @@ pub struct EndorsementWrapper { pub endorsement: ::core::option::Option, } /// Informations about an endorsement with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EndorsementInfo { /// The endorsement id @@ -190,7 +178,6 @@ pub struct EndorsementInfo { pub is_final: bool, } /// Massa error -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Error { /// The error code @@ -201,11 +188,9 @@ pub struct Error { pub message: ::prost::alloc::string::String, } /// Empty -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Empty {} /// BytesMapFieldEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BytesMapFieldEntry { /// bytes key @@ -216,7 +201,6 @@ pub struct BytesMapFieldEntry { pub value: ::prost::alloc::vec::Vec, } /// Array of bytes wrapper -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ArrayOfBytesWrapper { /// Repeated bytes @@ -224,7 +208,6 @@ pub struct ArrayOfBytesWrapper { pub items: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// KeyPair -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct KeyPair { /// Public key @@ -253,10 +236,10 @@ impl ComparisonResult { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ComparisonResult::Unspecified => "COMPARISON_RESULT_UNSPECIFIED", - ComparisonResult::Lower => "COMPARISON_RESULT_LOWER", - ComparisonResult::Equal => "COMPARISON_RESULT_EQUAL", - ComparisonResult::Greater => "COMPARISON_RESULT_GREATER", + Self::Unspecified => "COMPARISON_RESULT_UNSPECIFIED", + Self::Lower => "COMPARISON_RESULT_LOWER", + Self::Equal => "COMPARISON_RESULT_EQUAL", + Self::Greater => "COMPARISON_RESULT_GREATER", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -271,7 +254,6 @@ impl ComparisonResult { } } /// The operation as sent in the network -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Operation { /// The fee they have decided for this operation @@ -285,7 +267,6 @@ pub struct Operation { pub op: ::core::option::Option, } /// Type specific operation content -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OperationType { #[prost(oneof = "operation_type::Type", tags = "1, 2, 3, 4, 5")] @@ -293,7 +274,6 @@ pub struct OperationType { } /// Nested message and enum types in `OperationType`. pub mod operation_type { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Type { /// Transfer coins from sender to recipient @@ -314,7 +294,6 @@ pub mod operation_type { } } /// Transfer coins from sender to recipient -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Transaction { /// Recipient address @@ -325,23 +304,20 @@ pub struct Transaction { pub amount: ::core::option::Option, } /// The sender buys `roll_count` rolls. Roll price is defined in configuration -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RollBuy { /// Roll count #[prost(uint64, tag = "1")] pub roll_count: u64, } /// The sender sells `roll_count` rolls. Roll price is defined in configuration -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RollSell { /// Roll count #[prost(uint64, tag = "1")] pub roll_count: u64, } /// Execute a smart contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecuteSc { /// Smart contract bytecode. @@ -358,7 +334,6 @@ pub struct ExecuteSc { pub datastore: ::prost::alloc::vec::Vec, } /// Calls an exported function from a stored smart contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallSc { /// Target smart contract address @@ -378,7 +353,6 @@ pub struct CallSc { pub coins: ::core::option::Option, } /// Signed operation -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedOperation { /// Operation @@ -401,7 +375,6 @@ pub struct SignedOperation { pub serialized_size: u64, } /// A wrapper around an operation with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OperationWrapper { /// The IDs of the blocks in which the operation appears @@ -415,7 +388,6 @@ pub struct OperationWrapper { pub operation: ::core::option::Option, } /// Information about an operation with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OperationInfo { /// The unique ID of the operation. @@ -429,7 +401,6 @@ pub struct OperationInfo { pub thread: u32, } /// OperationIds -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OperationIds { /// Operations ids @@ -437,7 +408,6 @@ pub struct OperationIds { pub operation_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// OpTypes -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpTypes { /// Operations types @@ -468,12 +438,12 @@ impl OpType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - OpType::Unspecified => "OP_TYPE_UNSPECIFIED", - OpType::Transaction => "OP_TYPE_TRANSACTION", - OpType::RollBuy => "OP_TYPE_ROLL_BUY", - OpType::RollSell => "OP_TYPE_ROLL_SELL", - OpType::ExecuteSc => "OP_TYPE_EXECUTE_SC", - OpType::CallSc => "OP_TYPE_CALL_SC", + Self::Unspecified => "OP_TYPE_UNSPECIFIED", + Self::Transaction => "OP_TYPE_TRANSACTION", + Self::RollBuy => "OP_TYPE_ROLL_BUY", + Self::RollSell => "OP_TYPE_ROLL_SELL", + Self::ExecuteSc => "OP_TYPE_EXECUTE_SC", + Self::CallSc => "OP_TYPE_CALL_SC", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -489,7 +459,6 @@ impl OpType { } } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Denunciation { /// BlockHeaderDenunciation or EndorsementDenunciation @@ -499,7 +468,6 @@ pub struct Denunciation { /// Nested message and enum types in `Denunciation`. pub mod denunciation { /// BlockHeaderDenunciation or EndorsementDenunciation - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Entry { /// Denunciation block header @@ -510,7 +478,6 @@ pub mod denunciation { Endorsement(super::EndorsementDenunciation), } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockHeaderDenunciation { /// Denunciation public key @@ -532,7 +499,6 @@ pub struct BlockHeaderDenunciation { #[prost(string, tag = "6")] pub signature_2: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EndorsementDenunciation { /// Denunciation public key @@ -558,8 +524,7 @@ pub struct EndorsementDenunciation { pub signature_2: ::prost::alloc::string::String, } /// Index for Denunciations in collections (e.g. like a HashMap...) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DenunciationIndex { /// DenunciationBlockHeader or DenunciationEndorsement #[prost(oneof = "denunciation_index::Entry", tags = "1, 2")] @@ -568,8 +533,7 @@ pub struct DenunciationIndex { /// Nested message and enum types in `DenunciationIndex`. pub mod denunciation_index { /// DenunciationBlockHeader or DenunciationEndorsement - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Entry { /// Denunciation block header #[prost(message, tag = "1")] @@ -580,16 +544,14 @@ pub mod denunciation_index { } } /// Variant for Block header denunciation index -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DenunciationBlockHeader { /// Denunciation slot #[prost(message, optional, tag = "1")] pub slot: ::core::option::Option, } /// Variant for Endorsement denunciation index -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DenunciationEndorsement { /// Denounciation slot #[prost(message, optional, tag = "1")] @@ -599,7 +561,6 @@ pub struct DenunciationEndorsement { pub index: u32, } /// Block -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Block { /// Signed header @@ -610,7 +571,6 @@ pub struct Block { pub operations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Filled block -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FilledBlock { /// Signed header @@ -621,7 +581,6 @@ pub struct FilledBlock { pub operations: ::prost::alloc::vec::Vec, } /// Block header -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockHeader { /// Current network version @@ -647,7 +606,6 @@ pub struct BlockHeader { pub denunciations: ::prost::alloc::vec::Vec, } /// Filled Operation Tuple -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FilledOperationEntry { /// Operation id @@ -658,7 +616,6 @@ pub struct FilledOperationEntry { pub operation: ::core::option::Option, } /// Signed block -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedBlock { /// Block @@ -681,7 +638,6 @@ pub struct SignedBlock { pub serialized_size: u64, } /// Signed block header -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedBlockHeader { /// BlockHeader @@ -704,7 +660,6 @@ pub struct SignedBlockHeader { pub serialized_size: u64, } /// A wrapper around a block with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockWrapper { /// The execution status of the block @@ -715,7 +670,6 @@ pub struct BlockWrapper { pub block: ::core::option::Option, } /// Informations about a block with its metadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockInfo { /// The unique ID of the block. @@ -726,7 +680,6 @@ pub struct BlockInfo { pub status: i32, } /// BlockIds holds block ids -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockIds { /// Block ids @@ -734,7 +687,6 @@ pub struct BlockIds { pub block_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Block parent tuple -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockParent { /// Block id @@ -766,13 +718,11 @@ impl BlockStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - BlockStatus::Unspecified => "BLOCK_STATUS_UNSPECIFIED", - BlockStatus::NonFinalBlockclique => "BLOCK_STATUS_NON_FINAL_BLOCKCLIQUE", - BlockStatus::Final => "BLOCK_STATUS_FINAL", - BlockStatus::NonFinalAlternateClique => { - "BLOCK_STATUS_NON_FINAL_ALTERNATE_CLIQUE" - } - BlockStatus::Discarded => "BLOCK_STATUS_DISCARDED", + Self::Unspecified => "BLOCK_STATUS_UNSPECIFIED", + Self::NonFinalBlockclique => "BLOCK_STATUS_NON_FINAL_BLOCKCLIQUE", + Self::Final => "BLOCK_STATUS_FINAL", + Self::NonFinalAlternateClique => "BLOCK_STATUS_NON_FINAL_ALTERNATE_CLIQUE", + Self::Discarded => "BLOCK_STATUS_DISCARDED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -790,7 +740,6 @@ impl BlockStatus { } } /// AddressKeys holds a list of addresses - keys -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressKeysEntries { /// List of address- key entries @@ -798,7 +747,6 @@ pub struct AddressKeysEntries { pub address_key_entries: ::prost::alloc::vec::Vec, } /// AddressKeyEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressKeyEntry { /// Associated address of the entry @@ -809,7 +757,6 @@ pub struct AddressKeyEntry { pub key: ::prost::alloc::vec::Vec, } /// DatastoreEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DatastoreEntry { /// final datastore entry value @@ -820,7 +767,6 @@ pub struct DatastoreEntry { pub candidate_value: ::prost::alloc::vec::Vec, } /// Slot draw -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SlotDraw { /// Slot @@ -834,7 +780,6 @@ pub struct SlotDraw { pub endorsement_draws: ::prost::alloc::vec::Vec, } /// Endorsement draw -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EndorsementDraw { /// Endorsement index @@ -845,7 +790,6 @@ pub struct EndorsementDraw { pub producer: ::prost::alloc::string::String, } /// SlotExecutionOutput -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SlotExecutionOutput { /// Status @@ -856,15 +800,13 @@ pub struct SlotExecutionOutput { pub execution_output: ::core::option::Option, } /// FinalizedExecutionOutput -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FinalizedExecutionOutput { /// Slot #[prost(message, optional, tag = "1")] pub slot: ::core::option::Option, } /// ExecutionOutput -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionOutput { /// Slot @@ -881,7 +823,6 @@ pub struct ExecutionOutput { pub state_changes: ::core::option::Option, } /// ScExecutionEvent -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScExecutionEvent { /// Sc execution context @@ -892,7 +833,6 @@ pub struct ScExecutionEvent { pub data: ::prost::alloc::vec::Vec, } /// ScExecutionEvent context -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScExecutionEventContext { /// When was it generated @@ -918,7 +858,6 @@ pub struct ScExecutionEventContext { pub status: i32, } /// ScExecutionEventsStatus -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScExecutionEventsStatus { /// Status @@ -926,7 +865,6 @@ pub struct ScExecutionEventsStatus { pub status: ::prost::alloc::vec::Vec, } /// StateChanges -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StateChanges { /// Ledger changes @@ -946,7 +884,6 @@ pub struct StateChanges { pub execution_trail_hash_change: ::core::option::Option, } /// ExecutedOpsChangeEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutedOpsChangeEntry { /// string @@ -957,8 +894,7 @@ pub struct ExecutedOpsChangeEntry { pub value: ::core::option::Option, } /// ExecutedOpsChangeValue -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExecutedOpsChangeValue { /// The status of the execution of the operation #[prost(enumeration = "OperationExecutionStatus", tag = "1")] @@ -968,7 +904,6 @@ pub struct ExecutedOpsChangeValue { pub slot: ::core::option::Option, } /// AsyncPoolChange Entry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncPoolChangeEntry { /// Async message id @@ -979,7 +914,6 @@ pub struct AsyncPoolChangeEntry { pub value: ::core::option::Option, } /// AsyncPoolChangeValue -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncPoolChangeValue { /// The type of the change @@ -992,7 +926,6 @@ pub struct AsyncPoolChangeValue { /// Nested message and enum types in `AsyncPoolChangeValue`. pub mod async_pool_change_value { /// AsyncPool message - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { /// Created ledger entry @@ -1004,7 +937,6 @@ pub mod async_pool_change_value { } } /// Asynchronous smart contract message -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncMessage { /// Slot at which the message was emitted @@ -1053,7 +985,6 @@ pub struct AsyncMessage { pub can_be_executed: bool, } /// Asynchronous smart contract message -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncMessageUpdate { /// Change the slot at which the message was emitted @@ -1102,8 +1033,7 @@ pub struct AsyncMessageUpdate { pub can_be_executed: ::core::option::Option, } /// Set or Keep Slot -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetOrKeepSlot { /// The type of the change #[prost(oneof = "set_or_keep_slot::Change", tags = "1, 2")] @@ -1112,8 +1042,7 @@ pub struct SetOrKeepSlot { /// Nested message and enum types in `SetOrKeepSlot`. pub mod set_or_keep_slot { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) #[prost(message, tag = "1")] @@ -1124,8 +1053,7 @@ pub mod set_or_keep_slot { } } /// Set or Keep Uint64 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetOrKeepUint64 { /// The type of the change #[prost(oneof = "set_or_keep_uint64::Change", tags = "1, 2")] @@ -1134,8 +1062,7 @@ pub struct SetOrKeepUint64 { /// Nested message and enum types in `SetOrKeepUint64`. pub mod set_or_keep_uint64 { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) #[prost(message, tag = "1")] @@ -1146,7 +1073,6 @@ pub mod set_or_keep_uint64 { } } /// Set or Keep String -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetOrKeepString { /// The type of the change @@ -1156,7 +1082,6 @@ pub struct SetOrKeepString { /// Nested message and enum types in `SetOrKeepString`. pub mod set_or_keep_string { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) @@ -1168,7 +1093,6 @@ pub mod set_or_keep_string { } } /// Set or Keep Bytes -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetOrKeepBytes { /// The type of the change @@ -1178,7 +1102,6 @@ pub struct SetOrKeepBytes { /// Nested message and enum types in `SetOrKeepBytes`. pub mod set_or_keep_bytes { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) @@ -1190,8 +1113,7 @@ pub mod set_or_keep_bytes { } } /// Set or Keep Bool -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetOrKeepBool { /// The type of the change #[prost(oneof = "set_or_keep_bool::Change", tags = "1, 2")] @@ -1200,8 +1122,7 @@ pub struct SetOrKeepBool { /// Nested message and enum types in `SetOrKeepBool`. pub mod set_or_keep_bool { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) #[prost(message, tag = "1")] @@ -1212,7 +1133,6 @@ pub mod set_or_keep_bool { } } /// Set or Keep AsyncMessageTrigger -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetOrKeepAsyncMessageTrigger { /// The type of the change @@ -1222,7 +1142,6 @@ pub struct SetOrKeepAsyncMessageTrigger { /// Nested message and enum types in `SetOrKeepAsyncMessageTrigger`. pub mod set_or_keep_async_message_trigger { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) @@ -1234,7 +1153,6 @@ pub mod set_or_keep_async_message_trigger { } } /// Structure defining a trigger for an asynchronous message -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AsyncMessageTrigger { /// Filter on the address @@ -1245,7 +1163,6 @@ pub struct AsyncMessageTrigger { pub datastore_key: ::core::option::Option<::prost::alloc::vec::Vec>, } /// LedgerChangeEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LedgerChangeEntry { /// Address @@ -1256,7 +1173,6 @@ pub struct LedgerChangeEntry { pub value: ::core::option::Option, } /// LedgerChangeValue -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LedgerChangeValue { /// The type of the change @@ -1269,7 +1185,6 @@ pub struct LedgerChangeValue { /// Nested message and enum types in `LedgerChangeValue`. pub mod ledger_change_value { /// LedgerEntry or LedgerEntryUpdate - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Entry { /// Created ledger entry @@ -1281,7 +1196,6 @@ pub mod ledger_change_value { } } /// An entry associated to an address in the `FinalLedger` -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LedgerEntry { /// The balance of that entry @@ -1295,7 +1209,6 @@ pub struct LedgerEntry { pub datastore: ::prost::alloc::vec::Vec, } /// Represents an update to one or more fields of a `LedgerEntry` -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LedgerEntryUpdate { /// Change the balance @@ -1309,8 +1222,7 @@ pub struct LedgerEntryUpdate { pub datastore: ::prost::alloc::vec::Vec, } /// Set or Keep Balance -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetOrKeepBalance { /// The type of the change #[prost(oneof = "set_or_keep_balance::Change", tags = "1, 2")] @@ -1319,8 +1231,7 @@ pub struct SetOrKeepBalance { /// Nested message and enum types in `SetOrKeepBalance`. pub mod set_or_keep_balance { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Change { /// The value of that entry (Optional) #[prost(message, tag = "1")] @@ -1331,7 +1242,6 @@ pub mod set_or_keep_balance { } } /// Set or Delete DatastoreEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetOrDeleteDatastoreEntry { /// The type of the change @@ -1341,7 +1251,6 @@ pub struct SetOrDeleteDatastoreEntry { /// Nested message and enum types in `SetOrDeleteDatastoreEntry`. pub mod set_or_delete_datastore_entry { /// The type of the change - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Change { /// Executable bytecode (Optional) @@ -1353,7 +1262,6 @@ pub mod set_or_delete_datastore_entry { } } /// Read-only execution call -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ReadOnlyExecutionCall { /// Maximum gas to spend in the execution. @@ -1375,7 +1283,6 @@ pub struct ReadOnlyExecutionCall { /// Nested message and enum types in `ReadOnlyExecutionCall`. pub mod read_only_execution_call { /// Target of the call - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Target { /// Byte code @@ -1387,7 +1294,6 @@ pub mod read_only_execution_call { } } /// / Execute a bytecode -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BytecodeExecution { /// Byte code @@ -1398,7 +1304,6 @@ pub struct BytecodeExecution { pub operation_datastore: ::prost::alloc::vec::Vec, } /// Execute a function call -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FunctionCall { /// Target address @@ -1415,7 +1320,6 @@ pub struct FunctionCall { pub coins: ::core::option::Option, } /// Structure describing the output of a read only execution -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ReadOnlyExecutionOutput { /// Output of a single execution @@ -1433,7 +1337,6 @@ pub struct ReadOnlyExecutionOutput { /// a new `ExecutionStackElement` is pushed at the top of the execution stack /// to represent the local execution context of the called function, /// instead of the caller's which should lie just below in the stack. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionStackElement { /// Called address @@ -1477,12 +1380,10 @@ impl ScExecutionEventStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ScExecutionEventStatus::Unspecified => { - "SC_EXECUTION_EVENT_STATUS_UNSPECIFIED" - } - ScExecutionEventStatus::Final => "SC_EXECUTION_EVENT_STATUS_FINAL", - ScExecutionEventStatus::ReadOnly => "SC_EXECUTION_EVENT_STATUS_READ_ONLY", - ScExecutionEventStatus::Candidate => "SC_EXECUTION_EVENT_STATUS_CANDIDATE", + Self::Unspecified => "SC_EXECUTION_EVENT_STATUS_UNSPECIFIED", + Self::Final => "SC_EXECUTION_EVENT_STATUS_FINAL", + Self::ReadOnly => "SC_EXECUTION_EVENT_STATUS_READ_ONLY", + Self::Candidate => "SC_EXECUTION_EVENT_STATUS_CANDIDATE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1516,10 +1417,10 @@ impl ExecutionOutputStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ExecutionOutputStatus::Unspecified => "EXECUTION_OUTPUT_STATUS_UNSPECIFIED", - ExecutionOutputStatus::Candidate => "EXECUTION_OUTPUT_STATUS_CANDIDATE", - ExecutionOutputStatus::Final => "EXECUTION_OUTPUT_STATUS_FINAL", - ExecutionOutputStatus::Unknown => "EXECUTION_OUTPUT_STATUS_UNKNOWN", + Self::Unspecified => "EXECUTION_OUTPUT_STATUS_UNSPECIFIED", + Self::Candidate => "EXECUTION_OUTPUT_STATUS_CANDIDATE", + Self::Final => "EXECUTION_OUTPUT_STATUS_FINAL", + Self::Unknown => "EXECUTION_OUTPUT_STATUS_UNKNOWN", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1551,11 +1452,9 @@ impl OperationExecutionStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - OperationExecutionStatus::Unspecified => { - "OPERATION_EXECUTION_STATUS_UNSPECIFIED" - } - OperationExecutionStatus::Success => "OPERATION_EXECUTION_STATUS_SUCCESS", - OperationExecutionStatus::Failed => "OPERATION_EXECUTION_STATUS_FAILED", + Self::Unspecified => "OPERATION_EXECUTION_STATUS_UNSPECIFIED", + Self::Success => "OPERATION_EXECUTION_STATUS_SUCCESS", + Self::Failed => "OPERATION_EXECUTION_STATUS_FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1588,10 +1487,10 @@ impl AsyncPoolChangeType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - AsyncPoolChangeType::Unspecified => "ASYNC_POOL_CHANGE_TYPE_UNSPECIFIED", - AsyncPoolChangeType::Set => "ASYNC_POOL_CHANGE_TYPE_SET", - AsyncPoolChangeType::Update => "ASYNC_POOL_CHANGE_TYPE_UPDATE", - AsyncPoolChangeType::Delete => "ASYNC_POOL_CHANGE_TYPE_DELETE", + Self::Unspecified => "ASYNC_POOL_CHANGE_TYPE_UNSPECIFIED", + Self::Set => "ASYNC_POOL_CHANGE_TYPE_SET", + Self::Update => "ASYNC_POOL_CHANGE_TYPE_UPDATE", + Self::Delete => "ASYNC_POOL_CHANGE_TYPE_DELETE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1625,10 +1524,10 @@ impl LedgerChangeType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - LedgerChangeType::Unspecified => "LEDGER_CHANGE_TYPE_UNSPECIFIED", - LedgerChangeType::Set => "LEDGER_CHANGE_TYPE_SET", - LedgerChangeType::Update => "LEDGER_CHANGE_TYPE_UPDATE", - LedgerChangeType::Delete => "LEDGER_CHANGE_TYPE_DELETE", + Self::Unspecified => "LEDGER_CHANGE_TYPE_UNSPECIFIED", + Self::Set => "LEDGER_CHANGE_TYPE_SET", + Self::Update => "LEDGER_CHANGE_TYPE_UPDATE", + Self::Delete => "LEDGER_CHANGE_TYPE_DELETE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1643,16 +1542,14 @@ impl LedgerChangeType { } } /// NativeTime represents a native duration or unix timestamp -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NativeTime { /// Milliseconds #[prost(uint64, tag = "1")] pub milliseconds: u64, } /// Consensus statistics -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ConsensusStats { /// Start of the time span for stats #[prost(message, optional, tag = "1")] @@ -1671,8 +1568,7 @@ pub struct ConsensusStats { pub clique_count: u64, } /// Pool statistics -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PoolStats { /// Endorsements #[prost(uint64, tag = "1")] @@ -1682,8 +1578,7 @@ pub struct PoolStats { pub operations_count: u64, } /// Network statistics -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NetworkStats { /// In connections count #[prost(uint64, tag = "1")] @@ -1702,8 +1597,7 @@ pub struct NetworkStats { pub active_node_count: u64, } /// Execution statistics -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExecutionStats { /// Time window start #[prost(message, optional, tag = "1")] @@ -1719,7 +1613,6 @@ pub struct ExecutionStats { pub final_executed_operations_count: u64, } /// Node status -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NodeStatus { /// Our node id @@ -1775,7 +1668,6 @@ pub struct NodeStatus { pub chain_id: u64, } /// Connected node -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectedNode { /// Node id @@ -1789,8 +1681,7 @@ pub struct ConnectedNode { pub connection_type: i32, } /// Compact configuration -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CompactConfig { /// Time in milliseconds when the blockclique started. #[prost(message, optional, tag = "1")] @@ -1824,7 +1715,6 @@ pub struct CompactConfig { pub max_block_size: u32, } /// Public status -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PublicStatus { /// Our node id @@ -1882,9 +1772,9 @@ impl ConnectionType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ConnectionType::Unspecified => "CONNECTION_TYPE_UNSPECIFIED", - ConnectionType::Incoming => "CONNECTION_TYPE_INCOMING", - ConnectionType::Outgoing => "CONNECTION_TYPE_OUTGOING", + Self::Unspecified => "CONNECTION_TYPE_UNSPECIFIED", + Self::Incoming => "CONNECTION_TYPE_INCOMING", + Self::Outgoing => "CONNECTION_TYPE_OUTGOING", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1898,7 +1788,6 @@ impl ConnectionType { } } /// StakerEntry -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StakerEntry { /// Address @@ -1909,7 +1798,6 @@ pub struct StakerEntry { pub rolls: u64, } /// Entry for GetMipStatusResponse -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MipStatusEntry { /// Mip info @@ -1920,7 +1808,6 @@ pub struct MipStatusEntry { pub state_id: i32, } /// MIP info (name & versions & time range for a MIP) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MipInfo { /// MIP name or descriptive name @@ -1943,8 +1830,7 @@ pub struct MipInfo { pub components: ::prost::alloc::vec::Vec, } /// MipComponentEntry -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MipComponentEntry { /// Kind #[prost(enumeration = "MipComponent", tag = "1")] @@ -1979,13 +1865,13 @@ impl ComponentStateId { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ComponentStateId::Unspecified => "COMPONENT_STATE_ID_UNSPECIFIED", - ComponentStateId::Error => "COMPONENT_STATE_ID_ERROR", - ComponentStateId::Defined => "COMPONENT_STATE_ID_DEFINED", - ComponentStateId::Started => "COMPONENT_STATE_ID_STARTED", - ComponentStateId::Lockedin => "COMPONENT_STATE_ID_LOCKEDIN", - ComponentStateId::Active => "COMPONENT_STATE_ID_ACTIVE", - ComponentStateId::Failed => "COMPONENT_STATE_ID_FAILED", + Self::Unspecified => "COMPONENT_STATE_ID_UNSPECIFIED", + Self::Error => "COMPONENT_STATE_ID_ERROR", + Self::Defined => "COMPONENT_STATE_ID_DEFINED", + Self::Started => "COMPONENT_STATE_ID_STARTED", + Self::Lockedin => "COMPONENT_STATE_ID_LOCKEDIN", + Self::Active => "COMPONENT_STATE_ID_ACTIVE", + Self::Failed => "COMPONENT_STATE_ID_FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2020,9 +1906,9 @@ impl MipComponent { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - MipComponent::Unspecified => "MIP_COMPONENT_UNSPECIFIED", - MipComponent::Address => "MIP_COMPONENT_ADDRESS", - MipComponent::Keypair => "MIP_COMPONENT_KEYPAIR", + Self::Unspecified => "MIP_COMPONENT_UNSPECIFIED", + Self::Address => "MIP_COMPONENT_ADDRESS", + Self::Keypair => "MIP_COMPONENT_KEYPAIR", } } /// Creates an enum from field names used in the ProtoBuf definition.