cocktail/vodka_inputs
Functions
Extracts the inline datum from an input.
expect inline_datum: MyDatumType = input_inline_datum(input);
Extract the inline datum by locating the first input in a list of inputs by Address and PolicyId.
expect inline_datum: MyDatumType = only_input_datum_with(inputs, policy, name);
Filters inputs by Address.
let filtered_inputs = inputs_at(inputs, address);
Filters inputs by PolicyId and AssetName.
let filtered_inputs = inputs_with(inputs, policy, name);
Filters inputs by token policy.
let filtered_inputs = inputs_with_policy(inputs, policy);
inputs_at_with(
inputs: List<Input>,
address: Address,
policy: PolicyId,
name: AssetName,
) -> List<Input>
Filters inputs by Address, PolicyId, and AssetName.
let filtered_inputs = inputs_at_with(inputs, address, policy, name);
Filters inputs by Address and PolicyId.
let filtered_inputs = inputs_at_with_policy(inputs, address, policy);