You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started to play around w/ the Blueprint annotation and I'm gonna use this ticket to triage ideas/issues
Just noticed that int is used for Aiken's Int type which from the docs is Aiken's only number type is an arbitrary sized integer. This means there is no underflow or overflow.. I think this should be at least a long or better a BigInteger. EDIT, this break in fact POSIXTime => https://preprod.cexplorer.io/datum/db864f402bd7aadf9919522cfb201fbc4f164bcdf705e998253d42db9e8a3211 there's a negative number that should be the time
Let me run a quick test with your plutus.json, and I will update you here.
I agree that:
int should be converted to BigInteger
snake_case should be converted to camelCase
For debugging, you can find the annotation processor implementation inside the annotation-processor module. There are many test plutus.json files. you can copy your plutus.json to the test or it package and try it.
While BigInteger will be the default option, we can later plan to enhance the @Blueprint annotation with additional metadata to select the appropriate Java integer type (BigInteger, Integer, int) based on the application's requirements.
Thanks for all the fixes, enhancing @Blueprint makes sense, but imho is low prio. Offchain code is cheap.
WRT to Option and Tuple
Option: After talking w/ ktorz he mentioned that Option is a sum-type of object, technically we could forget w/ have native Option in java, and just do the same we do w/ any other sum-type(s)
Tuple, blueprint is a list of lists, I think as an immediate solution this could be okay. Alternatively just implement two pojos (which CCL already have) of Tuple and Triple, nothing more coz at that point a proper container object would be recommended.
Hey,
I've started to play around w/ the Blueprint annotation and I'm gonna use this ticket to triage ideas/issues
int
is used for Aiken'sInt
type which from the docs isAiken's only number type is an arbitrary sized integer. This means there is no underflow or overflow.
. I think this should be at least along
or better aBigInteger
. EDIT, this break in factPOSIXTime
=> https://preprod.cexplorer.io/datum/db864f402bd7aadf9919522cfb201fbc4f164bcdf705e998253d42db9e8a3211 there's a negative number that should be the timeNote on issue (3)
It looks like the following container classes are not supported:
Once I remove all the references, the blueprint compiles no problem
The text was updated successfully, but these errors were encountered: