@sats-connect/core 0.1.2-3c27b78 → 0.1.2-cc71c98
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 +70 -3
- package/dist/index.mjs +65 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,7 @@ declare const createRepeatInscriptions: (options: CreateRepeatInscriptionsOption
|
|
|
35
35
|
interface SignMessagePayload extends RequestPayload {
|
|
36
36
|
address: string;
|
|
37
37
|
message: string;
|
|
38
|
+
protocol?: MessageSigningProtocols;
|
|
38
39
|
}
|
|
39
40
|
type SignMessageResponse = string;
|
|
40
41
|
type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse>;
|
|
@@ -365,6 +366,10 @@ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
365
366
|
type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
|
|
366
367
|
type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
|
|
367
368
|
declare const signMessageMethodName = "signMessage";
|
|
369
|
+
declare enum MessageSigningProtocols {
|
|
370
|
+
ECDSA = "ECDSA",
|
|
371
|
+
BIP322 = "BIP322"
|
|
372
|
+
}
|
|
368
373
|
declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
369
374
|
/**
|
|
370
375
|
* The address used for signing.
|
|
@@ -374,6 +379,10 @@ declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
|
374
379
|
* The message to sign.
|
|
375
380
|
**/
|
|
376
381
|
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>;
|
|
377
386
|
}, undefined>;
|
|
378
387
|
type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
|
|
379
388
|
declare const signMessageResultSchema: v.ObjectSchema<{
|
|
@@ -389,6 +398,10 @@ declare const signMessageResultSchema: v.ObjectSchema<{
|
|
|
389
398
|
* The address used for signing.
|
|
390
399
|
*/
|
|
391
400
|
readonly address: v.StringSchema<undefined>;
|
|
401
|
+
/**
|
|
402
|
+
* The protocol to use for signing the message.
|
|
403
|
+
*/
|
|
404
|
+
readonly protocol: v.EnumSchema<typeof MessageSigningProtocols, undefined>;
|
|
392
405
|
}, undefined>;
|
|
393
406
|
type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
|
|
394
407
|
declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -402,6 +415,10 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
402
415
|
* The message to sign.
|
|
403
416
|
**/
|
|
404
417
|
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>;
|
|
405
422
|
}, undefined>;
|
|
406
423
|
readonly id: v.StringSchema<undefined>;
|
|
407
424
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -568,6 +585,28 @@ declare const getInscriptionsSchema: v.ObjectSchema<{
|
|
|
568
585
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
569
586
|
}, undefined>;
|
|
570
587
|
type GetInscriptions = MethodParamsAndResult<v.InferOutput<typeof getInscriptionsParamsSchema>, v.InferOutput<typeof getInscriptionsResultSchema>>;
|
|
588
|
+
declare const sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
589
|
+
declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
590
|
+
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
591
|
+
readonly address: v.StringSchema<undefined>;
|
|
592
|
+
readonly inscriptionId: v.StringSchema<undefined>;
|
|
593
|
+
}, undefined>, undefined>;
|
|
594
|
+
}, undefined>;
|
|
595
|
+
declare const sendInscriptionsResultSchema: v.ObjectSchema<{
|
|
596
|
+
readonly txid: v.StringSchema<undefined>;
|
|
597
|
+
}, undefined>;
|
|
598
|
+
declare const sendInscriptionsSchema: v.ObjectSchema<{
|
|
599
|
+
readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
|
|
600
|
+
readonly params: v.ObjectSchema<{
|
|
601
|
+
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
602
|
+
readonly address: v.StringSchema<undefined>;
|
|
603
|
+
readonly inscriptionId: v.StringSchema<undefined>;
|
|
604
|
+
}, undefined>, undefined>;
|
|
605
|
+
}, undefined>;
|
|
606
|
+
readonly id: v.StringSchema<undefined>;
|
|
607
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
608
|
+
}, undefined>;
|
|
609
|
+
type SendInscriptions = MethodParamsAndResult<v.InferOutput<typeof sendInscriptionsParamsSchema>, v.InferOutput<typeof sendInscriptionsResultSchema>>;
|
|
571
610
|
|
|
572
611
|
type CreateMintOrderRequest = {
|
|
573
612
|
runeName: string;
|
|
@@ -701,6 +740,32 @@ declare const getRunesBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
|
701
740
|
}, undefined>;
|
|
702
741
|
type GetRunesBalanceRequestMessage = v.InferOutput<typeof getRunesBalanceRequestMessageSchema>;
|
|
703
742
|
type GetRunesBalance = MethodParamsAndResult<v.InferOutput<typeof getRunesBalanceParamsSchema>, v.InferOutput<typeof getRunesBalanceResultSchema>>;
|
|
743
|
+
declare const transferRunesMethodName = "runes_transfer";
|
|
744
|
+
declare const transferRunesParamsSchema: v.ObjectSchema<{
|
|
745
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
746
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
747
|
+
readonly amount: v.StringSchema<undefined>;
|
|
748
|
+
readonly address: v.StringSchema<undefined>;
|
|
749
|
+
}, undefined>, undefined>;
|
|
750
|
+
}, undefined>;
|
|
751
|
+
declare const transferRunesSchema: v.ObjectSchema<{
|
|
752
|
+
readonly method: v.LiteralSchema<"runes_transfer", undefined>;
|
|
753
|
+
readonly params: v.ObjectSchema<{
|
|
754
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
755
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
756
|
+
readonly amount: v.StringSchema<undefined>;
|
|
757
|
+
readonly address: v.StringSchema<undefined>;
|
|
758
|
+
}, undefined>, undefined>;
|
|
759
|
+
}, undefined>;
|
|
760
|
+
readonly id: v.StringSchema<undefined>;
|
|
761
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
762
|
+
}, undefined>;
|
|
763
|
+
type TransferRunesParams = v.InferOutput<typeof transferRunesParamsSchema>;
|
|
764
|
+
declare const TransferRunesResultSchema: v.ObjectSchema<{
|
|
765
|
+
readonly txid: v.StringSchema<undefined>;
|
|
766
|
+
}, undefined>;
|
|
767
|
+
type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
|
|
768
|
+
type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
|
|
704
769
|
|
|
705
770
|
interface Pubkey {
|
|
706
771
|
/**
|
|
@@ -1018,10 +1083,12 @@ interface RunesRequests {
|
|
|
1018
1083
|
runes_estimateRbfOrder: EstimateRbfOrder;
|
|
1019
1084
|
runes_rbfOrder: RbfOrder;
|
|
1020
1085
|
runes_getBalance: GetRunesBalance;
|
|
1086
|
+
runes_transfer: TransferRunes;
|
|
1021
1087
|
}
|
|
1022
1088
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1023
1089
|
interface OrdinalsRequests {
|
|
1024
1090
|
ord_getInscriptions: GetInscriptions;
|
|
1091
|
+
ord_sendInscriptions: SendInscriptions;
|
|
1025
1092
|
}
|
|
1026
1093
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1027
1094
|
interface WalletRequests {
|
|
@@ -1033,7 +1100,7 @@ type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & Ord
|
|
|
1033
1100
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
1034
1101
|
type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
|
|
1035
1102
|
|
|
1036
|
-
declare const request: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests |
|
|
1103
|
+
declare const request: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>, providerId?: string) => Promise<RpcResult<Method>>;
|
|
1037
1104
|
|
|
1038
1105
|
declare abstract class SatsConnectAdapter {
|
|
1039
1106
|
abstract readonly id: string;
|
|
@@ -1051,10 +1118,10 @@ declare abstract class SatsConnectAdapter {
|
|
|
1051
1118
|
declare class BaseAdapter extends SatsConnectAdapter {
|
|
1052
1119
|
id: string;
|
|
1053
1120
|
constructor(providerId: string);
|
|
1054
|
-
requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests |
|
|
1121
|
+
requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
|
|
1055
1122
|
}
|
|
1056
1123
|
|
|
1057
1124
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1058
1125
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1059
1126
|
|
|
1060
|
-
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, 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 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 };
|
|
1127
|
+
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, MessageSigningProtocols, 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, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, 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, type TransferRunesParams, 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, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesSchema, walletTypeSchema, walletTypes };
|
package/dist/index.mjs
CHANGED
|
@@ -718,6 +718,11 @@ 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 || {});
|
|
721
726
|
var signMessageParamsSchema = v5.object({
|
|
722
727
|
/**
|
|
723
728
|
* The address used for signing.
|
|
@@ -726,7 +731,11 @@ var signMessageParamsSchema = v5.object({
|
|
|
726
731
|
/**
|
|
727
732
|
* The message to sign.
|
|
728
733
|
**/
|
|
729
|
-
message: v5.string()
|
|
734
|
+
message: v5.string(),
|
|
735
|
+
/**
|
|
736
|
+
* The protocol to use for signing the message.
|
|
737
|
+
*/
|
|
738
|
+
protocol: v5.optional(v5.enum(MessageSigningProtocols))
|
|
730
739
|
});
|
|
731
740
|
var signMessageResultSchema = v5.object({
|
|
732
741
|
/**
|
|
@@ -740,7 +749,11 @@ var signMessageResultSchema = v5.object({
|
|
|
740
749
|
/**
|
|
741
750
|
* The address used for signing.
|
|
742
751
|
*/
|
|
743
|
-
address: v5.string()
|
|
752
|
+
address: v5.string(),
|
|
753
|
+
/**
|
|
754
|
+
* The protocol to use for signing the message.
|
|
755
|
+
*/
|
|
756
|
+
protocol: v5.enum(MessageSigningProtocols)
|
|
744
757
|
});
|
|
745
758
|
var signMessageRequestMessageSchema = v5.object({
|
|
746
759
|
...rpcRequestMessageSchema.entries,
|
|
@@ -866,6 +879,27 @@ var getRunesBalanceRequestMessageSchema = v7.object({
|
|
|
866
879
|
id: v7.string()
|
|
867
880
|
}).entries
|
|
868
881
|
});
|
|
882
|
+
var transferRunesMethodName = "runes_transfer";
|
|
883
|
+
var transferRunesParamsSchema = v7.object({
|
|
884
|
+
recipients: v7.array(
|
|
885
|
+
v7.object({
|
|
886
|
+
runeName: v7.string(),
|
|
887
|
+
amount: v7.string(),
|
|
888
|
+
address: v7.string()
|
|
889
|
+
})
|
|
890
|
+
)
|
|
891
|
+
});
|
|
892
|
+
var transferRunesSchema = v7.object({
|
|
893
|
+
...rpcRequestMessageSchema.entries,
|
|
894
|
+
...v7.object({
|
|
895
|
+
method: v7.literal(transferRunesMethodName),
|
|
896
|
+
params: transferRunesParamsSchema,
|
|
897
|
+
id: v7.string()
|
|
898
|
+
}).entries
|
|
899
|
+
});
|
|
900
|
+
var TransferRunesResultSchema = v7.object({
|
|
901
|
+
txid: v7.string()
|
|
902
|
+
});
|
|
869
903
|
|
|
870
904
|
// src/request/types/ordinalsMethods.ts
|
|
871
905
|
import * as v8 from "valibot";
|
|
@@ -902,6 +936,26 @@ var getInscriptionsSchema = v8.object({
|
|
|
902
936
|
id: v8.string()
|
|
903
937
|
}).entries
|
|
904
938
|
});
|
|
939
|
+
var sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
940
|
+
var sendInscriptionsParamsSchema = v8.object({
|
|
941
|
+
transfers: v8.array(
|
|
942
|
+
v8.object({
|
|
943
|
+
address: v8.string(),
|
|
944
|
+
inscriptionId: v8.string()
|
|
945
|
+
})
|
|
946
|
+
)
|
|
947
|
+
});
|
|
948
|
+
var sendInscriptionsResultSchema = v8.object({
|
|
949
|
+
txid: v8.string()
|
|
950
|
+
});
|
|
951
|
+
var sendInscriptionsSchema = v8.object({
|
|
952
|
+
...rpcRequestMessageSchema.entries,
|
|
953
|
+
...v8.object({
|
|
954
|
+
method: v8.literal(sendInscriptionsMethodName),
|
|
955
|
+
params: sendInscriptionsParamsSchema,
|
|
956
|
+
id: v8.string()
|
|
957
|
+
}).entries
|
|
958
|
+
});
|
|
905
959
|
|
|
906
960
|
// src/request/index.ts
|
|
907
961
|
var request = async (method, params, providerId) => {
|
|
@@ -1351,9 +1405,11 @@ export {
|
|
|
1351
1405
|
BaseAdapter,
|
|
1352
1406
|
BitcoinNetworkType,
|
|
1353
1407
|
DefaultAdaptersInfo,
|
|
1408
|
+
MessageSigningProtocols,
|
|
1354
1409
|
RpcErrorCode,
|
|
1355
1410
|
RpcIdSchema,
|
|
1356
1411
|
SatsConnectAdapter,
|
|
1412
|
+
TransferRunesResultSchema,
|
|
1357
1413
|
addressSchema,
|
|
1358
1414
|
createInscription,
|
|
1359
1415
|
createRepeatInscriptions,
|
|
@@ -1409,6 +1465,10 @@ export {
|
|
|
1409
1465
|
rpcResponseMessageSchema,
|
|
1410
1466
|
rpcSuccessResponseMessageSchema,
|
|
1411
1467
|
sendBtcTransaction,
|
|
1468
|
+
sendInscriptionsMethodName,
|
|
1469
|
+
sendInscriptionsParamsSchema,
|
|
1470
|
+
sendInscriptionsResultSchema,
|
|
1471
|
+
sendInscriptionsSchema,
|
|
1412
1472
|
setDefaultProvider,
|
|
1413
1473
|
signMessage,
|
|
1414
1474
|
signMessageMethodName,
|
|
@@ -1425,6 +1485,9 @@ export {
|
|
|
1425
1485
|
stxSignTransactionParamsSchema,
|
|
1426
1486
|
stxSignTransactionRequestMessageSchema,
|
|
1427
1487
|
stxSignTransactionResultSchema,
|
|
1488
|
+
transferRunesMethodName,
|
|
1489
|
+
transferRunesParamsSchema,
|
|
1490
|
+
transferRunesSchema,
|
|
1428
1491
|
walletTypeSchema,
|
|
1429
1492
|
walletTypes
|
|
1430
1493
|
};
|