wallet-core: make planchets.byGroupAndIndex unique

This commit is contained in:
Florian Dold 2023-09-15 13:35:47 +02:00
parent 5de329e653
commit de117e375a
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -2434,10 +2434,13 @@ export const WalletStoresV1 = {
"planchets",
describeContents<PlanchetRecord>({ keyPath: "coinPub" }),
{
byGroupAndIndex: describeIndex("byGroupAndIndex", [
"withdrawalGroupId",
"coinIdx",
]),
byGroupAndIndex: describeIndex(
"byGroupAndIndex",
["withdrawalGroupId", "coinIdx"],
{
unique: true,
},
),
byGroup: describeIndex("byGroup", "withdrawalGroupId"),
byCoinEvHash: describeIndex("byCoinEv", "coinEvHash"),
},