Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This will increment the flashblock number before the start of every flashblock a
To run op-rbuilder with flashtestations:

```bash
cargo run -p op-rbuilder --bin op-rbuilder --features=flashtestations -- node \
cargo run -p op-rbuilder --bin op-rbuilder -- node \
--chain /path/to/chain-config.json \
--http \
--authrpc.port 9551 \
Expand All @@ -73,7 +73,7 @@ cargo run -p op-rbuilder --bin op-rbuilder --features=flashtestations -- node \
--flashtestations.funding-amount 0.01 \ # amount in ETH to fund the TEE generated key
--flashtestations.funding-key secret-key \ # funding key for the TEE key
--flashtestations.registry-address 0xFlashtestationsRegistryAddress \
flashtestations.builder-policy-address 0xBuilderPolicyAddress
--flashtestations.builder-policy-address 0xBuilderPolicyAddress
```

Note that `--rollup.builder-secret-key` must be set and funded in order for the flashtestations key to be funded and submit the attestation on-chain.
Expand Down
3 changes: 3 additions & 0 deletions crates/op-rbuilder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ testing = [
"ctor",
"macros",
"rlimit",
"hyper",
"hyper-util",
"http-body-util",
]

interop = []
Expand Down
2 changes: 1 addition & 1 deletion crates/op-rbuilder/src/flashtestations/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl RemoteAttestationProvider {
let report_data_hex = hex::encode(report_data);
let url = format!("{}/{}", self.service_url, report_data_hex);

info!(target: "flashtestations", url = url, "fetching quote in debug mode");
info!(target: "flashtestations", url = url, "fetching quote from remote attestation provider");

let response = self
.client
Expand Down
12 changes: 3 additions & 9 deletions crates/op-rbuilder/src/tests/flashblocks.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
use alloy_consensus::Transaction;
use alloy_eips::Decodable2718;
use alloy_primitives::{Address, TxHash, U256, address, b128, b256};
use alloy_primitives::{Address, TxHash, U256};
use alloy_provider::Provider;
use alloy_sol_types::SolCall;
use macros::rb_test;
use op_alloy_consensus::OpTxEnvelope;
use std::time::Duration;

use crate::{
args::{FlashblocksArgs, OpRbuilderArgs},
tests::{
BUILDER_PRIVATE_KEY, BlockTransactionsExt, BundleOpts, ChainDriver, ChainDriverExt,
FUNDED_PRIVATE_KEY, LocalInstance, ONE_ETH, TransactionBuilderExt,
flashblocks_number_contract::FlashblocksNumber,
BlockTransactionsExt, BundleOpts, ChainDriver, FLASHBLOCKS_NUMBER_ADDRESS, LocalInstance,
TransactionBuilderExt, flashblocks_number_contract::FlashblocksNumber,
},
tx_signer::Signer,
};

// If the order of deployment from the signer changes the address will change
const FLASHBLOCKS_NUMBER_ADDRESS: Address = address!("5fbdb2315678afecb367f032d93f642f64180aa3");

#[rb_test(flashblocks, args = OpRbuilderArgs {
chain_block_time: 2000,
flashblocks: FlashblocksArgs {
Expand Down
Loading
Loading