-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bebd2d
commit b75027f
Showing
7 changed files
with
527 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pub const TAB: &str = " "; | ||
|
||
pub const CONTRACT_ATTRIBUTE: &str = "starknet::contract"; | ||
pub const CONSTRUCTOR_ATTRIBUTE: &str = "constructor"; | ||
pub const STORAGE_STRUCT_NAME: &str = "Storage"; | ||
pub const EVENT_ENUM_NAME: &str = "Event"; | ||
pub const SUBSTORAGE_ATTRIBUTE: &str = "substorage(v0)"; | ||
pub const FLAT_ATTRIBUTE: &str = "flat"; |
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 +1,3 @@ | ||
mod oz_component; | ||
mod constants; | ||
mod utils; | ||
mod with_components; |
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,7 @@ | ||
use crate::constants::TAB; | ||
use std::iter::repeat; | ||
|
||
/// Generates a string with `n` tabs. | ||
pub fn tabs(n: usize) -> String { | ||
repeat(TAB).take(n).collect() | ||
} |
Oops, something went wrong.