-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add i128 + use BigNumberish type (#2705)
* feat: add i128 + use BigNumberish type * fix: move string declarations to variables
- Loading branch information
1 parent
f6f0ffd
commit f44886d
Showing
4 changed files
with
67 additions
and
34 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
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