Skip to content

Commit

Permalink
chore(providers): rename
Browse files Browse the repository at this point in the history
  • Loading branch information
martonmoro committed Nov 18, 2024
1 parent 9ce9c53 commit c1c90e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/providers/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ export const SignFieldsRequestParamsSchema = RequestWithContext.extend({
method: z.literal("mina_signFields"),
params: z.array(z.array(FieldSchema)),
}).strict();
export const signFieldsWithPassphraseParamsSchema = RequestWithContext.extend({
method: z.literal("mina_signFieldsWithPassphrase"),
params: z.array(FieldsAndPassphraseSchema),
});
export const signFieldsWithPassphraseRequestParamsSchema =
RequestWithContext.extend({
method: z.literal("mina_signFieldsWithPassphrase"),
params: z.array(FieldsAndPassphraseSchema),
});
export const SignTransactionRequestParamsSchema = RequestWithContext.extend({
method: z.literal("mina_signTransaction"),
params: z.array(z.union([TransactionPayloadSchema, ZkAppCommandPayload])),
Expand Down Expand Up @@ -241,7 +242,7 @@ export const ProviderRequestParamsUnion = z.discriminatedUnion("method", [
GetStateRequestParamsSchema,
StorePrivateCredentialRequestParamsSchema,
PresentationRequestParamsSchema,
signFieldsWithPassphraseParamsSchema,
signFieldsWithPassphraseRequestParamsSchema,
]);
export type RpcReturnTypesUnionType = z.infer<typeof RpcReturnTypesUnion>;
export type ResultType<M extends string> = {
Expand Down

0 comments on commit c1c90e5

Please sign in to comment.