@harmoniclabs/plu-ts-offchain
Advanced tools
Changelog
v0.1.9
getFromDataForType
returns punMapData
for list( pair( any, any ) )
termsdynPair
type (interchangeable to pair
type for what matters about typings)Changelog
v0.1.5
pdynPair
for dynamic Term<PPair<...>>
creation, to overcome the lack of a mkPair
builtin;
pfstPair
and psndPair
accordinglygetFromDataForType
macro and getFromDataTermForType
accordinglypapp
(previously using b
instead of _b
)Changelog
v0.1.4
papp
(and $
method) accepts ts values and converts it automatically when possible
example: if
Term<PInt>
is expected it should be possible to pass1
without having to dopInt(1)
int
, bs
, bool
, etc... )lam
, fn
)list
, pair
)TermPair
pPair
for constants pairsChangelog
v0.1.3
evalScript
optimizations
CEKHeap
to store CEKValues
in no particular orderCEKEnv
to point at values in the CEKHeap
rather than having a local copy (and copying them when cloning too)Data
classes are now cloning the fields in the constructor and the fields getters now will return freezed object (Data
is meant to be immutable anyway)Changelog
v0.1.2
pand
and por
take a delayed( bool )
as second argument (before was just strict bool
)
strictAnd
and strictOr
versionspfoldr
and pfoldl
(reduce
method of js arrays) for TermList
pfoldr
and pfoldl
pfilter
,pmap
, etc...) in terms of pfold[rl]
(should result in smaller scripts if used multiple times)UtilityTermOf<PLam<...>>
returns TermFn<...>
UtilityTermOf<PAlias<SomePType>>
returns Term<PAlias<...>> & UtilityTermOf<SomePType>
ToPType<AliasTermType<...>>
now returns PAlias<...>
TermList
typescript typesChangelog
v0.1.1
<method name>Term
property