From 90ec1525a0044485f68d5d66503a53a4b545431a Mon Sep 17 00:00:00 2001 From: Will Cameron Date: Mon, 16 Dec 2024 12:05:29 -0800 Subject: [PATCH] chore: fix unused exports --- src/shared/rpc/methods/sign-psbt.ts | 11 +---------- src/shared/rpc/methods/supported-methods.ts | 9 +-------- 2 files changed, 2 insertions(+), 18 deletions(-) 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;