-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move string declarations to variables
- Loading branch information
1 parent
be29262
commit 33d0043
Showing
3 changed files
with
54 additions
and
29 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
crates/dojo/bindgen/src/plugins/typescript/generator/constants.rs
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,16 @@ | ||
pub const CAIRO_FELT252: &str = "felt252"; | ||
pub const CAIRO_CONTRACT_ADDRESS: &str = "ContractAddress"; | ||
pub const CAIRO_BYTE_ARRAY: &str = "ByteArray"; | ||
pub const CAIRO_U8: &str = "u8"; | ||
pub const CAIRO_U16: &str = "u16"; | ||
pub const CAIRO_U32: &str = "u32"; | ||
pub const CAIRO_U64: &str = "u64"; | ||
pub const CAIRO_U128: &str = "u128"; | ||
pub const CAIRO_U256: &str = "u256"; | ||
pub const CAIRO_U256_STRUCT: &str = "U256"; | ||
pub const CAIRO_I128: &str = "i128"; | ||
pub const CAIRO_BOOL: &str = "bool"; | ||
|
||
pub const JS_BOOLEAN: &str = "boolean"; | ||
pub const JS_STRING: &str = "string"; | ||
pub const JS_BIGNUMBERISH: &str = "BigNumberish"; |
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