-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "✨ OsInput Missing Fields (#10)"
This reverts commit b4948de.
- Loading branch information
Showing
23 changed files
with
82 additions
and
818 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[toolchain] | ||
channel = "nightly-2023-08-02" | ||
channel = "nightly-2023-08-03" | ||
components = ["rustfmt", "clippy"] | ||
profile = "minimal" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
use std::collections::HashMap; | ||
|
||
use cairo_felt::Felt252; | ||
use serde::{Deserialize, Serialize}; | ||
use starknet::core::types::FieldElement; | ||
|
||
use crate::{ | ||
business_logic::transaction::types::InternalTransaction, | ||
fact_state::contract_state::ContractState, | ||
storage::{starknet::CommitmentInfo, Storage}, | ||
utils::{definitions::general_config::StarknetGeneralConfig, hasher::HasherT}, | ||
}; | ||
use crate::storage::starknet::CommitmentInfo; | ||
|
||
// TODO: Add missing fields | ||
#[derive(Serialize, Deserialize)] | ||
struct StarknetOsInput<S: Storage, H: HasherT> { | ||
contract_state_commitment_info: CommitmentInfo<S, H>, | ||
contract_class_commitment_info: CommitmentInfo<S, H>, | ||
deprecated_compiled_classes: HashMap<Felt252, Felt252>, // TODO: Add contract_class module | ||
compiled_classes: HashMap<Felt252, Felt252>, // TODO: Add contract_class module | ||
contracts: HashMap<Felt252, ContractState>, | ||
class_hash_to_compiled_class_hash: HashMap<Felt252, Felt252>, | ||
general_config: StarknetGeneralConfig, | ||
transactions: Vec<InternalTransaction>, | ||
block_hash: Felt252, | ||
struct StarknetOsInput { | ||
contract_state_commitment_info: CommitmentInfo, | ||
contract_class_commitment_info: CommitmentInfo, | ||
class_hash_to_compiled_class_hash: HashMap<FieldElement, FieldElement>, | ||
block_hash: FieldElement, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.