Questions tagged [types]
The types tag has no usage guidance.
5
questions
0
votes
0
answers
8
views
Parsing Values from type Contract w s Text()
I have the following datum type.
data FundCreationDatum = FundCreationDatum
{ vFundOwner :: PaymentPubKeyHash,
vPrizeAmount :: Integer,
vProjectLabel :: [BuiltinByteString],
...
0
votes
2
answers
29
views
Type PaymentPubKeyHash not found
I have the following datum type
data ProjectSubmitDatum = ProjectSubmitDatum
{ vProjectOwner :: PaymentPubKeyHash,
vProjectRegistrationFee :: Integer,
vProjectCategory :: BuiltinByteString,
...
0
votes
0
answers
7
views
How can I issue an operational certificate using cardano-serialization-lib?
Cardano Serialization Lib has this class:
export class OperationalCert {
free(): void;
/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;
/**
* @param {Uint8Array} bytes
* @returns {...
0
votes
0
answers
15
views
Parsing Values in a Nested Datum Type
I am filtering through transactions like this.Datum is represented as d in the below function.
utxos <- Map.filter (isSuitable (cpFund cp)) <$> utxosAt scrAddress
isSuitable :: Integer -> ...
0
votes
0
answers
15
views
Applying filter function on a datum with two different data types
I am filtering through transactions like this.
utxos <- Map.filter (isSuitable (cpFund cp)) <$> utxosAt scrAddress
isSuitable :: Integer -> ChainIndexTxOut -> Bool
isSuitable fundRound ...