-
Notifications
You must be signed in to change notification settings - Fork 16
Support bigint #220
Copy link
Copy link
Open
Labels
CDDL featureFeature that is required for proper parsing of CDDL filesFeature that is required for proper parsing of CDDL files
Description
Activity
Metadata
Metadata
Assignees
Labels
CDDL featureFeature that is required for proper parsing of CDDL filesFeature that is required for proper parsing of CDDL files
The CDDL specification mentions
bigintin the following sectionHowever, historically we don't support any kind of bigint and instead just use
big_int = _CDDL_CODEGEN_EXTERN_TYPE_This isn't great because every Plutus datum needs
bigint, so anybody that wants to usecddl-codegento generate code for their dApp (ex: projected NFT dApp) needs to tackle thisIn my opinion, we have two options:
bigintand is for Cardano to just import relevant CML crate and use BigInt from itbigintas part of the static types shipped in cddl-codegen. This means code duplication if you're using multiple cddl-codegen generated libraries, but this is the same as having duplicate definitions ofDeserializeErrorwhich we already do