Skip to content

Commit

Permalink
Update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Sep 26, 2024
1 parent 23ba357 commit c7b50fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/request/types/walletMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export type GetWalletType = MethodParamsAndResult<
v.InferOutput<typeof getWalletTypeResultSchema>
>;

export const getPermissionsMethodName = 'wallet_getPermissions';
export const getPermissionsParamsSchema = v.nullish(v.null());
export const getPermissionsResultSchema = v.array(v.string());
export const getPermissionsRequestMessageSchema = v.object({
export const getCurrentPermissionsMethodName = 'wallet_getCurrentPermissions';
export const getCurrentPermissionsParamsSchema = v.nullish(v.null());
export const getCurrentPermissionsResultSchema = v.array(v.string());
export const getCurrentPermissionsRequestMessageSchema = v.object({
...rpcRequestMessageSchema.entries,
...v.object({
method: v.literal(getPermissionsMethodName),
method: v.literal(getCurrentPermissionsMethodName),
id: v.string(),
}).entries,
});
export type GetPermissions = MethodParamsAndResult<
v.InferOutput<typeof getPermissionsParamsSchema>,
v.InferOutput<typeof getPermissionsResultSchema>
export type GetCurrentPermissions = MethodParamsAndResult<
v.InferOutput<typeof getCurrentPermissionsParamsSchema>,
v.InferOutput<typeof getCurrentPermissionsResultSchema>
>;

0 comments on commit c7b50fc

Please sign in to comment.