File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
TransactionReceiptSchema ,
15
15
TypedSendableSchema ,
16
16
ZkAppCommandPayload ,
17
+ zkAppAccountSchema ,
17
18
} from "@mina-js/utils" ;
18
19
import { z } from "zod" ;
19
20
@@ -100,7 +101,12 @@ export const StorePrivateCredentialRequestParamsSchema =
100
101
} ) . strict ( ) ;
101
102
export const PresentationRequestParamsSchema = RequestWithContext . extend ( {
102
103
method : z . literal ( "mina_requestPresentation" ) ,
103
- params : z . array ( PresentationRequestSchema ) ,
104
+ params : z . array (
105
+ z . object ( {
106
+ presentationRequest : PresentationRequestSchema ,
107
+ zkAppAccount : zkAppAccountSchema . optional ( ) ,
108
+ } ) . strict ( ) ,
109
+ ) ,
104
110
} ) . strict ( ) ;
105
111
106
112
// Returns
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export const NetworkId = z.string().regex(networkPattern);
33
33
34
34
export const KlesiaNetwork = z . enum ( [ "devnet" , "mainnet" , "zeko_devnet" ] ) ;
35
35
36
+ export const MinaScanNetwork = z . enum ( [ "devnet" , "mainnet" ] ) ;
37
+
36
38
export const FeePayerSchema = z
37
39
. object ( {
38
40
feePayer : PublicKeySchema ,
@@ -742,6 +744,12 @@ export const PresentationRequestSchema = z
742
744
} )
743
745
. strict ( ) ;
744
746
747
+ export const zkAppAccountSchema = z . object ( {
748
+ address : PublicKeySchema ,
749
+ tokenId : z . string ( ) ,
750
+ network : MinaScanNetwork ,
751
+ } ) ;
752
+
745
753
// Private Credentials: Witness Schemas
746
754
747
755
const SimpleWitnessSchema = z
You can’t perform that action at this time.
0 commit comments