-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
CDDL featureFeature that is required for proper parsing of CDDL filesFeature that is required for proper parsing of CDDL files
Description
The CDDL specification mentions bigint in the following section
biguint = #6.2(bstr)
bignint = #6.3(bstr)
bigint = biguint / bignint
integer = int / bigint
unsigned = uint / biguint
However, 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 use cddl-codegen to generate code for their dApp (ex: projected NFT dApp) needs to tackle this
In my opinion, we have two options:
- Mention somewhere in the docs that if you need
bigintand is for Cardano to just import relevant CML crate and use BigInt from it - Add
bigintas 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
Metadata
Metadata
Assignees
Labels
CDDL featureFeature that is required for proper parsing of CDDL filesFeature that is required for proper parsing of CDDL files