@sats-connect/core 0.1.0-0984c63 → 0.1.0-695c201
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 +21 -18
- package/dist/index.mjs +20 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -35,7 +35,6 @@ declare const createRepeatInscriptions: (options: CreateRepeatInscriptionsOption
|
|
|
35
35
|
interface SignMessagePayload extends RequestPayload {
|
|
36
36
|
address: string;
|
|
37
37
|
message: string;
|
|
38
|
-
protocol?: MessageSigningProtocols;
|
|
39
38
|
}
|
|
40
39
|
type SignMessageResponse = string;
|
|
41
40
|
type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse>;
|
|
@@ -366,10 +365,6 @@ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
366
365
|
type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
|
|
367
366
|
type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
|
|
368
367
|
declare const signMessageMethodName = "signMessage";
|
|
369
|
-
declare enum MessageSigningProtocols {
|
|
370
|
-
ECDSA = "ECDSA",
|
|
371
|
-
BIP322 = "BIP322"
|
|
372
|
-
}
|
|
373
368
|
declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
374
369
|
/**
|
|
375
370
|
* The address used for signing.
|
|
@@ -379,10 +374,6 @@ declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
|
379
374
|
* The message to sign.
|
|
380
375
|
**/
|
|
381
376
|
readonly message: v.StringSchema<undefined>;
|
|
382
|
-
/**
|
|
383
|
-
* The protocol to use for signing the message.
|
|
384
|
-
*/
|
|
385
|
-
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, never>;
|
|
386
377
|
}, undefined>;
|
|
387
378
|
type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
|
|
388
379
|
declare const signMessageResultSchema: v.ObjectSchema<{
|
|
@@ -398,10 +389,6 @@ declare const signMessageResultSchema: v.ObjectSchema<{
|
|
|
398
389
|
* The address used for signing.
|
|
399
390
|
*/
|
|
400
391
|
readonly address: v.StringSchema<undefined>;
|
|
401
|
-
/**
|
|
402
|
-
* The protocol to use for signing the message.
|
|
403
|
-
*/
|
|
404
|
-
readonly protocol: v.EnumSchema<typeof MessageSigningProtocols, undefined>;
|
|
405
392
|
}, undefined>;
|
|
406
393
|
type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
|
|
407
394
|
declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -415,10 +402,6 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
415
402
|
* The message to sign.
|
|
416
403
|
**/
|
|
417
404
|
readonly message: v.StringSchema<undefined>;
|
|
418
|
-
/**
|
|
419
|
-
* The protocol to use for signing the message.
|
|
420
|
-
*/
|
|
421
|
-
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, never>;
|
|
422
405
|
}, undefined>;
|
|
423
406
|
readonly id: v.StringSchema<undefined>;
|
|
424
407
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -718,6 +701,25 @@ declare const getRunesBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
|
718
701
|
}, undefined>;
|
|
719
702
|
type GetRunesBalanceRequestMessage = v.InferOutput<typeof getRunesBalanceRequestMessageSchema>;
|
|
720
703
|
type GetRunesBalance = MethodParamsAndResult<v.InferOutput<typeof getRunesBalanceParamsSchema>, v.InferOutput<typeof getRunesBalanceResultSchema>>;
|
|
704
|
+
declare const RuneTransferRecipientsSchema: v.ArraySchema<v.ObjectSchema<{
|
|
705
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
706
|
+
readonly amount: v.StringSchema<undefined>;
|
|
707
|
+
readonly address: v.StringSchema<undefined>;
|
|
708
|
+
}, undefined>, undefined>;
|
|
709
|
+
declare const TransferRunesMethodName = "runes_transfer";
|
|
710
|
+
declare const TransferRunesParamsSchema: v.ObjectSchema<{
|
|
711
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
712
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
713
|
+
readonly amount: v.StringSchema<undefined>;
|
|
714
|
+
readonly address: v.StringSchema<undefined>;
|
|
715
|
+
}, undefined>, undefined>;
|
|
716
|
+
}, undefined>;
|
|
717
|
+
type TransferRunesParams = v.InferOutput<typeof TransferRunesParamsSchema>;
|
|
718
|
+
declare const TransferRunesResultSchema: v.ObjectSchema<{
|
|
719
|
+
readonly txid: v.StringSchema<undefined>;
|
|
720
|
+
}, undefined>;
|
|
721
|
+
type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
|
|
722
|
+
type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
|
|
721
723
|
|
|
722
724
|
interface Pubkey {
|
|
723
725
|
/**
|
|
@@ -1035,6 +1037,7 @@ interface RunesRequests {
|
|
|
1035
1037
|
runes_estimateRbfOrder: EstimateRbfOrder;
|
|
1036
1038
|
runes_rbfOrder: RbfOrder;
|
|
1037
1039
|
runes_getBalance: GetRunesBalance;
|
|
1040
|
+
runes_transfer: TransferRunes;
|
|
1038
1041
|
}
|
|
1039
1042
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1040
1043
|
interface OrdinalsRequests {
|
|
@@ -1074,4 +1077,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1074
1077
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1075
1078
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1076
1079
|
|
|
1077
|
-
export { type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, 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 GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type InputToSign,
|
|
1080
|
+
export { type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, 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 GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type InputToSign, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type Provider, type PsbtPayload, type RbfOrder, type Recipient$2 as Recipient, type RenouncePermissions, type RequestOptions, type RequestPayload, type RequestPermissions, 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, RuneTransferRecipientsSchema, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendTransfer, type SendTransferParams, 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, TransferRunesMethodName, type TransferRunesParams, TransferRunesParamsSchema, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletRequests, type WalletType, addressSchema, createInscription, createRepeatInscriptions, defaultAdapters, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, walletTypeSchema, walletTypes };
|
package/dist/index.mjs
CHANGED
|
@@ -718,11 +718,6 @@ var getAddressesRequestMessageSchema = v5.object({
|
|
|
718
718
|
}).entries
|
|
719
719
|
});
|
|
720
720
|
var signMessageMethodName = "signMessage";
|
|
721
|
-
var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
|
|
722
|
-
MessageSigningProtocols2["ECDSA"] = "ECDSA";
|
|
723
|
-
MessageSigningProtocols2["BIP322"] = "BIP322";
|
|
724
|
-
return MessageSigningProtocols2;
|
|
725
|
-
})(MessageSigningProtocols || {});
|
|
726
721
|
var signMessageParamsSchema = v5.object({
|
|
727
722
|
/**
|
|
728
723
|
* The address used for signing.
|
|
@@ -731,11 +726,7 @@ var signMessageParamsSchema = v5.object({
|
|
|
731
726
|
/**
|
|
732
727
|
* The message to sign.
|
|
733
728
|
**/
|
|
734
|
-
message: v5.string()
|
|
735
|
-
/**
|
|
736
|
-
* The protocol to use for signing the message.
|
|
737
|
-
*/
|
|
738
|
-
protocol: v5.optional(v5.enum(MessageSigningProtocols))
|
|
729
|
+
message: v5.string()
|
|
739
730
|
});
|
|
740
731
|
var signMessageResultSchema = v5.object({
|
|
741
732
|
/**
|
|
@@ -749,11 +740,7 @@ var signMessageResultSchema = v5.object({
|
|
|
749
740
|
/**
|
|
750
741
|
* The address used for signing.
|
|
751
742
|
*/
|
|
752
|
-
address: v5.string()
|
|
753
|
-
/**
|
|
754
|
-
* The protocol to use for signing the message.
|
|
755
|
-
*/
|
|
756
|
-
protocol: v5.enum(MessageSigningProtocols)
|
|
743
|
+
address: v5.string()
|
|
757
744
|
});
|
|
758
745
|
var signMessageRequestMessageSchema = v5.object({
|
|
759
746
|
...rpcRequestMessageSchema.entries,
|
|
@@ -879,6 +866,20 @@ var getRunesBalanceRequestMessageSchema = v7.object({
|
|
|
879
866
|
id: v7.string()
|
|
880
867
|
}).entries
|
|
881
868
|
});
|
|
869
|
+
var RuneTransferRecipientsSchema = v7.array(
|
|
870
|
+
v7.object({
|
|
871
|
+
runeName: v7.string(),
|
|
872
|
+
amount: v7.string(),
|
|
873
|
+
address: v7.string()
|
|
874
|
+
})
|
|
875
|
+
);
|
|
876
|
+
var TransferRunesMethodName = "runes_transfer";
|
|
877
|
+
var TransferRunesParamsSchema = v7.object({
|
|
878
|
+
recipients: RuneTransferRecipientsSchema
|
|
879
|
+
});
|
|
880
|
+
var TransferRunesResultSchema = v7.object({
|
|
881
|
+
txid: v7.string()
|
|
882
|
+
});
|
|
882
883
|
|
|
883
884
|
// src/request/types/ordinalsMethods.ts
|
|
884
885
|
import * as v8 from "valibot";
|
|
@@ -1364,10 +1365,13 @@ export {
|
|
|
1364
1365
|
BaseAdapter,
|
|
1365
1366
|
BitcoinNetworkType,
|
|
1366
1367
|
DefaultAdaptersInfo,
|
|
1367
|
-
MessageSigningProtocols,
|
|
1368
1368
|
RpcErrorCode,
|
|
1369
1369
|
RpcIdSchema,
|
|
1370
|
+
RuneTransferRecipientsSchema,
|
|
1370
1371
|
SatsConnectAdapter,
|
|
1372
|
+
TransferRunesMethodName,
|
|
1373
|
+
TransferRunesParamsSchema,
|
|
1374
|
+
TransferRunesResultSchema,
|
|
1371
1375
|
addressSchema,
|
|
1372
1376
|
createInscription,
|
|
1373
1377
|
createRepeatInscriptions,
|