Skip to content

Commit

Permalink
Merge pull request #79 from secretkeylabs/connect-rpc-api
Browse files Browse the repository at this point in the history
create abstracted connect RPC method
  • Loading branch information
m-aboelenein authored Mar 15, 2024
2 parents 12bfb4b + de95c7b commit 9f12d07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/request/types/btcMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ export type SignPsbtResult = {
};

export type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;

export type GetAccountResult = Address[];

export type GetAccounts = MethodParamsAndResult<null, GetAccountResult>;
11 changes: 9 additions & 2 deletions src/request/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { RpcSuccessResponse } from 'src/types';
import { GetAddresses, GetInfo, SendTransfer, SignMessage, SignPsbt } from './btcMethods';
import {
GetAccounts,
GetAddresses,
GetInfo,
SendTransfer,
SignMessage,
SignPsbt,
} from './btcMethods';
import {
StxCallContract,
StxDeployContract,
Expand Down Expand Up @@ -27,6 +33,7 @@ export type StxRequestMethod = keyof StxRequests;
export interface BtcRequests {
getInfo: GetInfo;
getAddresses: GetAddresses;
getAccounts: GetAccounts;
signMessage: SignMessage;
sendTransfer: SendTransfer;
signPsbt: SignPsbt;
Expand Down

0 comments on commit 9f12d07

Please sign in to comment.