Skip to content

Commit a633ae2

Browse files
build(deps): bump substreams from 0.5.20 to 0.6.0 (#5683)
* build(deps): bump substreams from 0.5.20 to 0.6.0 Bumps [substreams](https://github.com/streamingfast/substreams-rs) from 0.5.20 to 0.6.0. - [Release notes](https://github.com/streamingfast/substreams-rs/releases) - [Changelog](https://github.com/streamingfast/substreams-rs/blob/develop/CHANGELOG.md) - [Commits](streamingfast/substreams-rs@v0.5.20...v0.6.0) --- updated-dependencies: - dependency-name: substreams dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * update tonic and prost --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Filipe Azevedo <[email protected]>
1 parent 91168d6 commit a633ae2

File tree

23 files changed

+821
-2011
lines changed

23 files changed

+821
-2011
lines changed

Cargo.lock

+369-314
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+10-7
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ license = "MIT OR Apache-2.0"
4141
[workspace.dependencies]
4242
anyhow = "1.0"
4343
async-graphql = { version = "7.0.15", features = ["chrono", "uuid"] }
44-
async-graphql-axum = "7.0.11"
45-
axum = "0.7.5"
46-
bs58 = "0.5.1"
44+
async-graphql-axum = "7.0.15"
45+
axum = "0.8.1"
4746
chrono = "0.4.38"
47+
bs58 = "0.5.1"
4848
clap = { version = "4.5.4", features = ["derive", "env"] }
4949
derivative = "2.2.0"
5050
diesel = { version = "2.2.4", features = [
@@ -68,8 +68,8 @@ graphman = { path = "./core/graphman" }
6868
graphman-store = { path = "./core/graphman_store" }
6969
itertools = "0.13.0"
7070
lazy_static = "1.5.0"
71-
prost = "0.12.6"
72-
prost-types = "0.12.6"
71+
prost = "0.13"
72+
prost-types = "0.13"
7373
regex = "1.5.4"
7474
reqwest = "0.12.5"
7575
serde = { version = "1.0.126", features = ["rc"] }
@@ -87,11 +87,14 @@ syn = { version = "2.0.87", features = ["full"] }
8787
test-store = { path = "./store/test-store" }
8888
thiserror = "1.0.25"
8989
tokio = { version = "1.38.0", features = ["full"] }
90-
tonic = { version = "0.11.0", features = ["tls-roots", "gzip"] }
91-
tonic-build = { version = "0.11.0", features = ["prost"] }
90+
tonic = { version = "0.12.3", features = ["tls-roots", "gzip"] }
91+
tonic-build = { version = "0.12.3", features = ["prost"] }
9292
tower-http = { version = "0.5.2", features = ["cors"] }
9393
wasmparser = "0.118.1"
9494
wasmtime = "15.0.1"
95+
substreams = "=0.6.0"
96+
substreams-entity-change = "2"
97+
substreams-near-core = "=0.10.2"
9598

9699
# Incremental compilation on Rust 1.58 causes an ICE on build. As soon as graph node builds again, these can be removed.
97100
[profile.test]

chain/arweave/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ fn main() {
22
println!("cargo:rerun-if-changed=proto");
33
tonic_build::configure()
44
.out_dir("src/protobuf")
5-
.compile(&["proto/arweave.proto"], &["proto"])
5+
.compile_protos(&["proto/arweave.proto"], &["proto"])
66
.expect("Failed to compile Firehose Arweave proto(s)");
77
}

chain/arweave/src/protobuf/sf.arweave.r#type.v1.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// This file is @generated by prost-build.
2-
#[allow(clippy::derive_partial_eq_without_eq)]
32
#[derive(Clone, PartialEq, ::prost::Message)]
43
pub struct BigInt {
54
#[prost(bytes = "vec", tag = "1")]
65
pub bytes: ::prost::alloc::vec::Vec<u8>,
76
}
8-
#[allow(clippy::derive_partial_eq_without_eq)]
97
#[derive(Clone, PartialEq, ::prost::Message)]
108
pub struct Block {
119
/// Firehose block version (unrelated to Arweave block version)
@@ -75,7 +73,6 @@ pub struct Block {
7573
pub poa: ::core::option::Option<ProofOfAccess>,
7674
}
7775
/// A succinct proof of access to a recall byte found in a TX
78-
#[allow(clippy::derive_partial_eq_without_eq)]
7976
#[derive(Clone, PartialEq, ::prost::Message)]
8077
pub struct ProofOfAccess {
8178
/// The recall byte option chosen; global offset of index byte
@@ -94,7 +91,6 @@ pub struct ProofOfAccess {
9491
#[prost(bytes = "vec", tag = "4")]
9592
pub chunk: ::prost::alloc::vec::Vec<u8>,
9693
}
97-
#[allow(clippy::derive_partial_eq_without_eq)]
9894
#[derive(Clone, PartialEq, ::prost::Message)]
9995
pub struct Transaction {
10096
/// 1 or 2 for v1 or v2 transactions. More allowable in the future
@@ -137,7 +133,6 @@ pub struct Transaction {
137133
#[prost(message, optional, tag = "12")]
138134
pub reward: ::core::option::Option<BigInt>,
139135
}
140-
#[allow(clippy::derive_partial_eq_without_eq)]
141136
#[derive(Clone, PartialEq, ::prost::Message)]
142137
pub struct Tag {
143138
#[prost(bytes = "vec", tag = "1")]

chain/ethereum/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ fn main() {
33

44
tonic_build::configure()
55
.out_dir("src/protobuf")
6-
.compile(&["proto/ethereum.proto"], &["proto"])
6+
.compile_protos(&["proto/ethereum.proto"], &["proto"])
77
.expect("Failed to compile Firehose Ethereum proto(s)");
88
}

chain/ethereum/src/protobuf/sf.ethereum.r#type.v2.rs

+51-71
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This file is @generated by prost-build.
2-
#[allow(clippy::derive_partial_eq_without_eq)]
32
#[derive(Clone, PartialEq, ::prost::Message)]
43
pub struct Block {
54
#[prost(int32, tag = "1")]
@@ -32,7 +31,6 @@ pub struct Block {
3231
///
3332
/// WARN: this is a client-side optimization pattern and should be moved in the
3433
/// consuming code.
35-
#[allow(clippy::derive_partial_eq_without_eq)]
3634
#[derive(Clone, PartialEq, ::prost::Message)]
3735
pub struct HeaderOnlyBlock {
3836
#[prost(message, optional, tag = "5")]
@@ -41,7 +39,6 @@ pub struct HeaderOnlyBlock {
4139
/// BlockWithRefs is a lightweight block, with traces and transactions
4240
/// purged from the `block` within, and only. It is used in transports
4341
/// to pass block data around.
44-
#[allow(clippy::derive_partial_eq_without_eq)]
4542
#[derive(Clone, PartialEq, ::prost::Message)]
4643
pub struct BlockWithRefs {
4744
#[prost(string, tag = "1")]
@@ -53,27 +50,23 @@ pub struct BlockWithRefs {
5350
#[prost(bool, tag = "4")]
5451
pub irreversible: bool,
5552
}
56-
#[allow(clippy::derive_partial_eq_without_eq)]
5753
#[derive(Clone, PartialEq, ::prost::Message)]
5854
pub struct TransactionRefs {
5955
#[prost(bytes = "vec", repeated, tag = "1")]
6056
pub hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
6157
}
62-
#[allow(clippy::derive_partial_eq_without_eq)]
6358
#[derive(Clone, PartialEq, ::prost::Message)]
6459
pub struct UnclesHeaders {
6560
#[prost(message, repeated, tag = "1")]
6661
pub uncles: ::prost::alloc::vec::Vec<BlockHeader>,
6762
}
68-
#[allow(clippy::derive_partial_eq_without_eq)]
6963
#[derive(Clone, PartialEq, ::prost::Message)]
7064
pub struct BlockRef {
7165
#[prost(bytes = "vec", tag = "1")]
7266
pub hash: ::prost::alloc::vec::Vec<u8>,
7367
#[prost(uint64, tag = "2")]
7468
pub number: u64,
7569
}
76-
#[allow(clippy::derive_partial_eq_without_eq)]
7770
#[derive(Clone, PartialEq, ::prost::Message)]
7871
pub struct BlockHeader {
7972
#[prost(bytes = "vec", tag = "1")]
@@ -163,13 +156,11 @@ pub struct BlockHeader {
163156
#[prost(message, optional, tag = "18")]
164157
pub base_fee_per_gas: ::core::option::Option<BigInt>,
165158
}
166-
#[allow(clippy::derive_partial_eq_without_eq)]
167159
#[derive(Clone, PartialEq, ::prost::Message)]
168160
pub struct BigInt {
169161
#[prost(bytes = "vec", tag = "1")]
170162
pub bytes: ::prost::alloc::vec::Vec<u8>,
171163
}
172-
#[allow(clippy::derive_partial_eq_without_eq)]
173164
#[derive(Clone, PartialEq, ::prost::Message)]
174165
pub struct TransactionTrace {
175166
/// consensus
@@ -290,9 +281,9 @@ pub mod transaction_trace {
290281
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
291282
pub fn as_str_name(&self) -> &'static str {
292283
match self {
293-
Type::TrxTypeLegacy => "TRX_TYPE_LEGACY",
294-
Type::TrxTypeAccessList => "TRX_TYPE_ACCESS_LIST",
295-
Type::TrxTypeDynamicFee => "TRX_TYPE_DYNAMIC_FEE",
284+
Self::TrxTypeLegacy => "TRX_TYPE_LEGACY",
285+
Self::TrxTypeAccessList => "TRX_TYPE_ACCESS_LIST",
286+
Self::TrxTypeDynamicFee => "TRX_TYPE_DYNAMIC_FEE",
296287
}
297288
}
298289
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -308,7 +299,6 @@ pub mod transaction_trace {
308299
}
309300
/// AccessTuple represents a list of storage keys for a given contract's address and is used
310301
/// for AccessList construction.
311-
#[allow(clippy::derive_partial_eq_without_eq)]
312302
#[derive(Clone, PartialEq, ::prost::Message)]
313303
pub struct AccessTuple {
314304
#[prost(bytes = "vec", tag = "1")]
@@ -317,15 +307,13 @@ pub struct AccessTuple {
317307
pub storage_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
318308
}
319309
/// TransactionTraceWithBlockRef
320-
#[allow(clippy::derive_partial_eq_without_eq)]
321310
#[derive(Clone, PartialEq, ::prost::Message)]
322311
pub struct TransactionTraceWithBlockRef {
323312
#[prost(message, optional, tag = "1")]
324313
pub trace: ::core::option::Option<TransactionTrace>,
325314
#[prost(message, optional, tag = "2")]
326315
pub block_ref: ::core::option::Option<BlockRef>,
327316
}
328-
#[allow(clippy::derive_partial_eq_without_eq)]
329317
#[derive(Clone, PartialEq, ::prost::Message)]
330318
pub struct TransactionReceipt {
331319
/// State root is an intermediate state_root hash, computed in-between transactions to make
@@ -350,7 +338,6 @@ pub struct TransactionReceipt {
350338
#[prost(message, repeated, tag = "4")]
351339
pub logs: ::prost::alloc::vec::Vec<Log>,
352340
}
353-
#[allow(clippy::derive_partial_eq_without_eq)]
354341
#[derive(Clone, PartialEq, ::prost::Message)]
355342
pub struct Log {
356343
#[prost(bytes = "vec", tag = "1")]
@@ -384,7 +371,6 @@ pub struct Log {
384371
#[prost(uint64, tag = "7")]
385372
pub ordinal: u64,
386373
}
387-
#[allow(clippy::derive_partial_eq_without_eq)]
388374
#[derive(Clone, PartialEq, ::prost::Message)]
389375
pub struct Call {
390376
#[prost(uint32, tag = "1")]
@@ -477,7 +463,6 @@ pub struct Call {
477463
#[prost(message, repeated, tag = "33")]
478464
pub account_creations: ::prost::alloc::vec::Vec<AccountCreation>,
479465
}
480-
#[allow(clippy::derive_partial_eq_without_eq)]
481466
#[derive(Clone, PartialEq, ::prost::Message)]
482467
pub struct StorageChange {
483468
#[prost(bytes = "vec", tag = "1")]
@@ -491,7 +476,6 @@ pub struct StorageChange {
491476
#[prost(uint64, tag = "5")]
492477
pub ordinal: u64,
493478
}
494-
#[allow(clippy::derive_partial_eq_without_eq)]
495479
#[derive(Clone, PartialEq, ::prost::Message)]
496480
pub struct BalanceChange {
497481
#[prost(bytes = "vec", tag = "1")]
@@ -550,22 +534,22 @@ pub mod balance_change {
550534
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
551535
pub fn as_str_name(&self) -> &'static str {
552536
match self {
553-
Reason::Unknown => "REASON_UNKNOWN",
554-
Reason::RewardMineUncle => "REASON_REWARD_MINE_UNCLE",
555-
Reason::RewardMineBlock => "REASON_REWARD_MINE_BLOCK",
556-
Reason::DaoRefundContract => "REASON_DAO_REFUND_CONTRACT",
557-
Reason::DaoAdjustBalance => "REASON_DAO_ADJUST_BALANCE",
558-
Reason::Transfer => "REASON_TRANSFER",
559-
Reason::GenesisBalance => "REASON_GENESIS_BALANCE",
560-
Reason::GasBuy => "REASON_GAS_BUY",
561-
Reason::RewardTransactionFee => "REASON_REWARD_TRANSACTION_FEE",
562-
Reason::RewardFeeReset => "REASON_REWARD_FEE_RESET",
563-
Reason::GasRefund => "REASON_GAS_REFUND",
564-
Reason::TouchAccount => "REASON_TOUCH_ACCOUNT",
565-
Reason::SuicideRefund => "REASON_SUICIDE_REFUND",
566-
Reason::SuicideWithdraw => "REASON_SUICIDE_WITHDRAW",
567-
Reason::CallBalanceOverride => "REASON_CALL_BALANCE_OVERRIDE",
568-
Reason::Burn => "REASON_BURN",
537+
Self::Unknown => "REASON_UNKNOWN",
538+
Self::RewardMineUncle => "REASON_REWARD_MINE_UNCLE",
539+
Self::RewardMineBlock => "REASON_REWARD_MINE_BLOCK",
540+
Self::DaoRefundContract => "REASON_DAO_REFUND_CONTRACT",
541+
Self::DaoAdjustBalance => "REASON_DAO_ADJUST_BALANCE",
542+
Self::Transfer => "REASON_TRANSFER",
543+
Self::GenesisBalance => "REASON_GENESIS_BALANCE",
544+
Self::GasBuy => "REASON_GAS_BUY",
545+
Self::RewardTransactionFee => "REASON_REWARD_TRANSACTION_FEE",
546+
Self::RewardFeeReset => "REASON_REWARD_FEE_RESET",
547+
Self::GasRefund => "REASON_GAS_REFUND",
548+
Self::TouchAccount => "REASON_TOUCH_ACCOUNT",
549+
Self::SuicideRefund => "REASON_SUICIDE_REFUND",
550+
Self::SuicideWithdraw => "REASON_SUICIDE_WITHDRAW",
551+
Self::CallBalanceOverride => "REASON_CALL_BALANCE_OVERRIDE",
552+
Self::Burn => "REASON_BURN",
569553
}
570554
}
571555
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -592,7 +576,6 @@ pub mod balance_change {
592576
}
593577
}
594578
}
595-
#[allow(clippy::derive_partial_eq_without_eq)]
596579
#[derive(Clone, PartialEq, ::prost::Message)]
597580
pub struct NonceChange {
598581
#[prost(bytes = "vec", tag = "1")]
@@ -604,15 +587,13 @@ pub struct NonceChange {
604587
#[prost(uint64, tag = "4")]
605588
pub ordinal: u64,
606589
}
607-
#[allow(clippy::derive_partial_eq_without_eq)]
608590
#[derive(Clone, PartialEq, ::prost::Message)]
609591
pub struct AccountCreation {
610592
#[prost(bytes = "vec", tag = "1")]
611593
pub account: ::prost::alloc::vec::Vec<u8>,
612594
#[prost(uint64, tag = "2")]
613595
pub ordinal: u64,
614596
}
615-
#[allow(clippy::derive_partial_eq_without_eq)]
616597
#[derive(Clone, PartialEq, ::prost::Message)]
617598
pub struct CodeChange {
618599
#[prost(bytes = "vec", tag = "1")]
@@ -634,8 +615,7 @@ pub struct CodeChange {
634615
///
635616
/// Hence, we only index some of them, those that are costly like all the calls
636617
/// one, log events, return data, etc.
637-
#[allow(clippy::derive_partial_eq_without_eq)]
638-
#[derive(Clone, PartialEq, ::prost::Message)]
618+
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
639619
pub struct GasChange {
640620
#[prost(uint64, tag = "1")]
641621
pub old_value: u64,
@@ -696,27 +676,27 @@ pub mod gas_change {
696676
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
697677
pub fn as_str_name(&self) -> &'static str {
698678
match self {
699-
Reason::Unknown => "REASON_UNKNOWN",
700-
Reason::Call => "REASON_CALL",
701-
Reason::CallCode => "REASON_CALL_CODE",
702-
Reason::CallDataCopy => "REASON_CALL_DATA_COPY",
703-
Reason::CodeCopy => "REASON_CODE_COPY",
704-
Reason::CodeStorage => "REASON_CODE_STORAGE",
705-
Reason::ContractCreation => "REASON_CONTRACT_CREATION",
706-
Reason::ContractCreation2 => "REASON_CONTRACT_CREATION2",
707-
Reason::DelegateCall => "REASON_DELEGATE_CALL",
708-
Reason::EventLog => "REASON_EVENT_LOG",
709-
Reason::ExtCodeCopy => "REASON_EXT_CODE_COPY",
710-
Reason::FailedExecution => "REASON_FAILED_EXECUTION",
711-
Reason::IntrinsicGas => "REASON_INTRINSIC_GAS",
712-
Reason::PrecompiledContract => "REASON_PRECOMPILED_CONTRACT",
713-
Reason::RefundAfterExecution => "REASON_REFUND_AFTER_EXECUTION",
714-
Reason::Return => "REASON_RETURN",
715-
Reason::ReturnDataCopy => "REASON_RETURN_DATA_COPY",
716-
Reason::Revert => "REASON_REVERT",
717-
Reason::SelfDestruct => "REASON_SELF_DESTRUCT",
718-
Reason::StaticCall => "REASON_STATIC_CALL",
719-
Reason::StateColdAccess => "REASON_STATE_COLD_ACCESS",
679+
Self::Unknown => "REASON_UNKNOWN",
680+
Self::Call => "REASON_CALL",
681+
Self::CallCode => "REASON_CALL_CODE",
682+
Self::CallDataCopy => "REASON_CALL_DATA_COPY",
683+
Self::CodeCopy => "REASON_CODE_COPY",
684+
Self::CodeStorage => "REASON_CODE_STORAGE",
685+
Self::ContractCreation => "REASON_CONTRACT_CREATION",
686+
Self::ContractCreation2 => "REASON_CONTRACT_CREATION2",
687+
Self::DelegateCall => "REASON_DELEGATE_CALL",
688+
Self::EventLog => "REASON_EVENT_LOG",
689+
Self::ExtCodeCopy => "REASON_EXT_CODE_COPY",
690+
Self::FailedExecution => "REASON_FAILED_EXECUTION",
691+
Self::IntrinsicGas => "REASON_INTRINSIC_GAS",
692+
Self::PrecompiledContract => "REASON_PRECOMPILED_CONTRACT",
693+
Self::RefundAfterExecution => "REASON_REFUND_AFTER_EXECUTION",
694+
Self::Return => "REASON_RETURN",
695+
Self::ReturnDataCopy => "REASON_RETURN_DATA_COPY",
696+
Self::Revert => "REASON_REVERT",
697+
Self::SelfDestruct => "REASON_SELF_DESTRUCT",
698+
Self::StaticCall => "REASON_STATIC_CALL",
699+
Self::StateColdAccess => "REASON_STATE_COLD_ACCESS",
720700
}
721701
}
722702
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -763,10 +743,10 @@ impl TransactionTraceStatus {
763743
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
764744
pub fn as_str_name(&self) -> &'static str {
765745
match self {
766-
TransactionTraceStatus::Unknown => "UNKNOWN",
767-
TransactionTraceStatus::Succeeded => "SUCCEEDED",
768-
TransactionTraceStatus::Failed => "FAILED",
769-
TransactionTraceStatus::Reverted => "REVERTED",
746+
Self::Unknown => "UNKNOWN",
747+
Self::Succeeded => "SUCCEEDED",
748+
Self::Failed => "FAILED",
749+
Self::Reverted => "REVERTED",
770750
}
771751
}
772752
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -799,12 +779,12 @@ impl CallType {
799779
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
800780
pub fn as_str_name(&self) -> &'static str {
801781
match self {
802-
CallType::Unspecified => "UNSPECIFIED",
803-
CallType::Call => "CALL",
804-
CallType::Callcode => "CALLCODE",
805-
CallType::Delegate => "DELEGATE",
806-
CallType::Static => "STATIC",
807-
CallType::Create => "CREATE",
782+
Self::Unspecified => "UNSPECIFIED",
783+
Self::Call => "CALL",
784+
Self::Callcode => "CALLCODE",
785+
Self::Delegate => "DELEGATE",
786+
Self::Static => "STATIC",
787+
Self::Create => "CREATE",
808788
}
809789
}
810790
/// Creates an enum from field names used in the ProtoBuf definition.

chain/near/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fn main() {
33
tonic_build::configure()
44
.out_dir("src/protobuf")
55
.extern_path(".sf.near.codec.v1", "crate::codec::pbcodec")
6-
.compile(
6+
.compile_protos(
77
&["proto/near.proto", "proto/substreams-triggers.proto"],
88
&["proto"],
99
)

chain/near/src/protobuf/receipts.v1.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This file is @generated by prost-build.
2-
#[allow(clippy::derive_partial_eq_without_eq)]
32
#[derive(Clone, PartialEq, ::prost::Message)]
43
pub struct BlockAndReceipts {
54
#[prost(message, optional, tag = "1")]

0 commit comments

Comments
 (0)