Skip to content

Commit

Permalink
chore: fix unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Dec 16, 2024
1 parent cae6c9a commit 90ec152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
11 changes: 1 addition & 10 deletions src/shared/rpc/methods/sign-psbt.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -54,7 +49,3 @@ export function getRpcSignPsbtParamErrors(obj: unknown) {
type SignPsbtRequestParams = z.infer<typeof rpcSignPsbtParamsSchema>;

export type SignPsbtRequest = RpcRequest<'signPsbt', SignPsbtRequestParams>;

type SignPsbtResponse = RpcResponse<{ hex: string }>;

export type SignPsbt = DefineRpcMethod<SignPsbtRequest, SignPsbtResponse>;
9 changes: 1 addition & 8 deletions src/shared/rpc/methods/supported-methods.ts
Original file line number Diff line number Diff line change
@@ -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<SupportedMethodsRequest, SupportedMethodsResponse>;

0 comments on commit 90ec152

Please sign in to comment.