Skip to content

Commit

Permalink
CORE-20131: Make Strategy CordaSerializable (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephzunigadaly authored Mar 18, 2024
1 parent a29570d commit 8aa3735
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package net.corda.v5.ledger.utxo.token.selection;

import net.corda.v5.base.annotations.CordaSerializable;

/**
* Token selection strategy. RANDOM is the default.
*/
@CordaSerializable
public enum Strategy {
/**
* Choose tokens in transaction ID order. As this field is not a sequential value, it has the effect of a pseudo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.corda.v5.ledger.utxo.token.selection;

import net.corda.v5.base.annotations.ConstructorForDeserialization;
import net.corda.v5.base.annotations.CordaSerializable;
import net.corda.v5.base.types.MemberX500Name;
import net.corda.v5.crypto.SecureHash;
Expand Down Expand Up @@ -94,6 +95,7 @@ public TokenClaimCriteria(
* @param targetAmount The minimum value for the sum of {@link ClaimedToken#getAmount()} for the selected tokens.
* @param strategy The token selection strategy to use.
*/
@ConstructorForDeserialization
public TokenClaimCriteria(
@NotNull final String tokenType,
@NotNull final SecureHash issuerHash,
Expand Down

0 comments on commit 8aa3735

Please sign in to comment.