diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/Strategy.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/Strategy.avsc new file mode 100644 index 0000000000..a21aa39d97 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/Strategy.avsc @@ -0,0 +1,7 @@ +{ + "type": "enum", + "name": "Strategy", + "namespace": "net.corda.data.ledger.utxo.token.selection.data", + "doc": "Token selection strategy.", + "symbols": ["RANDOM", "PRIORITY"] +} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/TokenClaimQuery.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/TokenClaimQuery.avsc index 81351ee078..9d21a8f8c5 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/TokenClaimQuery.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/utxo/token/selection/data/TokenClaimQuery.avsc @@ -17,7 +17,7 @@ { "name": "targetAmount", "type": "net.corda.data.ledger.utxo.token.selection.data.TokenAmount", - "doc": "The target amount to be claimed." + "doc": "The target amount to be claimed" }, { "name": "ownerHash", @@ -30,6 +30,12 @@ "type": ["null", "string"], "default": null, "doc": "Optional regular expression used to match a tag, null will match all" + }, + { + "name": "strategy", + "type": ["null","net.corda.data.ledger.utxo.token.selection.data.Strategy"], + "default": null, + "doc": " The token selection strategy to use" } ] } \ No newline at end of file