@sats-connect/core 0.1.0-695c201 → 0.1.0-811678a
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 +23 -21
- package/dist/index.mjs +24 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -568,6 +568,28 @@ declare const getInscriptionsSchema: v.ObjectSchema<{
|
|
|
568
568
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
569
569
|
}, undefined>;
|
|
570
570
|
type GetInscriptions = MethodParamsAndResult<v.InferOutput<typeof getInscriptionsParamsSchema>, v.InferOutput<typeof getInscriptionsResultSchema>>;
|
|
571
|
+
declare const sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
572
|
+
declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
573
|
+
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
574
|
+
readonly address: v.StringSchema<undefined>;
|
|
575
|
+
readonly inscriptionId: v.StringSchema<undefined>;
|
|
576
|
+
}, undefined>, undefined>;
|
|
577
|
+
}, undefined>;
|
|
578
|
+
declare const sendInscriptionsResultSchema: v.ObjectSchema<{
|
|
579
|
+
readonly txid: v.StringSchema<undefined>;
|
|
580
|
+
}, undefined>;
|
|
581
|
+
declare const sendInscriptionsSchema: v.ObjectSchema<{
|
|
582
|
+
readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
|
|
583
|
+
readonly params: v.ObjectSchema<{
|
|
584
|
+
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
585
|
+
readonly address: v.StringSchema<undefined>;
|
|
586
|
+
readonly inscriptionId: v.StringSchema<undefined>;
|
|
587
|
+
}, undefined>, undefined>;
|
|
588
|
+
}, undefined>;
|
|
589
|
+
readonly id: v.StringSchema<undefined>;
|
|
590
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
591
|
+
}, undefined>;
|
|
592
|
+
type SendInscriptions = MethodParamsAndResult<v.InferOutput<typeof sendInscriptionsParamsSchema>, v.InferOutput<typeof sendInscriptionsResultSchema>>;
|
|
571
593
|
|
|
572
594
|
type CreateMintOrderRequest = {
|
|
573
595
|
runeName: string;
|
|
@@ -701,25 +723,6 @@ declare const getRunesBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
|
701
723
|
}, undefined>;
|
|
702
724
|
type GetRunesBalanceRequestMessage = v.InferOutput<typeof getRunesBalanceRequestMessageSchema>;
|
|
703
725
|
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>;
|
|
723
726
|
|
|
724
727
|
interface Pubkey {
|
|
725
728
|
/**
|
|
@@ -1037,7 +1040,6 @@ interface RunesRequests {
|
|
|
1037
1040
|
runes_estimateRbfOrder: EstimateRbfOrder;
|
|
1038
1041
|
runes_rbfOrder: RbfOrder;
|
|
1039
1042
|
runes_getBalance: GetRunesBalance;
|
|
1040
|
-
runes_transfer: TransferRunes;
|
|
1041
1043
|
}
|
|
1042
1044
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1043
1045
|
interface OrdinalsRequests {
|
|
@@ -1077,4 +1079,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1077
1079
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1078
1080
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1079
1081
|
|
|
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,
|
|
1082
|
+
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 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 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, walletTypeSchema, walletTypes };
|
package/dist/index.mjs
CHANGED
|
@@ -866,20 +866,6 @@ var getRunesBalanceRequestMessageSchema = v7.object({
|
|
|
866
866
|
id: v7.string()
|
|
867
867
|
}).entries
|
|
868
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
|
-
});
|
|
883
869
|
|
|
884
870
|
// src/request/types/ordinalsMethods.ts
|
|
885
871
|
import * as v8 from "valibot";
|
|
@@ -916,6 +902,26 @@ var getInscriptionsSchema = v8.object({
|
|
|
916
902
|
id: v8.string()
|
|
917
903
|
}).entries
|
|
918
904
|
});
|
|
905
|
+
var sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
906
|
+
var sendInscriptionsParamsSchema = v8.object({
|
|
907
|
+
transfers: v8.array(
|
|
908
|
+
v8.object({
|
|
909
|
+
address: v8.string(),
|
|
910
|
+
inscriptionId: v8.string()
|
|
911
|
+
})
|
|
912
|
+
)
|
|
913
|
+
});
|
|
914
|
+
var sendInscriptionsResultSchema = v8.object({
|
|
915
|
+
txid: v8.string()
|
|
916
|
+
});
|
|
917
|
+
var sendInscriptionsSchema = v8.object({
|
|
918
|
+
...rpcRequestMessageSchema.entries,
|
|
919
|
+
...v8.object({
|
|
920
|
+
method: v8.literal(getInscriptionsMethodName),
|
|
921
|
+
params: sendInscriptionsParamsSchema,
|
|
922
|
+
id: v8.string()
|
|
923
|
+
}).entries
|
|
924
|
+
});
|
|
919
925
|
|
|
920
926
|
// src/request/index.ts
|
|
921
927
|
var request = async (method, params, providerId) => {
|
|
@@ -1367,11 +1373,7 @@ export {
|
|
|
1367
1373
|
DefaultAdaptersInfo,
|
|
1368
1374
|
RpcErrorCode,
|
|
1369
1375
|
RpcIdSchema,
|
|
1370
|
-
RuneTransferRecipientsSchema,
|
|
1371
1376
|
SatsConnectAdapter,
|
|
1372
|
-
TransferRunesMethodName,
|
|
1373
|
-
TransferRunesParamsSchema,
|
|
1374
|
-
TransferRunesResultSchema,
|
|
1375
1377
|
addressSchema,
|
|
1376
1378
|
createInscription,
|
|
1377
1379
|
createRepeatInscriptions,
|
|
@@ -1427,6 +1429,10 @@ export {
|
|
|
1427
1429
|
rpcResponseMessageSchema,
|
|
1428
1430
|
rpcSuccessResponseMessageSchema,
|
|
1429
1431
|
sendBtcTransaction,
|
|
1432
|
+
sendInscriptionsMethodName,
|
|
1433
|
+
sendInscriptionsParamsSchema,
|
|
1434
|
+
sendInscriptionsResultSchema,
|
|
1435
|
+
sendInscriptionsSchema,
|
|
1430
1436
|
setDefaultProvider,
|
|
1431
1437
|
signMessage,
|
|
1432
1438
|
signMessageMethodName,
|