Skip to content

Commit

Permalink
fix(providers): fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Oct 27, 2024
1 parent 56f7caa commit 4494354
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/providers/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const AccountsRequestParamsSchema = z
method: z.literal("mina_accounts"),
})
.strict();
export const ReqquestAccountsRequestParamsSchema = z
export const RequestAccountsRequestParamsSchema = z
.object({
method: z.literal("mina_requestAccounts"),
})
Expand Down Expand Up @@ -108,6 +108,12 @@ export const AccountsRequestReturnSchema = z
result: z.array(PublicKeySchema),
})
.strict();
export const RequestAccountsRequestReturnSchema = z
.object({
method: z.literal("mina_requestAccounts"),
result: z.array(PublicKeySchema),
})
.strict();
export const ChainIdRequestReturnSchema = z
.object({
method: z.literal("mina_chainId"),
Expand Down Expand Up @@ -183,6 +189,7 @@ export const GetStateRequestReturnSchema = z

export const RpcReturnTypesUnion = z.discriminatedUnion("method", [
AccountsRequestReturnSchema,
RequestAccountsRequestReturnSchema,
ChainIdRequestReturnSchema,
ChainInformationRequestReturnSchema,
GetBalanceRequestReturnSchema,
Expand All @@ -199,6 +206,7 @@ export const RpcReturnTypesUnion = z.discriminatedUnion("method", [

export const ProviderRequestParamsUnion = z.discriminatedUnion("method", [
AccountsRequestParamsSchema,
RequestAccountsRequestParamsSchema,
ChainIdRequestParamsSchema,
ChainInformationRequestParamsSchema,
GetBalanceRequestParamsSchema,
Expand Down

0 comments on commit 4494354

Please sign in to comment.