@sats-connect/core 0.0.11-bed3235 → 0.0.11-c2da35e

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 CHANGED
@@ -294,8 +294,7 @@ type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
294
294
  declare const getAddress: (options: GetAddressOptions) => Promise<void>;
295
295
 
296
296
  declare const getInfoMethodName = "getInfo";
297
- declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
298
- type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
297
+ declare const getInfoParamsSchema: v.NullSchema<undefined>;
299
298
  declare const getInfoResultSchema: v.ObjectSchema<{
300
299
  /**
301
300
  * Version of the wallet.
@@ -310,14 +309,12 @@ declare const getInfoResultSchema: v.ObjectSchema<{
310
309
  */
311
310
  readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
312
311
  }, undefined>;
313
- type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;
314
- declare const getInfoRequestMessageSchema: v.ObjectSchema<{
312
+ declare const getInfoSchema: v.ObjectSchema<{
315
313
  readonly method: v.LiteralSchema<"getInfo", undefined>;
316
- readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
314
+ readonly params: v.NullSchema<undefined>;
317
315
  readonly id: v.StringSchema<undefined>;
318
316
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
319
317
  }, undefined>;
320
- type GetInfoRequestMessage = v.InferOutput<typeof getInfoRequestMessageSchema>;
321
318
  type GetInfo = MethodParamsAndResult<v.InferOutput<typeof getInfoParamsSchema>, v.InferOutput<typeof getInfoResultSchema>>;
322
319
  declare const getAddressesMethodName = "getAddresses";
323
320
  declare const getAddressesParamsSchema: v.ObjectSchema<{
@@ -331,7 +328,6 @@ declare const getAddressesParamsSchema: v.ObjectSchema<{
331
328
  */
332
329
  readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
333
330
  }, undefined>;
334
- type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;
335
331
  declare const getAddressesResultSchema: v.ObjectSchema<{
336
332
  /**
337
333
  * The addresses generated for the given purposes.
@@ -343,7 +339,6 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
343
339
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
344
340
  }, undefined>, undefined>;
345
341
  }, undefined>;
346
- type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
347
342
  declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
348
343
  readonly method: v.LiteralSchema<"getAddresses", undefined>;
349
344
  readonly params: v.ObjectSchema<{
@@ -360,7 +355,6 @@ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
360
355
  readonly id: v.StringSchema<undefined>;
361
356
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
362
357
  }, undefined>;
363
- type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
364
358
  type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
365
359
  declare const signMessageMethodName = "signMessage";
366
360
  declare const signMessageParamsSchema: v.ObjectSchema<{
@@ -373,7 +367,6 @@ declare const signMessageParamsSchema: v.ObjectSchema<{
373
367
  **/
374
368
  readonly message: v.StringSchema<undefined>;
375
369
  }, undefined>;
376
- type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
377
370
  declare const signMessageResultSchema: v.ObjectSchema<{
378
371
  /**
379
372
  * The signature of the message.
@@ -388,7 +381,6 @@ declare const signMessageResultSchema: v.ObjectSchema<{
388
381
  */
389
382
  readonly address: v.StringSchema<undefined>;
390
383
  }, undefined>;
391
- type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
392
384
  declare const signMessageRequestMessageSchema: v.ObjectSchema<{
393
385
  readonly method: v.LiteralSchema<"signMessage", undefined>;
394
386
  readonly params: v.ObjectSchema<{
@@ -404,7 +396,6 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
404
396
  readonly id: v.StringSchema<undefined>;
405
397
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
406
398
  }, undefined>;
407
- type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
408
399
  type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
409
400
  type Recipient$1 = {
410
401
  /**
@@ -474,14 +465,12 @@ declare const getAccountsParamsSchema: v.ObjectSchema<{
474
465
  */
475
466
  readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
476
467
  }, undefined>;
477
- type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
478
468
  declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
479
469
  readonly address: v.StringSchema<undefined>;
480
470
  readonly publicKey: v.StringSchema<undefined>;
481
471
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
482
472
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
483
473
  }, undefined>, undefined>;
484
- type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
485
474
  declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
486
475
  readonly method: v.LiteralSchema<"getAccounts", undefined>;
487
476
  readonly params: v.ObjectSchema<{
@@ -498,10 +487,9 @@ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
498
487
  readonly id: v.StringSchema<undefined>;
499
488
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
500
489
  }, undefined>;
501
- type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
502
490
  type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
503
491
  declare const getBalanceMethodName = "getBalance";
504
- declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
492
+ declare const getBalanceParamsSchema: v.UndefinedSchema<undefined>;
505
493
  declare const getBalanceResultSchema: v.ObjectSchema<{
506
494
  /**
507
495
  * The confirmed balance of the wallet in sats. Using a string due to chrome
@@ -673,8 +661,7 @@ interface RbfOrderResult {
673
661
  }
674
662
  type RbfOrder = MethodParamsAndResult<RbfOrderParams, RbfOrderResult>;
675
663
  declare const getRunesBalanceMethodName = "runes_getBalance";
676
- declare const getRunesBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
677
- type GetRunesBalanceParams = v.InferOutput<typeof getRunesBalanceParamsSchema>;
664
+ declare const getRunesBalanceParamsSchema: v.NullSchema<undefined>;
678
665
  declare const getRunesBalanceResultSchema: v.ObjectSchema<{
679
666
  readonly balances: v.ArraySchema<v.ObjectSchema<{
680
667
  readonly runeName: v.StringSchema<undefined>;
@@ -684,14 +671,12 @@ declare const getRunesBalanceResultSchema: v.ObjectSchema<{
684
671
  readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
685
672
  }, undefined>, undefined>;
686
673
  }, undefined>;
687
- type GetRunesBalanceResult = v.InferOutput<typeof getRunesBalanceResultSchema>;
688
674
  declare const getRunesBalanceRequestMessageSchema: v.ObjectSchema<{
689
675
  readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
690
- readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
676
+ readonly params: v.NullSchema<undefined>;
691
677
  readonly id: v.StringSchema<undefined>;
692
678
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
693
679
  }, undefined>;
694
- type GetRunesBalanceRequestMessage = v.InferOutput<typeof getRunesBalanceRequestMessageSchema>;
695
680
  type GetRunesBalance = MethodParamsAndResult<v.InferOutput<typeof getRunesBalanceParamsSchema>, v.InferOutput<typeof getRunesBalanceResultSchema>>;
696
681
 
697
682
  interface Pubkey {
@@ -858,13 +843,13 @@ interface DeployContractParams {
858
843
  }
859
844
  type DeployContractResult = TxId & Transaction;
860
845
  type StxDeployContract = MethodParamsAndResult<DeployContractParams, DeployContractResult>;
861
- type StxGetAccountsResult = {
846
+ type GetAccountsResult = {
862
847
  addresses: Array<Address & PublicKey & {
863
848
  gaiaHubUrl: string;
864
849
  gaiaAppKey: string;
865
850
  }>;
866
851
  };
867
- type StxGetAccounts = MethodParamsAndResult<{}, StxGetAccountsResult>;
852
+ type StxGetAccounts = MethodParamsAndResult<{}, GetAccountsResult>;
868
853
  declare const stxGetAddressesMethodName = "stx_getAddresses";
869
854
  declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
870
855
  /**
@@ -872,7 +857,6 @@ declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
872
857
  */
873
858
  readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
874
859
  }, undefined>, never>;
875
- type StxGetAddressesParams = v.InferOutput<typeof stxGetAddressesParamsSchema>;
876
860
  declare const stxGetAddressesResultSchema: v.ObjectSchema<{
877
861
  /**
878
862
  * The addresses generated for the given purposes.
@@ -884,7 +868,6 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
884
868
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
885
869
  }, undefined>, undefined>;
886
870
  }, undefined>;
887
- type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
888
871
  declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
889
872
  readonly method: v.LiteralSchema<"stx_getAddresses", undefined>;
890
873
  readonly params: v.NullishSchema<v.ObjectSchema<{
@@ -896,7 +879,6 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
896
879
  readonly id: v.StringSchema<undefined>;
897
880
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
898
881
  }, undefined>;
899
- type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
900
882
  type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
901
883
  type SignTransactionParams = Transaction & Partial<Pubkey>;
902
884
  type SignTransactionResult = Transaction;
@@ -991,4 +973,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
991
973
  declare const DefaultAdaptersInfo: Record<string, Provider>;
992
974
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
993
975
 
994
- 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 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 SignTransactionParams, type SignTransactionPayload, type SignTransactionResponse, type SignTransactionResult, 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 StxTransferStx, type SupportedWallet, type TransferStxParams, type TransferStxResult, type WalletMethods, 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, 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 };
976
+ 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 GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetBalance, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type GetInscriptions, type GetOrder, type GetRunesBalance, 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 SignMessagePayload, type SignMessageResponse, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionParams, type SignTransactionPayload, type SignTransactionResponse, type SignTransactionResult, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAddresses, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxTransferStx, type SupportedWallet, type TransferStxParams, type TransferStxResult, type WalletMethods, addressSchema, createInscription, createRepeatInscriptions, defaultAdapters, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoResultSchema, getInfoSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, 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 };
package/dist/index.mjs CHANGED
@@ -202,16 +202,6 @@ var getRunesApiClient = (network = "Mainnet" /* Mainnet */) => {
202
202
  var SatsConnectAdapter = class {
203
203
  async mintRunes(params) {
204
204
  try {
205
- const walletInfo = await this.requestInternal("getInfo", null).catch(() => null);
206
- if (walletInfo && walletInfo.status === "success") {
207
- const isMintSupported = walletInfo.result.methods?.includes("runes_mint");
208
- if (isMintSupported) {
209
- const response = await this.requestInternal("runes_mint", params);
210
- if (response) {
211
- return response;
212
- }
213
- }
214
- }
215
205
  const mintRequest = {
216
206
  destinationAddress: params.destinationAddress,
217
207
  feeRate: params.feeRate,
@@ -281,16 +271,6 @@ var SatsConnectAdapter = class {
281
271
  appServiceFeeAddress: params.appServiceFeeAddress
282
272
  };
283
273
  try {
284
- const walletInfo = await this.requestInternal("getInfo", null).catch(() => null);
285
- if (walletInfo && walletInfo.status === "success") {
286
- const isEtchSupported = walletInfo.result.methods?.includes("runes_etch");
287
- if (isEtchSupported) {
288
- const response = await this.requestInternal("runes_etch", params);
289
- if (response) {
290
- return response;
291
- }
292
- }
293
- }
294
274
  const orderResponse = await new RunesApi(params.network).createEtchOrder(etchRequest);
295
275
  if (!orderResponse.data) {
296
276
  return {
@@ -621,7 +601,7 @@ var stxGetAddressesRequestMessageSchema = v3.object({
621
601
  // src/request/types/btcMethods.ts
622
602
  import * as v4 from "valibot";
623
603
  var getInfoMethodName = "getInfo";
624
- var getInfoParamsSchema = v4.nullish(v4.null());
604
+ var getInfoParamsSchema = v4.null();
625
605
  var getInfoResultSchema = v4.object({
626
606
  /**
627
607
  * Version of the wallet.
@@ -636,7 +616,7 @@ var getInfoResultSchema = v4.object({
636
616
  */
637
617
  supports: v4.array(v4.string())
638
618
  });
639
- var getInfoRequestMessageSchema = v4.object({
619
+ var getInfoSchema = v4.object({
640
620
  ...rpcRequestMessageSchema.entries,
641
621
  ...v4.object({
642
622
  method: v4.literal(getInfoMethodName),
@@ -715,7 +695,7 @@ var getAccountsRequestMessageSchema = v4.object({
715
695
  }).entries
716
696
  });
717
697
  var getBalanceMethodName = "getBalance";
718
- var getBalanceParamsSchema = v4.nullish(v4.null());
698
+ var getBalanceParamsSchema = v4.undefined();
719
699
  var getBalanceResultSchema = v4.object({
720
700
  /**
721
701
  * The confirmed balance of the wallet in sats. Using a string due to chrome
@@ -772,7 +752,7 @@ var renouncePermissionsRequestMessageSchema = v5.object({
772
752
  // src/request/types/runesMethods.ts
773
753
  import * as v6 from "valibot";
774
754
  var getRunesBalanceMethodName = "runes_getBalance";
775
- var getRunesBalanceParamsSchema = v6.nullish(v6.null());
755
+ var getRunesBalanceParamsSchema = v6.null();
776
756
  var getRunesBalanceResultSchema = v6.object({
777
757
  balances: v6.array(
778
758
  v6.object({
@@ -1298,8 +1278,8 @@ export {
1298
1278
  getDefaultProvider,
1299
1279
  getInfoMethodName,
1300
1280
  getInfoParamsSchema,
1301
- getInfoRequestMessageSchema,
1302
1281
  getInfoResultSchema,
1282
+ getInfoSchema,
1303
1283
  getInscriptionsMethodName,
1304
1284
  getInscriptionsParamsSchema,
1305
1285
  getInscriptionsResultSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.0.11-bed3235",
3
+ "version": "0.0.11-c2da35e",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",