sats-connect
Advanced tools
Comparing version 1.2.0 to 1.3.0-4a25e75
@@ -39,2 +39,3 @@ "use strict"; | ||
createRepeatInscriptions: validateCapability('createRepeatInscriptions'), | ||
signMultipleTransactions: validateCapability('signMultipleTransactions'), | ||
}; | ||
@@ -41,0 +42,0 @@ return Object.entries(capabilityMap).reduce((acc, [capability, value]) => { |
@@ -6,3 +6,3 @@ import type { GetAddressResponse } from '../addresses'; | ||
import type { SignMessageResponse } from '../messages'; | ||
import type { SendBtcTransactionResponse, SignTransactionResponse } from '../transactions'; | ||
import type { SendBtcTransactionResponse, SignMultipleTransactionsResponse, SignTransactionResponse } from '../transactions'; | ||
interface BaseBitcoinProvider { | ||
@@ -16,2 +16,3 @@ call: (request: string) => Promise<CallWalletResponse>; | ||
createRepeatInscriptions: (request: string) => Promise<CreateRepeatInscriptionsResponse>; | ||
signMultipleTransactions: (request: string) => Promise<SignMultipleTransactionsResponse>; | ||
} | ||
@@ -18,0 +19,0 @@ export type Capability = keyof BaseBitcoinProvider; |
export * from './sendBtcTransaction'; | ||
export * from './signTransaction'; | ||
export * from './signMultipleTransactions'; | ||
export * from './types'; |
@@ -19,3 +19,4 @@ "use strict"; | ||
__exportStar(require("./signTransaction"), exports); | ||
__exportStar(require("./signMultipleTransactions"), exports); | ||
__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -24,7 +24,13 @@ import type { RequestOptions, RequestPayload } from '../types'; | ||
} | ||
export interface SignTransactionPayload extends RequestPayload { | ||
message: string; | ||
export type PsbtPayload = { | ||
psbtBase64: string; | ||
inputsToSign: InputToSign[]; | ||
broadcast?: boolean; | ||
}; | ||
export type SignMultiplePsbtPayload = { | ||
psbtBase64: string; | ||
inputsToSign: InputToSign[]; | ||
}; | ||
export interface SignTransactionPayload extends RequestPayload, PsbtPayload { | ||
message: string; | ||
} | ||
@@ -36,1 +42,7 @@ export interface SignTransactionResponse { | ||
export type SignTransactionOptions = RequestOptions<SignTransactionPayload, SignTransactionResponse>; | ||
export interface SignMultipleTransactionsPayload extends RequestPayload { | ||
message: string; | ||
psbts: SignMultiplePsbtPayload[]; | ||
} | ||
export type SignMultipleTransactionsResponse = SignTransactionResponse[]; | ||
export type SignMultipleTransactionOptions = RequestOptions<SignMultipleTransactionsPayload, SignMultipleTransactionsResponse>; |
{ | ||
"name": "sats-connect", | ||
"version": "1.2.0", | ||
"version": "1.3.0-4a25e75", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
68259
69
652
1