diff --git a/src/shared/rpc/methods/sign-psbt.ts b/src/shared/rpc/methods/sign-psbt.ts index 54f4db6ba7..f79c676564 100644 --- a/src/shared/rpc/methods/sign-psbt.ts +++ b/src/shared/rpc/methods/sign-psbt.ts @@ -1,12 +1,7 @@ import { SigHash } from '@scure/btc-signer/transaction'; import { z } from 'zod'; -import { - SignatureHash as BtcKitSignatureHash, - DefineRpcMethod, - RpcRequest, - RpcResponse, -} from '@leather.io/rpc'; +import { SignatureHash as BtcKitSignatureHash, RpcRequest } from '@leather.io/rpc'; import { defaultNetworkIdSchema } from '../rpc-schemas'; import { @@ -54,7 +49,3 @@ export function getRpcSignPsbtParamErrors(obj: unknown) { type SignPsbtRequestParams = z.infer; export type SignPsbtRequest = RpcRequest<'signPsbt', SignPsbtRequestParams>; - -type SignPsbtResponse = RpcResponse<{ hex: string }>; - -export type SignPsbt = DefineRpcMethod; diff --git a/src/shared/rpc/methods/supported-methods.ts b/src/shared/rpc/methods/supported-methods.ts index f51d65df2d..0ff5b2e3c4 100644 --- a/src/shared/rpc/methods/supported-methods.ts +++ b/src/shared/rpc/methods/supported-methods.ts @@ -1,10 +1,3 @@ -import { DefineRpcMethod, RpcRequest, RpcSuccessResponse } from '@leather.io/rpc'; +import { RpcRequest } from '@leather.io/rpc'; export type SupportedMethodsRequest = RpcRequest<'supportedMethods'>; - -type SupportedMethodsResponse = RpcSuccessResponse<{ - documentation: string; - methods: { name: string; docsUrl?: string | string[] }[]; -}>; - -export type SupportedMethods = DefineRpcMethod;