Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Nov 30, 2024
1 parent b3575f8 commit 82e4e64
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 30 deletions.
27 changes: 4 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
alloy = { version = "0.1.1", default-features = false, features = [
alloy = { version = "0.7.0", default-features = false, features = [
"sol-types",
] }
tendermint = { version = "0.35.0", default-features = false }
Expand Down
5 changes: 2 additions & 3 deletions script/bin/costs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ async fn get_receipts_for_chain(
.map(|chunk_start| {
let chunk_end = (chunk_start + ALCHEMY_CHUNK_SIZE - 1).min(end_block.1);
let provider = provider.clone();
let to_addr = to_addr;

async move {
let filter = Filter::new()
Expand Down Expand Up @@ -237,7 +236,7 @@ where

match block_timestamp.cmp(&target_timestamp) {
Ordering::Equal => {
return Ok((block.header().hash().into(), block.header().number()));
return Ok((block.header().hash(), block.header().number()));
}
Ordering::Less => low = mid + 1,
Ordering::Greater => high = mid - 1,
Expand All @@ -251,5 +250,5 @@ where
let Some(block) = block else {
return Err(anyhow::anyhow!("No block found"));
};
Ok((block.header().hash().into(), block.header().number()))
Ok((block.header().hash(), block.header().number()))
}
10 changes: 8 additions & 2 deletions script/bin/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use alloy::{
network::{Ethereum, EthereumWallet},
primitives::{Address, B256},
providers::{
fillers::{ChainIdFiller, FillProvider, GasFiller, JoinFill, NonceFiller, WalletFiller},
fillers::{
BlobGasFiller, ChainIdFiller, FillProvider, GasFiller, JoinFill, NonceFiller,
WalletFiller,
},
Identity, Provider, ProviderBuilder, RootProvider,
},
signers::local::PrivateKeySigner,
Expand All @@ -28,7 +31,10 @@ const ELF: &[u8] = include_bytes!("../../elf/blobstream-elf");
/// ProviderBuilder. Recommended method for passing around a ProviderBuilder.
type EthereumFillProvider = FillProvider<
JoinFill<
JoinFill<JoinFill<JoinFill<Identity, GasFiller>, NonceFiller>, ChainIdFiller>,
JoinFill<
Identity,
JoinFill<GasFiller, JoinFill<BlobGasFiller, JoinFill<NonceFiller, ChainIdFiller>>>,
>,
WalletFiller<EthereumWallet>,
>,
RootProvider<Http<Client>>,
Expand Down
2 changes: 1 addition & 1 deletion script/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use serde_json::json;

/// Get the gas limit associated with the chain id. Note: These values have been found through
/// trial and error and can be configured.
pub fn get_gas_limit(chain_id: u64) -> u128 {
pub fn get_gas_limit(chain_id: u64) -> u64 {
if chain_id == 42161 || chain_id == 421614 {
25_000_000
} else {
Expand Down

0 comments on commit 82e4e64

Please sign in to comment.