cocktail/vodka_redeemers
Functions
redeemer_from(
redeemers: Pairs<ScriptPurpose, Redeemer>,
inputs: List<Input>,
output_reference: OutputReference,
input_address: Address,
) -> Option<Data>
Obtain the redeemer for a given output reference and address
expect Some(redeemer) = redeemer_from(redeemers, inputs, output_reference, input_address);
withdrawal_redeemer(
redeemers: Pairs<ScriptPurpose, Redeemer>,
withdrawal_script_hash: ByteArray,
) -> Option<Data>
Obtain the first redeemer for a given withdrawal script hash
expect Some(raw_redeemer) = withdrawal_redeemer(redeemers, withdrawal_script_hash);
expect my_redeemer: MyRedeemerType = raw_redeemer;