Skip to content
Merged
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
5 changes: 1 addition & 4 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[files]
extend-exclude = [
"node/src/l1/abi/*.json",
"node/src/l2/abi/*.json"
]
extend-exclude = ["**/*.json"]
2 changes: 1 addition & 1 deletion e2e_tests/taiko_inbox.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from web3 import Web3
import json

with open("../whitelist/src/l1/abi/ITaikoInbox.json") as f:
with open("../whitelist/src/l1/pacaya/abi/ITaikoInbox.json") as f:
abi = json.load(f)

def get_last_batch_id(l1_client, taiko_inbox_address):
Expand Down
8 changes: 4 additions & 4 deletions e2e_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def send_n_txs_without_waiting(eth_client, private_key, n):
send_transaction(nonce+i, account, '0.00009', eth_client, private_key)

def wait_for_batch_proposed_event(eth_client, taiko_inbox_address, from_block):
with open("../whitelist/src/l1/abi/ITaikoInbox.json") as f:
with open("../whitelist/src/l1/pacaya/abi/ITaikoInbox.json") as f:
abi = json.load(f)

contract = eth_client.eth.contract(address=taiko_inbox_address, abi=abi)
Expand Down Expand Up @@ -159,15 +159,15 @@ def print_batch_info(event):
print("---")

def get_current_operator(eth_client, l1_contract_address):
with open("../whitelist/src/l1/abi/PreconfWhitelist.json") as f:
with open("../whitelist/src/l1/pacaya/abi/PreconfWhitelist.json") as f:
abi = json.load(f)

contract = eth_client.eth.contract(address=l1_contract_address, abi=abi)
return contract.functions.getOperatorForCurrentEpoch().call()

def get_next_operator(eth_client, l1_contract_address):
import json
with open("../whitelist/src/l1/abi/PreconfWhitelist.json") as f:
with open("../whitelist/src/l1/pacaya/abi/PreconfWhitelist.json") as f:
abi = json.load(f)

contract = eth_client.eth.contract(address=l1_contract_address, abi=abi)
Expand All @@ -193,7 +193,7 @@ def wait_till_next_l1_slot(beacon_client):
time.sleep(l1_slot_duration - current_time)

def get_last_batch_proposed_event(eth_client, taiko_inbox_address, from_block):
with open("../whitelist/src/l1/abi/ITaikoInbox.json") as f:
with open("../whitelist/src/l1/pacaya/abi/ITaikoInbox.json") as f:
abi = json.load(f)

contract = eth_client.eth.contract(address=taiko_inbox_address, abi=abi)
Expand Down
2 changes: 1 addition & 1 deletion whitelist/src/chain_monitor/batch_proposed_receiver.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::l1::bindings::taiko_inbox::ITaikoInbox;
use crate::l1::pacaya::bindings::taiko_inbox::ITaikoInbox;
use alloy::primitives::Address;
use alloy::sol_types::SolEvent;
use anyhow::Error;
Expand Down
2 changes: 1 addition & 1 deletion whitelist/src/chain_monitor/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::l1::bindings::taiko_inbox::ITaikoInbox;
use crate::l1::pacaya::bindings::taiko_inbox::ITaikoInbox;
use alloy::primitives::{Address, B256};
use anyhow::{Error, anyhow};
use batch_proposed_receiver::BatchProposedEventReceiver;
Expand Down
2 changes: 1 addition & 1 deletion whitelist/src/forced_inclusion/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::l1::execution_layer::ExecutionLayer;
use crate::l1::pacaya::execution_layer::ExecutionLayer;
use alloy::rpc::types::Transaction;
use anyhow::Error;
use common::{blob::blob_parser::extract_transactions_from_blob, l1::ethereum_l1::EthereumL1};
Expand Down
6 changes: 2 additions & 4 deletions whitelist/src/l1/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
pub mod bindings;
pub mod config;
pub mod execution_layer;
mod propose_batch_builder;
pub mod pacaya;
pub mod shasta;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sol!(
#[allow(missing_docs)]
#[sol(rpc)]
PreconfWhitelist,
"src/l1/abi/PreconfWhitelist.json"
"src/l1/pacaya/abi/PreconfWhitelist.json"
);

sol! {
Expand Down Expand Up @@ -79,15 +79,15 @@ pub mod taiko_inbox {
#[allow(missing_docs)]
#[sol(rpc)]
ITaikoInbox,
"src/l1/abi/ITaikoInbox.json"
"src/l1/pacaya/abi/ITaikoInbox.json"
);
}

sol!(
#[allow(missing_docs)]
#[sol(rpc)]
PreconfRouter,
"src/l1/abi/PreconfRouter.json"
"src/l1/pacaya/abi/PreconfRouter.json"
);

pub mod preconf_router {
Expand Down Expand Up @@ -117,7 +117,7 @@ pub mod taiko_wrapper {
#[allow(missing_docs)]
#[sol(rpc)]
TaikoWrapper,
"src/l1/abi/TaikoWrapper.json"
"src/l1/pacaya/abi/TaikoWrapper.json"
);
}

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions whitelist/src/l1/pacaya/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub mod bindings;
pub mod config;
pub mod execution_layer;
mod propose_batch_builder;
Loading