Skip to content

Commit

Permalink
add Copy to pb
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Oct 29, 2024
1 parent b260bfb commit 2a052a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>", "Yaro <[email protected]>"]
Expand Down
11 changes: 6 additions & 5 deletions core/src/pb/sf.cosmos.type.v2.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down Expand Up @@ -100,7 +101,7 @@ pub struct Header {
pub proposer_address: ::prost::alloc::vec::Vec<u8>,
}
#[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,
Expand Down Expand Up @@ -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
Expand All @@ -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.
///
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2a052a1

Please sign in to comment.