-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move blockifier from workspace to maintain two versions
- Loading branch information
Showing
8 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
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
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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#[cfg(test)] | ||
pub mod test_constants { | ||
use starknet::core::types::FieldElement; | ||
use starknet_api::{ | ||
block::{BlockNumber, BlockTimestamp}, | ||
core::{ClassHash, CompiledClassHash, ContractAddress, PatriciaKey}, | ||
hash::StarkFelt, | ||
}; | ||
|
||
lazy_static::lazy_static! { | ||
pub static ref SENDER_ADDRESS: FieldElement = FieldElement::from(2u8); | ||
pub static ref SEQUENCER_ADDRESS: ContractAddress = ContractAddress(TryInto::<PatriciaKey>::try_into(StarkFelt::from(1234u16)).unwrap()); | ||
pub static ref FEE_TOKEN_ADDRESS: ContractAddress = ContractAddress(TryInto::<PatriciaKey>::try_into(StarkFelt::from(12345u16)).unwrap()); | ||
|
||
pub static ref ONE_FELT: StarkFelt = StarkFelt::from(1u8); | ||
pub static ref TWO_FELT: StarkFelt = StarkFelt::from(2u8); | ||
pub static ref ONE_PATRICIA: PatriciaKey = TryInto::<PatriciaKey>::try_into(*ONE_FELT).unwrap(); | ||
pub static ref TWO_PATRICIA: PatriciaKey = TryInto::<PatriciaKey>::try_into(*TWO_FELT).unwrap(); | ||
pub static ref ONE_HASH: ClassHash = ClassHash(*ONE_FELT); | ||
pub static ref TWO_HASH: ClassHash = ClassHash(*TWO_FELT); | ||
pub static ref ONE_COMPILED_HASH: CompiledClassHash = CompiledClassHash(*ONE_FELT); | ||
pub static ref ONE_BLOCK_NUMBER: BlockNumber = BlockNumber(1); | ||
pub static ref ONE_BLOCK_TIMESTAMP: BlockTimestamp = BlockTimestamp(1); | ||
pub static ref TEST_ADDRESS: ContractAddress = ContractAddress(*ONE_PATRICIA); | ||
pub static ref TEST_ACCOUNT: ContractAddress = ContractAddress(*TWO_PATRICIA); | ||
} | ||
} |
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,3 +1,3 @@ | ||
pub mod config; | ||
pub mod constants; | ||
pub mod sequencer; | ||
pub mod state; |
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