@sats-connect/core 0.4.0-d60f0ef → 0.4.0-e8e6a66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +35 -10
- package/dist/index.d.ts +35 -10
- package/dist/index.js +43 -0
- package/dist/index.mjs +39 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -489,33 +489,58 @@ declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
|
|
|
489
489
|
readonly id: v.StringSchema<undefined>;
|
|
490
490
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
491
491
|
}, undefined>;
|
|
492
|
+
type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
|
|
492
493
|
type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
|
|
493
|
-
|
|
494
|
+
declare const signPsbtMethodName = "signPsbt";
|
|
495
|
+
declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
494
496
|
/**
|
|
495
497
|
* The base64 encoded PSBT to sign.
|
|
496
498
|
*/
|
|
497
|
-
psbt:
|
|
499
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
498
500
|
/**
|
|
499
501
|
* The inputs to sign.
|
|
500
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
501
503
|
*/
|
|
502
|
-
signInputs:
|
|
504
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
503
505
|
/**
|
|
504
506
|
* Whether to broadcast the transaction after signing.
|
|
505
507
|
**/
|
|
506
|
-
broadcast
|
|
507
|
-
}
|
|
508
|
-
type
|
|
508
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
509
|
+
}, undefined>;
|
|
510
|
+
type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
|
|
511
|
+
declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
509
512
|
/**
|
|
510
513
|
* The base64 encoded PSBT after signing.
|
|
511
514
|
*/
|
|
512
|
-
psbt:
|
|
515
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
513
516
|
/**
|
|
514
517
|
* The transaction id as a hex-encoded string.
|
|
515
518
|
* This is only returned if the transaction was broadcast.
|
|
516
519
|
**/
|
|
517
|
-
txid
|
|
518
|
-
}
|
|
520
|
+
readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
521
|
+
}, undefined>;
|
|
522
|
+
type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
|
|
523
|
+
declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
524
|
+
readonly method: v.LiteralSchema<"signPsbt", undefined>;
|
|
525
|
+
readonly params: v.ObjectSchema<{
|
|
526
|
+
/**
|
|
527
|
+
* The base64 encoded PSBT to sign.
|
|
528
|
+
*/
|
|
529
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
530
|
+
/**
|
|
531
|
+
* The inputs to sign.
|
|
532
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
533
|
+
*/
|
|
534
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
535
|
+
/**
|
|
536
|
+
* Whether to broadcast the transaction after signing.
|
|
537
|
+
**/
|
|
538
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
539
|
+
}, undefined>;
|
|
540
|
+
readonly id: v.StringSchema<undefined>;
|
|
541
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
542
|
+
}, undefined>;
|
|
543
|
+
type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
|
|
519
544
|
type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
|
|
520
545
|
declare const getAccountsMethodName = "getAccounts";
|
|
521
546
|
declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
@@ -1623,4 +1648,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1623
1648
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1624
1649
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1625
1650
|
|
|
1626
|
-
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|
|
1651
|
+
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|
package/dist/index.d.ts
CHANGED
|
@@ -489,33 +489,58 @@ declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
|
|
|
489
489
|
readonly id: v.StringSchema<undefined>;
|
|
490
490
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
491
491
|
}, undefined>;
|
|
492
|
+
type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
|
|
492
493
|
type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
|
|
493
|
-
|
|
494
|
+
declare const signPsbtMethodName = "signPsbt";
|
|
495
|
+
declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
494
496
|
/**
|
|
495
497
|
* The base64 encoded PSBT to sign.
|
|
496
498
|
*/
|
|
497
|
-
psbt:
|
|
499
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
498
500
|
/**
|
|
499
501
|
* The inputs to sign.
|
|
500
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
501
503
|
*/
|
|
502
|
-
signInputs:
|
|
504
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
503
505
|
/**
|
|
504
506
|
* Whether to broadcast the transaction after signing.
|
|
505
507
|
**/
|
|
506
|
-
broadcast
|
|
507
|
-
}
|
|
508
|
-
type
|
|
508
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
509
|
+
}, undefined>;
|
|
510
|
+
type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
|
|
511
|
+
declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
509
512
|
/**
|
|
510
513
|
* The base64 encoded PSBT after signing.
|
|
511
514
|
*/
|
|
512
|
-
psbt:
|
|
515
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
513
516
|
/**
|
|
514
517
|
* The transaction id as a hex-encoded string.
|
|
515
518
|
* This is only returned if the transaction was broadcast.
|
|
516
519
|
**/
|
|
517
|
-
txid
|
|
518
|
-
}
|
|
520
|
+
readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
521
|
+
}, undefined>;
|
|
522
|
+
type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
|
|
523
|
+
declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
524
|
+
readonly method: v.LiteralSchema<"signPsbt", undefined>;
|
|
525
|
+
readonly params: v.ObjectSchema<{
|
|
526
|
+
/**
|
|
527
|
+
* The base64 encoded PSBT to sign.
|
|
528
|
+
*/
|
|
529
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
530
|
+
/**
|
|
531
|
+
* The inputs to sign.
|
|
532
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
533
|
+
*/
|
|
534
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
535
|
+
/**
|
|
536
|
+
* Whether to broadcast the transaction after signing.
|
|
537
|
+
**/
|
|
538
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
539
|
+
}, undefined>;
|
|
540
|
+
readonly id: v.StringSchema<undefined>;
|
|
541
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
542
|
+
}, undefined>;
|
|
543
|
+
type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
|
|
519
544
|
type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
|
|
520
545
|
declare const getAccountsMethodName = "getAccounts";
|
|
521
546
|
declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
@@ -1623,4 +1648,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1623
1648
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1624
1649
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1625
1650
|
|
|
1626
|
-
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|
|
1651
|
+
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|
package/dist/index.js
CHANGED
|
@@ -134,6 +134,10 @@ __export(src_exports, {
|
|
|
134
134
|
signMessageRequestMessageSchema: () => signMessageRequestMessageSchema,
|
|
135
135
|
signMessageResultSchema: () => signMessageResultSchema,
|
|
136
136
|
signMultipleTransactions: () => signMultipleTransactions,
|
|
137
|
+
signPsbtMethodName: () => signPsbtMethodName,
|
|
138
|
+
signPsbtParamsSchema: () => signPsbtParamsSchema,
|
|
139
|
+
signPsbtRequestMessageSchema: () => signPsbtRequestMessageSchema,
|
|
140
|
+
signPsbtResultSchema: () => signPsbtResultSchema,
|
|
137
141
|
signTransaction: () => signTransaction,
|
|
138
142
|
stxGetAddressesMethodName: () => stxGetAddressesMethodName,
|
|
139
143
|
stxGetAddressesParamsSchema: () => stxGetAddressesParamsSchema,
|
|
@@ -503,6 +507,41 @@ var sendTransferRequestMessageSchema = v6.object({
|
|
|
503
507
|
id: v6.string()
|
|
504
508
|
}).entries
|
|
505
509
|
});
|
|
510
|
+
var signPsbtMethodName = "signPsbt";
|
|
511
|
+
var signPsbtParamsSchema = v6.object({
|
|
512
|
+
/**
|
|
513
|
+
* The base64 encoded PSBT to sign.
|
|
514
|
+
*/
|
|
515
|
+
psbt: v6.string(),
|
|
516
|
+
/**
|
|
517
|
+
* The inputs to sign.
|
|
518
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
519
|
+
*/
|
|
520
|
+
signInputs: v6.record(v6.string(), v6.array(v6.number())),
|
|
521
|
+
/**
|
|
522
|
+
* Whether to broadcast the transaction after signing.
|
|
523
|
+
**/
|
|
524
|
+
broadcast: v6.optional(v6.boolean())
|
|
525
|
+
});
|
|
526
|
+
var signPsbtResultSchema = v6.object({
|
|
527
|
+
/**
|
|
528
|
+
* The base64 encoded PSBT after signing.
|
|
529
|
+
*/
|
|
530
|
+
psbt: v6.string(),
|
|
531
|
+
/**
|
|
532
|
+
* The transaction id as a hex-encoded string.
|
|
533
|
+
* This is only returned if the transaction was broadcast.
|
|
534
|
+
**/
|
|
535
|
+
txid: v6.optional(v6.string())
|
|
536
|
+
});
|
|
537
|
+
var signPsbtRequestMessageSchema = v6.object({
|
|
538
|
+
...rpcRequestMessageSchema.entries,
|
|
539
|
+
...v6.object({
|
|
540
|
+
method: v6.literal(signPsbtMethodName),
|
|
541
|
+
params: signPsbtParamsSchema,
|
|
542
|
+
id: v6.string()
|
|
543
|
+
}).entries
|
|
544
|
+
});
|
|
506
545
|
var getAccountsMethodName = "getAccounts";
|
|
507
546
|
var getAccountsParamsSchema = v6.object({
|
|
508
547
|
/**
|
|
@@ -1827,6 +1866,10 @@ var signMultipleTransactions = async (options) => {
|
|
|
1827
1866
|
signMessageRequestMessageSchema,
|
|
1828
1867
|
signMessageResultSchema,
|
|
1829
1868
|
signMultipleTransactions,
|
|
1869
|
+
signPsbtMethodName,
|
|
1870
|
+
signPsbtParamsSchema,
|
|
1871
|
+
signPsbtRequestMessageSchema,
|
|
1872
|
+
signPsbtResultSchema,
|
|
1830
1873
|
signTransaction,
|
|
1831
1874
|
stxGetAddressesMethodName,
|
|
1832
1875
|
stxGetAddressesParamsSchema,
|
package/dist/index.mjs
CHANGED
|
@@ -349,6 +349,41 @@ var sendTransferRequestMessageSchema = v6.object({
|
|
|
349
349
|
id: v6.string()
|
|
350
350
|
}).entries
|
|
351
351
|
});
|
|
352
|
+
var signPsbtMethodName = "signPsbt";
|
|
353
|
+
var signPsbtParamsSchema = v6.object({
|
|
354
|
+
/**
|
|
355
|
+
* The base64 encoded PSBT to sign.
|
|
356
|
+
*/
|
|
357
|
+
psbt: v6.string(),
|
|
358
|
+
/**
|
|
359
|
+
* The inputs to sign.
|
|
360
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
361
|
+
*/
|
|
362
|
+
signInputs: v6.record(v6.string(), v6.array(v6.number())),
|
|
363
|
+
/**
|
|
364
|
+
* Whether to broadcast the transaction after signing.
|
|
365
|
+
**/
|
|
366
|
+
broadcast: v6.optional(v6.boolean())
|
|
367
|
+
});
|
|
368
|
+
var signPsbtResultSchema = v6.object({
|
|
369
|
+
/**
|
|
370
|
+
* The base64 encoded PSBT after signing.
|
|
371
|
+
*/
|
|
372
|
+
psbt: v6.string(),
|
|
373
|
+
/**
|
|
374
|
+
* The transaction id as a hex-encoded string.
|
|
375
|
+
* This is only returned if the transaction was broadcast.
|
|
376
|
+
**/
|
|
377
|
+
txid: v6.optional(v6.string())
|
|
378
|
+
});
|
|
379
|
+
var signPsbtRequestMessageSchema = v6.object({
|
|
380
|
+
...rpcRequestMessageSchema.entries,
|
|
381
|
+
...v6.object({
|
|
382
|
+
method: v6.literal(signPsbtMethodName),
|
|
383
|
+
params: signPsbtParamsSchema,
|
|
384
|
+
id: v6.string()
|
|
385
|
+
}).entries
|
|
386
|
+
});
|
|
352
387
|
var getAccountsMethodName = "getAccounts";
|
|
353
388
|
var getAccountsParamsSchema = v6.object({
|
|
354
389
|
/**
|
|
@@ -1672,6 +1707,10 @@ export {
|
|
|
1672
1707
|
signMessageRequestMessageSchema,
|
|
1673
1708
|
signMessageResultSchema,
|
|
1674
1709
|
signMultipleTransactions,
|
|
1710
|
+
signPsbtMethodName,
|
|
1711
|
+
signPsbtParamsSchema,
|
|
1712
|
+
signPsbtRequestMessageSchema,
|
|
1713
|
+
signPsbtResultSchema,
|
|
1675
1714
|
signTransaction,
|
|
1676
1715
|
stxGetAddressesMethodName,
|
|
1677
1716
|
stxGetAddressesParamsSchema,
|