From 9390d5df0ae689280c7c27683bae4149563aa6da Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Mon, 16 Sep 2024 08:14:42 +0200 Subject: [PATCH] Add tuples to test-app example GPC proof --- examples/test-app/src/apis/GPC.tsx | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/examples/test-app/src/apis/GPC.tsx b/examples/test-app/src/apis/GPC.tsx index 919e84d..f72f348 100644 --- a/examples/test-app/src/apis/GPC.tsx +++ b/examples/test-app/src/apis/GPC.tsx @@ -15,7 +15,18 @@ const request: PodspecProofRequest = { isRevealed: true }, str: { type: "int", inRange: { min: BigInt(5), max: BigInt(1000) } } - } + }, + tuples: [ + { + entries: ["wis", "str"], + isNotMemberOf: [ + [ + { type: "int", value: BigInt(100) }, + { type: "int", value: BigInt(500) } + ] + ] + } + ] }, pod2: { entries: { @@ -53,7 +64,18 @@ const request: PodspecProofRequest = { isRevealed: true }, str: { type: "int", inRange: { min: BigInt(5), max: BigInt(1000) } } - } + }, + tuples: [ + { + entries: ["wis", "str"], + isNotMemberOf: [ + [ + { type: "int", value: BigInt(100) }, + { type: "int", value: BigInt(500) } + ] + ] + } + ] }, pod2: { entries: {