From 2a052a1b11d6f72615ddd92bbd7b2c765ff77d6b Mon Sep 17 00:00:00 2001 From: Denis Carriere Date: Tue, 29 Oct 2024 21:47:16 +0100 Subject: [PATCH] add Copy to pb --- Cargo.toml | 2 +- core/src/pb/sf.cosmos.type.v2.rs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 809d5b7..944e6c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ opt-level = 's' strip = "debuginfo" [workspace.package] -version = "0.2.0" +version = "0.2.1" edition = "2021" description = "Substreams development kit for Cosmos chains, contains Firehose Block model and helpers." authors = ["Denis ", "Yaro "] diff --git a/core/src/pb/sf.cosmos.type.v2.rs b/core/src/pb/sf.cosmos.type.v2.rs index 00a8b74..def5380 100644 --- a/core/src/pb/sf.cosmos.type.v2.rs +++ b/core/src/pb/sf.cosmos.type.v2.rs @@ -1,4 +1,5 @@ // @generated +// This file is @generated by prost-build. /// Repeated messages #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -100,7 +101,7 @@ pub struct Header { pub proposer_address: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Consensus { #[prost(uint64, tag="1")] pub block: u64, @@ -248,7 +249,7 @@ pub struct ConsensusParams { } /// BlockParams contains limits on the block size. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BlockParams { /// Max block size, in bytes. /// Note: must be greater than 0 @@ -261,7 +262,7 @@ pub struct BlockParams { } /// EvidenceParams determine how we handle evidence of malfeasance. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EvidenceParams { /// Max age of evidence, in blocks. /// @@ -292,7 +293,7 @@ pub struct ValidatorParams { } /// VersionParams contains the ABCI application version. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VersionParams { #[prost(uint64, tag="1")] pub app: u64, @@ -301,7 +302,7 @@ pub struct VersionParams { /// /// It is hashed into the Header.ConsensusHash. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HashedParams { #[prost(int64, tag="1")] pub block_max_bytes: i64,