Skip to content

Commit

Permalink
Remove register client method
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Oct 3, 2024
1 parent 425ea39 commit ce8615a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/request/types/walletMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,32 +143,10 @@ export const getAccountRequestMessageSchema = v.object({
export type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
export type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;

export const registerClientMethodName = 'wallet_registerClient';
export const registerClientParamsSchema = v.object({
name: v.optional(v.string()),
description: v.optional(v.string()),
});
export type RegisterClientParams = v.InferOutput<typeof registerClientParamsSchema>;
export const registerClientResultSchema = v.object({
id: v.string(),
});
export type RegisterClientResult = v.InferOutput<typeof registerClientResultSchema>;
export const registerClientRequestMessageSchema = v.object({
...rpcRequestMessageSchema.entries,
...v.object({
method: v.literal(registerClientMethodName),
params: registerClientParamsSchema,
id: v.string(),
}).entries,
});
export type RegisterClientRequestMessage = v.InferOutput<typeof registerClientRequestMessageSchema>;
export type RegisterClient = MethodParamsAndResult<RegisterClientParams, RegisterClientResult>;

export const connectMethodName = 'wallet_connect';
export const connectParamsSchema = v.nullish(
v.object({
permissions: v.optional(v.array(permissionTemplate)),
clientInfo: registerClientParamsSchema,
})
);
export type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
Expand Down

0 comments on commit ce8615a

Please sign in to comment.