Skip to content

Commit

Permalink
Remove dead old fixtures generating code, remove 'new' infix from new…
Browse files Browse the repository at this point in the history
… fixtures (#318)

This is a PR on top of #317
  • Loading branch information
Pasifaee authored May 29, 2024
2 parents 5f65dac + 6179a75 commit 1581137
Show file tree
Hide file tree
Showing 60 changed files with 145 additions and 266 deletions.
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/account_int_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use crate::fixtures::mainnet::{
paris::{
usdc_circle::{
header::{number, state_root, block_header_partial, block_header_rlp}, account::{account, address},
state_proof_new::proof_input_serialized as state_proof_input_serialized
state_proof::proof_input_serialized as state_proof_input_serialized
}
},
london::vitalik_balance::{
account::{account as account_from_different_header, address as address_from_different_header},
header::state_root as state_root_from_different_header,
state_proof_new::proof_input_serialized as state_proof_input_from_different_header_serialized
state_proof::proof_input_serialized as state_proof_input_from_different_header_serialized
}
};
use dep::std::test::OracleMock;
Expand Down
6 changes: 3 additions & 3 deletions ethereum/circuits/lib/src/account_with_storage_int_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::fixtures::mainnet::{
paris::{
usdc_circle::{
header::{number, block_header_partial, block_header_rlp}, account::{account, address},
state_proof_new::proof_input_serialized as state_proof_input_serialized,
storage_proof_new::proofs_serialized, storage::{values, keys as storage_keys}
state_proof::proof_input_serialized as state_proof_input_serialized,
storage_proof::proofs_serialized, storage::{values, keys as storage_keys}
},
usdc_uniswap::{storage::keys as usdc_uniswap_storage_keys}
},
Expand All @@ -17,7 +17,7 @@ use crate::fixtures::mainnet::{
block_header_rlp as crypto_punks_block_header_rlp, number as crypto_punks_number
},
account::{address as crypto_punks_address, account as crypto_punks_account},
state_proof_new::proof_input_serialized as crypto_punks_state_proof_input_serialized
state_proof::proof_input_serialized as crypto_punks_state_proof_input_serialized
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/fixtures/mainnet/cancun/approve.nr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod header;
mod receipt_proof_new;
mod receipt_proof;
mod receipt;
mod transaction;
mod transaction_proof_new;
mod transaction_proof;
mod log;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod header;
mod receipt_proof_new;
mod receipt_proof;
mod receipt;
mod transaction;
mod transaction_proof_new;
mod transaction_proof;
mod log;
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/fixtures/mainnet/cancun/transfer.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod receipt_proof_new;
mod receipt_proof;
mod receipt;
mod transaction;
mod transaction_proof_new;
mod transaction_proof;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/fixtures/mainnet/homestead/fork.nr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod header;
mod receipt_proof_new;
mod receipt_proof;
mod receipt;
mod transaction;
mod transaction_proof_new;
mod transaction_proof;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
mod storage;
mod storage_proof_new;
mod storage_proof;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
mod storage;
mod storage_proof_new;
mod storage_proof;
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/fixtures/mainnet/paris/nouns.nr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
mod storage;
mod storage_proof_new;
mod storage_proof;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod header;
mod account;
mod state_proof_new;
mod state_proof;
mod storage;
mod storage_proof_new;
mod storage_proof;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod account;
mod state_proof_new;
mod state_proof;
mod storage;
mod storage_proof_new;
mod storage_proof;
2 changes: 1 addition & 1 deletion ethereum/circuits/lib/src/log_int_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
small_block::{
header::{number, block_header_partial, block_header_rlp, hash},
receipt::{tx_type, foreign_call_receipt}, transaction::tx_idx,
receipt_proof_new::proof_input_serialized, log::{log_idx, log}
receipt_proof::proof_input_serialized, log::{log_idx, log}
},
approve::header::{block_header_partial as another_block_header_partial, block_header_rlp as another_block_header_rlp}
}
Expand Down
16 changes: 8 additions & 8 deletions ethereum/circuits/lib/src/merkle_patricia_proofs/proof_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -355,24 +355,24 @@ mod verify_merkle_proof {
use crate::fixtures::mainnet::{
homestead::fork::{
header::receipts_root as homestead_receipts_root,
receipt_proof_new::proof_input as homestead_receipt_proof_input,
receipt_proof::proof_input as homestead_receipt_proof_input,
header::transactions_root as homestead_transactions_root,
transaction_proof_new::proof_input as homestead_transaction_proof_input
transaction_proof::proof_input as homestead_transaction_proof_input
},
cancun::small_block::{
header::receipts_root as cancun_receipts_root,
receipt_proof_new::proof_input as cancun_receipt_proof_input,
receipt_proof::proof_input as cancun_receipt_proof_input,
header::transactions_root as cancun_transactions_root,
transaction_proof_new::proof_input as cancun_transaction_proof_input
transaction_proof::proof_input as cancun_transaction_proof_input
},
london::crypto_punks::{state_proof_new::proof_input as london_state_proof_input, header::state_root as london_state_root},
paris::bored_ape_yacht_club::{state_proof_new::proof_input as paris_state_proof_input, header::state_root as paris_state_root},
london::crypto_punks::{state_proof::proof_input as london_state_proof_input, header::state_root as london_state_root},
paris::bored_ape_yacht_club::{state_proof::proof_input as paris_state_proof_input, header::state_root as paris_state_root},
paris::usdc_circle::{
storage_proof_new::proofs as paris_circle_storage_proof_inputs,
storage_proof::proofs as paris_circle_storage_proof_inputs,
account::storage_root as paris_circle_storage_root
},
paris::usdc_uniswap::{
storage_proof_new::proofs as paris_uniswap_storage_proof_inputs,
storage_proof::proofs as paris_uniswap_storage_proof_inputs,
account::storage_root as paris_uniswap_storage_root
}
};
Expand Down
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/receipt_int_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::fixtures::mainnet::{
cancun::small_block::{
header::{number, block_header_partial, block_header_rlp},
receipt::{tx_type, receipt, foreign_call_receipt}, transaction::tx_idx,
receipt_proof_new::proof_input_serialized
receipt_proof::proof_input_serialized
},
cancun::approve::{
header::{
Expand All @@ -15,7 +15,7 @@ use crate::fixtures::mainnet::{
foreign_call_receipt as another_foreign_call_receipt
},
transaction::tx_idx as another_tx_idx,
receipt_proof_new::proof_input_serialized as another_proof_input_serialized
receipt_proof::proof_input_serialized as another_proof_input_serialized
}
};
use dep::std::test::OracleMock;
Expand Down
8 changes: 4 additions & 4 deletions ethereum/circuits/lib/src/serde_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mod account_within_block {
mod storage_within_block {
use crate::serde::{STORAGE_BLOCK_LEN, ACCOUNT_LEN};
use crate::account_with_storage::StorageWithinBlock;
use crate::fixtures::mainnet::paris::usdc_circle::{account::account, header::hash, storage_proof_new::proofs, storage::values};
use crate::fixtures::mainnet::paris::usdc_circle::{account::account, header::hash, storage_proof::proofs, storage::values};
use crate::misc::{types::BYTES32_LENGTH, arrays::sub_array_equals};

#[test]
Expand Down Expand Up @@ -130,7 +130,7 @@ mod storage_within_block {
}

mod nodes {
use crate::fixtures::mainnet::cancun::small_block::receipt_proof_new::proof_input;
use crate::fixtures::mainnet::cancun::small_block::receipt_proof::proof_input;
use crate::merkle_patricia_proofs::proof::MAX_NODE_LEN;
use crate::misc::arrays::sub_array_equals;
use crate::serde::{deserialize_receipt_nodes, serialize_receipt_nodes};
Expand All @@ -153,7 +153,7 @@ mod nodes {
}

mod proof {
use crate::fixtures::mainnet::cancun::small_block::receipt_proof_new::proof_input;
use crate::fixtures::mainnet::cancun::small_block::receipt_proof::proof_input;
use crate::receipt::MAX_DEPTH_NO_LEAF as RECEIPT_MAX_DEPTH_NO_LEAF;
use crate::serde::{Serde, serialize_receipt_nodes, RECEIPT_MAX_LEAF_LEN_M, RECEIPT_NODES_LEN};
use crate::merkle_patricia_proofs::proof::Proof;
Expand All @@ -174,7 +174,7 @@ mod proof {
}

mod proof_input {
use crate::fixtures::mainnet::cancun::small_block::receipt_proof_new::proof_input;
use crate::fixtures::mainnet::cancun::small_block::receipt_proof::proof_input;
use crate::receipt::{MAX_DEPTH_NO_LEAF as RECEIPT_MAX_DEPTH_NO_LEAF, MAX_LEAF_LEN_M as RECEIPT_MAX_LEAF_LEN_M};
use crate::serde::{Serde, RECEIPT_MAX_PREFIXED_KEY_NIBBLE_LEN, RECEIPT_MAX_VALUE_LEN_M};
use crate::misc::arrays::sub_array_equals;
Expand Down
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/transaction_int_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::fixtures::mainnet::{
cancun::small_block::{
header::{number, block_header_partial, block_header_rlp},
transaction::{tx_idx, tx_type, transaction, foreign_call_transaction},
transaction_proof_new::proof_input_serialized
transaction_proof::proof_input_serialized
},
homestead::fork::{
header::{
Expand All @@ -14,7 +14,7 @@ use crate::fixtures::mainnet::{
tx_idx as another_tx_idx, tx_type as another_tx_type,
foreign_call_transaction as another_foreign_call_transaction
},
transaction_proof_new::proof_input_serialized as another_proof_input_serialized
transaction_proof::proof_input_serialized as another_proof_input_serialized
}
};
use dep::std::test::OracleMock;
Expand Down
2 changes: 1 addition & 1 deletion ethereum/circuits/lib/src/verifiers/account_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::fixtures::{
mainnet::london::{
crypto_punks::{
account::{rlp_encoded_left_padded_account, account, address, balance, storage_root, code_hash, nonce},
header::state_root, state_proof_new::proof_input as state_proof_input
header::state_root, state_proof::proof_input as state_proof_input
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/verifiers/receipt_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::fixtures::mainnet::{
cancun::{
small_block::{
receipt::{encoded_receipt, receipt, tx_type}, header::{number as block_number, receipts_root},
receipt_proof_new::proof_input, transaction::tx_idx
receipt_proof::proof_input, transaction::tx_idx
},
access_list::header::receipts_root as access_list_receipts_root
},
Expand All @@ -12,7 +12,7 @@ use crate::fixtures::mainnet::{
receipt as pre_byzantium_receipt
},
header::{number as pre_byzantium_block_number, receipts_root as pre_byzantium_receipt_root},
receipt_proof_new::proof_input as pre_byzantium_receipt_proof_input
receipt_proof::proof_input as pre_byzantium_receipt_proof_input
}
};
use crate::verifiers::receipt::{BYZANTIUM_BLOCK_NUM, assert_receipt_equals, assert_receipt_rlp_equals, verify_receipt};
Expand Down
2 changes: 1 addition & 1 deletion ethereum/circuits/lib/src/verifiers/storage_test.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::fixtures::mainnet::paris::usdc_circle::{storage_proof_new::proofs, account::storage_root};
use crate::fixtures::mainnet::paris::usdc_circle::{storage_proof::proofs, account::storage_root};
use crate::verifiers::storage::verify_storage_values;

#[test]
Expand Down
4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/verifiers/transaction_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ mod verify_tx {
use crate::misc::arrays::alter_array;
use crate::fixtures::mainnet::{
cancun::small_block::{
transaction::{transaction, encoded_tx, tx_type, tx_idx}, transaction_proof_new::proof_input,
transaction::{transaction, encoded_tx, tx_type, tx_idx}, transaction_proof::proof_input,
header::transactions_root
},
homestead::fork::{
transaction::{
transaction as legacy_transaction, encoded_tx as legacy_encoded_tx, tx_type as legacy_tx_type,
tx_idx as legacy_tx_idx
},
transaction_proof_new::proof_input as legacy_proof_input,
transaction_proof::proof_input as legacy_proof_input,
header::transactions_root as legacy_transactions_root
}
};
Expand Down
52 changes: 0 additions & 52 deletions ethereum/oracles/src/script/noir_fixtures/new_proof.ts

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions ethereum/oracles/src/script/noir_fixtures/new_state_proof.ts

This file was deleted.

29 changes: 0 additions & 29 deletions ethereum/oracles/src/script/noir_fixtures/new_storage_proof.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1581137

Please sign in to comment.