@sats-connect/core 0.15.0 → 0.16.0-1c86499

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.js CHANGED
@@ -179,6 +179,10 @@ __export(index_exports, {
179
179
  signMessageParamsSchema: () => signMessageParamsSchema,
180
180
  signMessageRequestMessageSchema: () => signMessageRequestMessageSchema,
181
181
  signMessageResultSchema: () => signMessageResultSchema,
182
+ signMultipleMessagesMethodName: () => signMultipleMessagesMethodName,
183
+ signMultipleMessagesParamsSchema: () => signMultipleMessagesParamsSchema,
184
+ signMultipleMessagesRequestMessageSchema: () => signMultipleMessagesRequestMessageSchema,
185
+ signMultipleMessagesResultSchema: () => signMultipleMessagesResultSchema,
182
186
  signMultipleTransactions: () => signMultipleTransactions,
183
187
  signPsbtMethodName: () => signPsbtMethodName,
184
188
  signPsbtParamsSchema: () => signPsbtParamsSchema,
@@ -286,7 +290,7 @@ __export(index_exports, {
286
290
  module.exports = __toCommonJS(index_exports);
287
291
 
288
292
  // src/request/index.ts
289
- var v55 = __toESM(require("valibot"));
293
+ var v62 = __toESM(require("valibot"));
290
294
 
291
295
  // src/provider/types.ts
292
296
  var v4 = __toESM(require("valibot"));
@@ -529,973 +533,1045 @@ var sanitizeAddressPurposeRequest = (method, params) => {
529
533
  return { method, params };
530
534
  };
531
535
 
532
- // src/request/types/btcMethods.ts
533
- var v20 = __toESM(require("valibot"));
536
+ // src/request/types/btcMethods/common.ts
537
+ var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
538
+ MessageSigningProtocols2["ECDSA"] = "ECDSA";
539
+ MessageSigningProtocols2["BIP322"] = "BIP322";
540
+ return MessageSigningProtocols2;
541
+ })(MessageSigningProtocols || {});
534
542
 
535
- // src/request/types/walletMethods/addNetwork.ts
543
+ // src/request/types/btcMethods/getAccounts.ts
536
544
  var v5 = __toESM(require("valibot"));
537
- var addNetworkMethodName = "wallet_addNetwork";
538
- var addNetworkParamsSchema = v5.variant("chain", [
545
+ var getAccountsMethodName = "getAccounts";
546
+ var getAccountsParamsSchema = v5.object({
547
+ /**
548
+ * The purposes for which to generate addresses. See
549
+ * {@linkcode AddressPurpose} for available purposes.
550
+ */
551
+ purposes: v5.array(v5.enum(AddressPurpose)),
552
+ /**
553
+ * A message to be displayed to the user in the request prompt.
554
+ */
555
+ message: v5.optional(v5.string())
556
+ });
557
+ var getAccountsResultSchema = v5.array(
539
558
  v5.object({
540
- chain: v5.literal("bitcoin"),
541
- type: v5.enum(BitcoinNetworkType),
542
- name: v5.string(),
543
- rpcUrl: v5.string(),
544
- rpcFallbackUrl: v5.optional(v5.string()),
545
- indexerUrl: v5.optional(v5.string()),
546
- blockExplorerUrl: v5.optional(v5.string()),
547
- switch: v5.optional(v5.boolean())
559
+ ...addressSchema.entries,
560
+ ...v5.object({
561
+ walletType: walletTypeSchema
562
+ }).entries
563
+ })
564
+ );
565
+ var getAccountsRequestMessageSchema = v5.object({
566
+ ...rpcRequestMessageSchema.entries,
567
+ ...v5.object({
568
+ method: v5.literal(getAccountsMethodName),
569
+ params: getAccountsParamsSchema,
570
+ id: v5.string()
571
+ }).entries
572
+ });
573
+
574
+ // src/request/types/btcMethods/getAddresses.ts
575
+ var v21 = __toESM(require("valibot"));
576
+
577
+ // src/request/types/walletMethods/addNetwork.ts
578
+ var v6 = __toESM(require("valibot"));
579
+ var addNetworkMethodName = "wallet_addNetwork";
580
+ var addNetworkParamsSchema = v6.variant("chain", [
581
+ v6.object({
582
+ chain: v6.literal("bitcoin"),
583
+ type: v6.enum(BitcoinNetworkType),
584
+ name: v6.string(),
585
+ rpcUrl: v6.string(),
586
+ rpcFallbackUrl: v6.optional(v6.string()),
587
+ indexerUrl: v6.optional(v6.string()),
588
+ blockExplorerUrl: v6.optional(v6.string()),
589
+ switch: v6.optional(v6.boolean())
548
590
  }),
549
- v5.object({
550
- chain: v5.literal("stacks"),
551
- name: v5.string(),
552
- type: v5.enum(StacksNetworkType),
553
- rpcUrl: v5.string(),
554
- blockExplorerUrl: v5.optional(v5.string()),
555
- switch: v5.optional(v5.boolean())
591
+ v6.object({
592
+ chain: v6.literal("stacks"),
593
+ name: v6.string(),
594
+ type: v6.enum(StacksNetworkType),
595
+ rpcUrl: v6.string(),
596
+ blockExplorerUrl: v6.optional(v6.string()),
597
+ switch: v6.optional(v6.boolean())
556
598
  }),
557
- v5.object({
558
- chain: v5.literal("starknet"),
559
- name: v5.string(),
560
- type: v5.enum(StarknetNetworkType),
561
- rpcUrl: v5.string(),
562
- blockExplorerUrl: v5.optional(v5.string()),
563
- switch: v5.optional(v5.boolean())
599
+ v6.object({
600
+ chain: v6.literal("starknet"),
601
+ name: v6.string(),
602
+ type: v6.enum(StarknetNetworkType),
603
+ rpcUrl: v6.string(),
604
+ blockExplorerUrl: v6.optional(v6.string()),
605
+ switch: v6.optional(v6.boolean())
564
606
  })
565
607
  ]);
566
- var addNetworkRequestMessageSchema = v5.object({
608
+ var addNetworkRequestMessageSchema = v6.object({
567
609
  ...rpcRequestMessageSchema.entries,
568
- ...v5.object({
569
- method: v5.literal(addNetworkMethodName),
610
+ ...v6.object({
611
+ method: v6.literal(addNetworkMethodName),
570
612
  params: addNetworkParamsSchema,
571
- id: v5.string()
613
+ id: v6.string()
572
614
  }).entries
573
615
  });
574
- var addNetworkResultSchema = v5.object({
575
- id: v5.string()
616
+ var addNetworkResultSchema = v6.object({
617
+ id: v6.string()
576
618
  });
577
619
 
578
620
  // src/request/types/walletMethods/changeNetwork.ts
579
- var v6 = __toESM(require("valibot"));
621
+ var v7 = __toESM(require("valibot"));
580
622
  var changeNetworkMethodName = "wallet_changeNetwork";
581
- var changeNetworkParamsSchema = v6.object({
582
- name: v6.enum(BitcoinNetworkType)
623
+ var changeNetworkParamsSchema = v7.object({
624
+ name: v7.enum(BitcoinNetworkType)
583
625
  });
584
- var changeNetworkResultSchema = v6.nullish(v6.null());
585
- var changeNetworkRequestMessageSchema = v6.object({
626
+ var changeNetworkResultSchema = v7.nullish(v7.null());
627
+ var changeNetworkRequestMessageSchema = v7.object({
586
628
  ...rpcRequestMessageSchema.entries,
587
- ...v6.object({
588
- method: v6.literal(changeNetworkMethodName),
629
+ ...v7.object({
630
+ method: v7.literal(changeNetworkMethodName),
589
631
  params: changeNetworkParamsSchema,
590
- id: v6.string()
632
+ id: v7.string()
591
633
  }).entries
592
634
  });
593
635
 
594
636
  // src/request/types/walletMethods/changeNetworkById.ts
595
- var v7 = __toESM(require("valibot"));
637
+ var v8 = __toESM(require("valibot"));
596
638
  var changeNetworkByIdMethodName = "wallet_changeNetworkById";
597
- var changeNetworkByIdParamsSchema = v7.object({
598
- id: v7.string()
639
+ var changeNetworkByIdParamsSchema = v8.object({
640
+ id: v8.string()
599
641
  });
600
- var changeNetworkByIdResultSchema = v7.nullish(v7.null());
601
- var changeNetworkByIdRequestMessageSchema = v7.object({
642
+ var changeNetworkByIdResultSchema = v8.nullish(v8.null());
643
+ var changeNetworkByIdRequestMessageSchema = v8.object({
602
644
  ...rpcRequestMessageSchema.entries,
603
- ...v7.object({
604
- method: v7.literal(changeNetworkByIdMethodName),
645
+ ...v8.object({
646
+ method: v8.literal(changeNetworkByIdMethodName),
605
647
  params: changeNetworkByIdParamsSchema,
606
- id: v7.string()
648
+ id: v8.string()
607
649
  }).entries
608
650
  });
609
651
 
610
652
  // src/request/types/walletMethods/common.ts
611
- var v8 = __toESM(require("valibot"));
612
- var accountActionsSchema = v8.object({
613
- read: v8.optional(v8.boolean())
653
+ var v9 = __toESM(require("valibot"));
654
+ var accountActionsSchema = v9.object({
655
+ read: v9.optional(v9.boolean())
614
656
  });
615
- var walletActionsSchema = v8.object({
616
- readNetwork: v8.optional(v8.boolean())
657
+ var walletActionsSchema = v9.object({
658
+ readNetwork: v9.optional(v9.boolean())
617
659
  });
618
- var accountPermissionSchema = v8.object({
619
- type: v8.literal("account"),
620
- resourceId: v8.string(),
621
- clientId: v8.string(),
660
+ var accountPermissionSchema = v9.object({
661
+ type: v9.literal("account"),
662
+ resourceId: v9.string(),
663
+ clientId: v9.string(),
622
664
  actions: accountActionsSchema
623
665
  });
624
- var walletPermissionSchema = v8.object({
625
- type: v8.literal("wallet"),
626
- resourceId: v8.string(),
627
- clientId: v8.string(),
666
+ var walletPermissionSchema = v9.object({
667
+ type: v9.literal("wallet"),
668
+ resourceId: v9.string(),
669
+ clientId: v9.string(),
628
670
  actions: walletActionsSchema
629
671
  });
630
- var PermissionRequestParams = v8.variant("type", [
631
- v8.object({
632
- ...v8.omit(accountPermissionSchema, ["clientId"]).entries
672
+ var PermissionRequestParams = v9.variant("type", [
673
+ v9.object({
674
+ ...v9.omit(accountPermissionSchema, ["clientId"]).entries
633
675
  }),
634
- v8.object({
635
- ...v8.omit(walletPermissionSchema, ["clientId"]).entries
676
+ v9.object({
677
+ ...v9.omit(walletPermissionSchema, ["clientId"]).entries
636
678
  })
637
679
  ]);
638
- var permission = v8.variant("type", [accountPermissionSchema, walletPermissionSchema]);
680
+ var permission = v9.variant("type", [accountPermissionSchema, walletPermissionSchema]);
639
681
 
640
682
  // src/request/types/walletMethods/connect.ts
641
- var v10 = __toESM(require("valibot"));
683
+ var v11 = __toESM(require("valibot"));
642
684
 
643
685
  // src/request/types/walletMethods/getNetwork.ts
644
- var v9 = __toESM(require("valibot"));
686
+ var v10 = __toESM(require("valibot"));
645
687
  var getNetworkMethodName = "wallet_getNetwork";
646
- var getNetworkParamsSchema = v9.nullish(v9.null());
647
- var getNetworkResultSchema = v9.object({
648
- bitcoin: v9.object({
649
- name: v9.enum(BitcoinNetworkType)
688
+ var getNetworkParamsSchema = v10.nullish(v10.null());
689
+ var getNetworkResultSchema = v10.object({
690
+ bitcoin: v10.object({
691
+ name: v10.enum(BitcoinNetworkType)
650
692
  }),
651
- stacks: v9.object({
652
- name: v9.enum(StacksNetworkType)
693
+ stacks: v10.object({
694
+ name: v10.enum(StacksNetworkType)
653
695
  }),
654
- spark: v9.object({
655
- name: v9.enum(SparkNetworkType)
696
+ spark: v10.object({
697
+ name: v10.enum(SparkNetworkType)
656
698
  })
657
699
  });
658
- var getNetworkRequestMessageSchema = v9.object({
700
+ var getNetworkRequestMessageSchema = v10.object({
659
701
  ...rpcRequestMessageSchema.entries,
660
- ...v9.object({
661
- method: v9.literal(getNetworkMethodName),
702
+ ...v10.object({
703
+ method: v10.literal(getNetworkMethodName),
662
704
  params: getNetworkParamsSchema,
663
- id: v9.string()
705
+ id: v10.string()
664
706
  }).entries
665
707
  });
666
708
 
667
709
  // src/request/types/walletMethods/connect.ts
668
710
  var connectMethodName = "wallet_connect";
669
- var connectParamsSchema = v10.nullish(
670
- v10.object({
671
- permissions: v10.optional(v10.array(PermissionRequestParams)),
672
- addresses: v10.optional(v10.array(v10.enum(AddressPurpose))),
673
- message: v10.optional(
674
- v10.pipe(v10.string(), v10.maxLength(80, "The message must not exceed 80 characters."))
711
+ var connectParamsSchema = v11.nullish(
712
+ v11.object({
713
+ permissions: v11.optional(v11.array(PermissionRequestParams)),
714
+ addresses: v11.optional(v11.array(v11.enum(AddressPurpose))),
715
+ message: v11.optional(
716
+ v11.pipe(v11.string(), v11.maxLength(80, "The message must not exceed 80 characters."))
675
717
  ),
676
- network: v10.optional(v10.enum(BitcoinNetworkType))
718
+ network: v11.optional(v11.enum(BitcoinNetworkType))
677
719
  })
678
720
  );
679
- var connectResultSchema = v10.object({
680
- id: v10.string(),
681
- addresses: v10.array(addressSchema),
721
+ var connectResultSchema = v11.object({
722
+ id: v11.string(),
723
+ addresses: v11.array(addressSchema),
682
724
  walletType: walletTypeSchema,
683
725
  network: getNetworkResultSchema
684
726
  });
685
- var connectRequestMessageSchema = v10.object({
727
+ var connectRequestMessageSchema = v11.object({
686
728
  ...rpcRequestMessageSchema.entries,
687
- ...v10.object({
688
- method: v10.literal(connectMethodName),
729
+ ...v11.object({
730
+ method: v11.literal(connectMethodName),
689
731
  params: connectParamsSchema,
690
- id: v10.string()
732
+ id: v11.string()
691
733
  }).entries
692
734
  });
693
735
 
694
736
  // src/request/types/walletMethods/disconnect.ts
695
- var v11 = __toESM(require("valibot"));
737
+ var v12 = __toESM(require("valibot"));
696
738
  var disconnectMethodName = "wallet_disconnect";
697
- var disconnectParamsSchema = v11.nullish(v11.null());
698
- var disconnectResultSchema = v11.nullish(v11.null());
699
- var disconnectRequestMessageSchema = v11.object({
739
+ var disconnectParamsSchema = v12.nullish(v12.null());
740
+ var disconnectResultSchema = v12.nullish(v12.null());
741
+ var disconnectRequestMessageSchema = v12.object({
700
742
  ...rpcRequestMessageSchema.entries,
701
- ...v11.object({
702
- method: v11.literal(disconnectMethodName),
743
+ ...v12.object({
744
+ method: v12.literal(disconnectMethodName),
703
745
  params: disconnectParamsSchema,
704
- id: v11.string()
746
+ id: v12.string()
705
747
  }).entries
706
748
  });
707
749
 
708
750
  // src/request/types/walletMethods/getAccount.ts
709
- var v12 = __toESM(require("valibot"));
751
+ var v13 = __toESM(require("valibot"));
710
752
  var getAccountMethodName = "wallet_getAccount";
711
- var getAccountParamsSchema = v12.nullish(v12.null());
712
- var getAccountResultSchema = v12.object({
713
- id: v12.string(),
714
- addresses: v12.array(addressSchema),
753
+ var getAccountParamsSchema = v13.nullish(v13.null());
754
+ var getAccountResultSchema = v13.object({
755
+ id: v13.string(),
756
+ addresses: v13.array(addressSchema),
715
757
  walletType: walletTypeSchema,
716
758
  network: getNetworkResultSchema
717
759
  });
718
- var getAccountRequestMessageSchema = v12.object({
760
+ var getAccountRequestMessageSchema = v13.object({
719
761
  ...rpcRequestMessageSchema.entries,
720
- ...v12.object({
721
- method: v12.literal(getAccountMethodName),
762
+ ...v13.object({
763
+ method: v13.literal(getAccountMethodName),
722
764
  params: getAccountParamsSchema,
723
- id: v12.string()
765
+ id: v13.string()
724
766
  }).entries
725
767
  });
726
768
 
727
769
  // src/request/types/walletMethods/getCurrentPermissions.ts
728
- var v13 = __toESM(require("valibot"));
770
+ var v14 = __toESM(require("valibot"));
729
771
  var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
730
- var getCurrentPermissionsParamsSchema = v13.nullish(v13.null());
731
- var getCurrentPermissionsResultSchema = v13.array(permission);
732
- var getCurrentPermissionsRequestMessageSchema = v13.object({
772
+ var getCurrentPermissionsParamsSchema = v14.nullish(v14.null());
773
+ var getCurrentPermissionsResultSchema = v14.array(permission);
774
+ var getCurrentPermissionsRequestMessageSchema = v14.object({
733
775
  ...rpcRequestMessageSchema.entries,
734
- ...v13.object({
735
- method: v13.literal(getCurrentPermissionsMethodName),
776
+ ...v14.object({
777
+ method: v14.literal(getCurrentPermissionsMethodName),
736
778
  params: getCurrentPermissionsParamsSchema,
737
- id: v13.string()
779
+ id: v14.string()
738
780
  }).entries
739
781
  });
740
782
 
741
783
  // src/request/types/walletMethods/getWalletType.ts
742
- var v14 = __toESM(require("valibot"));
784
+ var v15 = __toESM(require("valibot"));
743
785
  var getWalletTypeMethodName = "wallet_getWalletType";
744
- var getWalletTypeParamsSchema = v14.nullish(v14.null());
786
+ var getWalletTypeParamsSchema = v15.nullish(v15.null());
745
787
  var getWalletTypeResultSchema = walletTypeSchema;
746
- var getWalletTypeRequestMessageSchema = v14.object({
788
+ var getWalletTypeRequestMessageSchema = v15.object({
747
789
  ...rpcRequestMessageSchema.entries,
748
- ...v14.object({
749
- method: v14.literal(getWalletTypeMethodName),
790
+ ...v15.object({
791
+ method: v15.literal(getWalletTypeMethodName),
750
792
  params: getWalletTypeParamsSchema,
751
- id: v14.string()
793
+ id: v15.string()
752
794
  }).entries
753
795
  });
754
796
 
755
797
  // src/request/types/walletMethods/openBridge.ts
756
- var v15 = __toESM(require("valibot"));
798
+ var v16 = __toESM(require("valibot"));
757
799
  var openBridgeMethodName = "wallet_openBridge";
758
- var openBridgeParamsSchema = v15.object({
759
- fromAsset: v15.string(),
760
- toAsset: v15.string()
800
+ var openBridgeParamsSchema = v16.object({
801
+ fromAsset: v16.string(),
802
+ toAsset: v16.string()
761
803
  });
762
- var openBridgeResultSchema = v15.nullish(v15.null());
763
- var openBridgeRequestMessageSchema = v15.object({
804
+ var openBridgeResultSchema = v16.nullish(v16.null());
805
+ var openBridgeRequestMessageSchema = v16.object({
764
806
  ...rpcRequestMessageSchema.entries,
765
- ...v15.object({
766
- method: v15.literal(openBridgeMethodName),
807
+ ...v16.object({
808
+ method: v16.literal(openBridgeMethodName),
767
809
  params: openBridgeParamsSchema,
768
- id: v15.string()
810
+ id: v16.string()
769
811
  }).entries
770
812
  });
771
813
 
772
814
  // src/request/types/walletMethods/openBuy.ts
773
- var v16 = __toESM(require("valibot"));
815
+ var v17 = __toESM(require("valibot"));
774
816
  var openBuyMethodName = "wallet_openBuy";
775
- var openBuyParamsSchema = v16.object({
776
- asset: v16.string()
817
+ var openBuyParamsSchema = v17.object({
818
+ asset: v17.string()
777
819
  });
778
- var openBuyResultSchema = v16.nullish(v16.null());
779
- var openBuyRequestMessageSchema = v16.object({
820
+ var openBuyResultSchema = v17.nullish(v17.null());
821
+ var openBuyRequestMessageSchema = v17.object({
780
822
  ...rpcRequestMessageSchema.entries,
781
- ...v16.object({
782
- method: v16.literal(openBuyMethodName),
823
+ ...v17.object({
824
+ method: v17.literal(openBuyMethodName),
783
825
  params: openBuyParamsSchema,
784
- id: v16.string()
826
+ id: v17.string()
785
827
  }).entries
786
828
  });
787
829
 
788
830
  // src/request/types/walletMethods/openReceive.ts
789
- var v17 = __toESM(require("valibot"));
831
+ var v18 = __toESM(require("valibot"));
790
832
  var openReceiveMethodName = "wallet_openReceive";
791
- var openReceiveParamsSchema = v17.object({
792
- address: v17.string()
833
+ var openReceiveParamsSchema = v18.object({
834
+ address: v18.string()
793
835
  });
794
836
  var openReceiveResultSchema = addressSchema;
795
- var openReceiveRequestMessageSchema = v17.object({
837
+ var openReceiveRequestMessageSchema = v18.object({
796
838
  ...rpcRequestMessageSchema.entries,
797
- ...v17.object({
798
- method: v17.literal(openReceiveMethodName),
839
+ ...v18.object({
840
+ method: v18.literal(openReceiveMethodName),
799
841
  params: openReceiveParamsSchema,
800
- id: v17.string()
842
+ id: v18.string()
801
843
  }).entries
802
844
  });
803
845
 
804
846
  // src/request/types/walletMethods/renouncePermissions.ts
805
- var v18 = __toESM(require("valibot"));
847
+ var v19 = __toESM(require("valibot"));
806
848
  var renouncePermissionsMethodName = "wallet_renouncePermissions";
807
- var renouncePermissionsParamsSchema = v18.nullish(v18.null());
808
- var renouncePermissionsResultSchema = v18.nullish(v18.null());
809
- var renouncePermissionsRequestMessageSchema = v18.object({
849
+ var renouncePermissionsParamsSchema = v19.nullish(v19.null());
850
+ var renouncePermissionsResultSchema = v19.nullish(v19.null());
851
+ var renouncePermissionsRequestMessageSchema = v19.object({
810
852
  ...rpcRequestMessageSchema.entries,
811
- ...v18.object({
812
- method: v18.literal(renouncePermissionsMethodName),
853
+ ...v19.object({
854
+ method: v19.literal(renouncePermissionsMethodName),
813
855
  params: renouncePermissionsParamsSchema,
814
- id: v18.string()
856
+ id: v19.string()
815
857
  }).entries
816
858
  });
817
859
 
818
860
  // src/request/types/walletMethods/requestPermissions.ts
819
- var v19 = __toESM(require("valibot"));
861
+ var v20 = __toESM(require("valibot"));
820
862
  var requestPermissionsMethodName = "wallet_requestPermissions";
821
- var requestPermissionsParamsSchema = v19.nullish(v19.array(PermissionRequestParams));
822
- var requestPermissionsResultSchema = v19.literal(true);
823
- var requestPermissionsRequestMessageSchema = v19.object({
863
+ var requestPermissionsParamsSchema = v20.nullish(v20.array(PermissionRequestParams));
864
+ var requestPermissionsResultSchema = v20.literal(true);
865
+ var requestPermissionsRequestMessageSchema = v20.object({
824
866
  ...rpcRequestMessageSchema.entries,
825
- ...v19.object({
826
- method: v19.literal(requestPermissionsMethodName),
867
+ ...v20.object({
868
+ method: v20.literal(requestPermissionsMethodName),
827
869
  params: requestPermissionsParamsSchema,
828
- id: v19.string()
870
+ id: v20.string()
871
+ }).entries
872
+ });
873
+
874
+ // src/request/types/btcMethods/getAddresses.ts
875
+ var getAddressesMethodName = "getAddresses";
876
+ var getAddressesParamsSchema = v21.object({
877
+ /**
878
+ * The purposes for which to generate addresses. See
879
+ * {@linkcode AddressPurpose} for available purposes.
880
+ */
881
+ purposes: v21.array(v21.enum(AddressPurpose)),
882
+ /**
883
+ * A message to be displayed to the user in the request prompt.
884
+ */
885
+ message: v21.optional(v21.string())
886
+ });
887
+ var getAddressesResultSchema = v21.object({
888
+ /**
889
+ * The addresses generated for the given purposes.
890
+ */
891
+ addresses: v21.array(addressSchema),
892
+ network: getNetworkResultSchema
893
+ });
894
+ var getAddressesRequestMessageSchema = v21.object({
895
+ ...rpcRequestMessageSchema.entries,
896
+ ...v21.object({
897
+ method: v21.literal(getAddressesMethodName),
898
+ params: getAddressesParamsSchema,
899
+ id: v21.string()
900
+ }).entries
901
+ });
902
+
903
+ // src/request/types/btcMethods/getBalance.ts
904
+ var v22 = __toESM(require("valibot"));
905
+ var getBalanceMethodName = "getBalance";
906
+ var getBalanceParamsSchema = v22.nullish(v22.null());
907
+ var getBalanceResultSchema = v22.object({
908
+ /**
909
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
910
+ * messages not supporting bigint
911
+ * (https://issues.chromium.org/issues/40116184).
912
+ */
913
+ confirmed: v22.string(),
914
+ /**
915
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
916
+ * messages not supporting bigint
917
+ * (https://issues.chromium.org/issues/40116184).
918
+ */
919
+ unconfirmed: v22.string(),
920
+ /**
921
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
922
+ * sats. Using a string due to chrome messages not supporting bigint
923
+ * (https://issues.chromium.org/issues/40116184).
924
+ */
925
+ total: v22.string()
926
+ });
927
+ var getBalanceRequestMessageSchema = v22.object({
928
+ ...rpcRequestMessageSchema.entries,
929
+ ...v22.object({
930
+ method: v22.literal(getBalanceMethodName),
931
+ id: v22.string()
829
932
  }).entries
830
933
  });
831
934
 
832
- // src/request/types/btcMethods.ts
935
+ // src/request/types/btcMethods/getInfo.ts
936
+ var v23 = __toESM(require("valibot"));
833
937
  var ProviderPlatform = /* @__PURE__ */ ((ProviderPlatform2) => {
834
938
  ProviderPlatform2["Web"] = "web";
835
939
  ProviderPlatform2["Mobile"] = "mobile";
836
940
  return ProviderPlatform2;
837
941
  })(ProviderPlatform || {});
838
942
  var getInfoMethodName = "getInfo";
839
- var getInfoParamsSchema = v20.nullish(v20.null());
840
- var getInfoResultSchema = v20.object({
943
+ var getInfoParamsSchema = v23.nullish(v23.null());
944
+ var getInfoResultSchema = v23.object({
841
945
  /**
842
946
  * Version of the wallet.
843
947
  */
844
- version: v20.string(),
948
+ version: v23.string(),
845
949
  /**
846
950
  * The platform the wallet is running on (web or mobile).
847
951
  */
848
- platform: v20.optional(v20.enum(ProviderPlatform)),
952
+ platform: v23.optional(v23.enum(ProviderPlatform)),
849
953
  /**
850
954
  * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
851
955
  */
852
- methods: v20.optional(v20.array(v20.string())),
956
+ methods: v23.optional(v23.array(v23.string())),
853
957
  /**
854
958
  * List of WBIP standards supported by the wallet. Not currently used.
855
959
  */
856
- supports: v20.array(v20.string())
960
+ supports: v23.array(v23.string())
857
961
  });
858
- var getInfoRequestMessageSchema = v20.object({
962
+ var getInfoRequestMessageSchema = v23.object({
859
963
  ...rpcRequestMessageSchema.entries,
860
- ...v20.object({
861
- method: v20.literal(getInfoMethodName),
964
+ ...v23.object({
965
+ method: v23.literal(getInfoMethodName),
862
966
  params: getInfoParamsSchema,
863
- id: v20.string()
967
+ id: v23.string()
864
968
  }).entries
865
969
  });
866
- var getAddressesMethodName = "getAddresses";
867
- var getAddressesParamsSchema = v20.object({
868
- /**
869
- * The purposes for which to generate addresses. See
870
- * {@linkcode AddressPurpose} for available purposes.
871
- */
872
- purposes: v20.array(v20.enum(AddressPurpose)),
970
+
971
+ // src/request/types/btcMethods/sendTransfer.ts
972
+ var v24 = __toESM(require("valibot"));
973
+ var sendTransferMethodName = "sendTransfer";
974
+ var sendTransferParamsSchema = v24.object({
873
975
  /**
874
- * A message to be displayed to the user in the request prompt.
976
+ * Array of recipients to send to.
977
+ * The amount to send to each recipient is in satoshis.
875
978
  */
876
- message: v20.optional(v20.string())
979
+ recipients: v24.array(
980
+ v24.object({
981
+ address: v24.string(),
982
+ amount: v24.number()
983
+ })
984
+ )
877
985
  });
878
- var getAddressesResultSchema = v20.object({
986
+ var sendTransferResultSchema = v24.object({
879
987
  /**
880
- * The addresses generated for the given purposes.
988
+ * The transaction id as a hex-encoded string.
881
989
  */
882
- addresses: v20.array(addressSchema),
883
- network: getNetworkResultSchema
990
+ txid: v24.string()
884
991
  });
885
- var getAddressesRequestMessageSchema = v20.object({
992
+ var sendTransferRequestMessageSchema = v24.object({
886
993
  ...rpcRequestMessageSchema.entries,
887
- ...v20.object({
888
- method: v20.literal(getAddressesMethodName),
889
- params: getAddressesParamsSchema,
890
- id: v20.string()
994
+ ...v24.object({
995
+ method: v24.literal(sendTransferMethodName),
996
+ params: sendTransferParamsSchema,
997
+ id: v24.string()
891
998
  }).entries
892
999
  });
1000
+
1001
+ // src/request/types/btcMethods/signMessage.ts
1002
+ var v25 = __toESM(require("valibot"));
893
1003
  var signMessageMethodName = "signMessage";
894
- var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
895
- MessageSigningProtocols2["ECDSA"] = "ECDSA";
896
- MessageSigningProtocols2["BIP322"] = "BIP322";
897
- return MessageSigningProtocols2;
898
- })(MessageSigningProtocols || {});
899
- var signMessageParamsSchema = v20.object({
1004
+ var signMessageParamsSchema = v25.object({
900
1005
  /**
901
1006
  * The address used for signing.
902
1007
  **/
903
- address: v20.string(),
1008
+ address: v25.string(),
904
1009
  /**
905
1010
  * The message to sign.
906
1011
  **/
907
- message: v20.string(),
1012
+ message: v25.string(),
908
1013
  /**
909
1014
  * The protocol to use for signing the message.
910
1015
  */
911
- protocol: v20.optional(v20.enum(MessageSigningProtocols))
1016
+ protocol: v25.optional(v25.enum(MessageSigningProtocols))
912
1017
  });
913
- var signMessageResultSchema = v20.object({
1018
+ var signMessageResultSchema = v25.object({
914
1019
  /**
915
1020
  * The signature of the message.
916
1021
  */
917
- signature: v20.string(),
1022
+ signature: v25.string(),
918
1023
  /**
919
1024
  * hash of the message.
920
1025
  */
921
- messageHash: v20.string(),
1026
+ messageHash: v25.string(),
922
1027
  /**
923
1028
  * The address used for signing.
924
1029
  */
925
- address: v20.string(),
1030
+ address: v25.string(),
926
1031
  /**
927
1032
  * The protocol to use for signing the message.
928
1033
  */
929
- protocol: v20.enum(MessageSigningProtocols)
1034
+ protocol: v25.enum(MessageSigningProtocols)
930
1035
  });
931
- var signMessageRequestMessageSchema = v20.object({
1036
+ var signMessageRequestMessageSchema = v25.object({
932
1037
  ...rpcRequestMessageSchema.entries,
933
- ...v20.object({
934
- method: v20.literal(signMessageMethodName),
1038
+ ...v25.object({
1039
+ method: v25.literal(signMessageMethodName),
935
1040
  params: signMessageParamsSchema,
936
- id: v20.string()
1041
+ id: v25.string()
937
1042
  }).entries
938
1043
  });
939
- var sendTransferMethodName = "sendTransfer";
940
- var sendTransferParamsSchema = v20.object({
941
- /**
942
- * Array of recipients to send to.
943
- * The amount to send to each recipient is in satoshis.
944
- */
945
- recipients: v20.array(
946
- v20.object({
947
- address: v20.string(),
948
- amount: v20.number()
949
- })
950
- )
951
- });
952
- var sendTransferResultSchema = v20.object({
953
- /**
954
- * The transaction id as a hex-encoded string.
955
- */
956
- txid: v20.string()
957
- });
958
- var sendTransferRequestMessageSchema = v20.object({
1044
+
1045
+ // src/request/types/btcMethods/signMultipleMessages.ts
1046
+ var v26 = __toESM(require("valibot"));
1047
+ var signMultipleMessagesMethodName = "signMultipleMessages";
1048
+ var signMultipleMessagesParamsSchema = v26.array(
1049
+ v26.object({
1050
+ /**
1051
+ * The address used for signing.
1052
+ **/
1053
+ address: v26.string(),
1054
+ /**
1055
+ * The message to sign.
1056
+ **/
1057
+ message: v26.string(),
1058
+ /**
1059
+ * The protocol to use for signing the message.
1060
+ */
1061
+ protocol: v26.optional(v26.enum(MessageSigningProtocols))
1062
+ })
1063
+ );
1064
+ var signMultipleMessagesResultSchema = v26.array(
1065
+ v26.object({
1066
+ /**
1067
+ * The signature of the message.
1068
+ */
1069
+ signature: v26.string(),
1070
+ /**
1071
+ * The original message which was signed.
1072
+ */
1073
+ message: v26.string(),
1074
+ /**
1075
+ * Hash of the message.
1076
+ */
1077
+ messageHash: v26.string(),
1078
+ /**
1079
+ * The address used for signing.
1080
+ */
1081
+ address: v26.string(),
1082
+ /**
1083
+ * The protocol to use for signing the message.
1084
+ */
1085
+ protocol: v26.enum(MessageSigningProtocols)
1086
+ })
1087
+ );
1088
+ var signMultipleMessagesRequestMessageSchema = v26.object({
959
1089
  ...rpcRequestMessageSchema.entries,
960
- ...v20.object({
961
- method: v20.literal(sendTransferMethodName),
962
- params: sendTransferParamsSchema,
963
- id: v20.string()
1090
+ ...v26.object({
1091
+ method: v26.literal(signMultipleMessagesMethodName),
1092
+ params: signMultipleMessagesParamsSchema,
1093
+ id: v26.string()
964
1094
  }).entries
965
1095
  });
1096
+
1097
+ // src/request/types/btcMethods/signPSBT.ts
1098
+ var v27 = __toESM(require("valibot"));
966
1099
  var signPsbtMethodName = "signPsbt";
967
- var signPsbtParamsSchema = v20.object({
1100
+ var signPsbtParamsSchema = v27.object({
968
1101
  /**
969
1102
  * The base64 encoded PSBT to sign.
970
1103
  */
971
- psbt: v20.string(),
1104
+ psbt: v27.string(),
972
1105
  /**
973
1106
  * The inputs to sign.
974
1107
  * The key is the address and the value is an array of indexes of the inputs to sign.
975
1108
  */
976
- signInputs: v20.optional(v20.record(v20.string(), v20.array(v20.number()))),
1109
+ signInputs: v27.optional(v27.record(v27.string(), v27.array(v27.number()))),
977
1110
  /**
978
1111
  * Whether to broadcast the transaction after signing.
979
1112
  **/
980
- broadcast: v20.optional(v20.boolean())
1113
+ broadcast: v27.optional(v27.boolean())
981
1114
  });
982
- var signPsbtResultSchema = v20.object({
1115
+ var signPsbtResultSchema = v27.object({
983
1116
  /**
984
1117
  * The base64 encoded PSBT after signing.
985
1118
  */
986
- psbt: v20.string(),
1119
+ psbt: v27.string(),
987
1120
  /**
988
1121
  * The transaction id as a hex-encoded string.
989
1122
  * This is only returned if the transaction was broadcast.
990
1123
  **/
991
- txid: v20.optional(v20.string())
1124
+ txid: v27.optional(v27.string())
992
1125
  });
993
- var signPsbtRequestMessageSchema = v20.object({
1126
+ var signPsbtRequestMessageSchema = v27.object({
994
1127
  ...rpcRequestMessageSchema.entries,
995
- ...v20.object({
996
- method: v20.literal(signPsbtMethodName),
1128
+ ...v27.object({
1129
+ method: v27.literal(signPsbtMethodName),
997
1130
  params: signPsbtParamsSchema,
998
- id: v20.string()
999
- }).entries
1000
- });
1001
- var getAccountsMethodName = "getAccounts";
1002
- var getAccountsParamsSchema = v20.object({
1003
- /**
1004
- * The purposes for which to generate addresses. See
1005
- * {@linkcode AddressPurpose} for available purposes.
1006
- */
1007
- purposes: v20.array(v20.enum(AddressPurpose)),
1008
- /**
1009
- * A message to be displayed to the user in the request prompt.
1010
- */
1011
- message: v20.optional(v20.string())
1012
- });
1013
- var getAccountsResultSchema = v20.array(
1014
- v20.object({
1015
- ...addressSchema.entries,
1016
- ...v20.object({
1017
- walletType: walletTypeSchema
1018
- }).entries
1019
- })
1020
- );
1021
- var getAccountsRequestMessageSchema = v20.object({
1022
- ...rpcRequestMessageSchema.entries,
1023
- ...v20.object({
1024
- method: v20.literal(getAccountsMethodName),
1025
- params: getAccountsParamsSchema,
1026
- id: v20.string()
1027
- }).entries
1028
- });
1029
- var getBalanceMethodName = "getBalance";
1030
- var getBalanceParamsSchema = v20.nullish(v20.null());
1031
- var getBalanceResultSchema = v20.object({
1032
- /**
1033
- * The confirmed balance of the wallet in sats. Using a string due to chrome
1034
- * messages not supporting bigint
1035
- * (https://issues.chromium.org/issues/40116184).
1036
- */
1037
- confirmed: v20.string(),
1038
- /**
1039
- * The unconfirmed balance of the wallet in sats. Using a string due to chrome
1040
- * messages not supporting bigint
1041
- * (https://issues.chromium.org/issues/40116184).
1042
- */
1043
- unconfirmed: v20.string(),
1044
- /**
1045
- * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
1046
- * sats. Using a string due to chrome messages not supporting bigint
1047
- * (https://issues.chromium.org/issues/40116184).
1048
- */
1049
- total: v20.string()
1050
- });
1051
- var getBalanceRequestMessageSchema = v20.object({
1052
- ...rpcRequestMessageSchema.entries,
1053
- ...v20.object({
1054
- method: v20.literal(getBalanceMethodName),
1055
- id: v20.string()
1131
+ id: v27.string()
1056
1132
  }).entries
1057
1133
  });
1058
1134
 
1059
1135
  // src/request/types/ordinalsMethods.ts
1060
- var v21 = __toESM(require("valibot"));
1136
+ var v28 = __toESM(require("valibot"));
1061
1137
  var getInscriptionsMethodName = "ord_getInscriptions";
1062
- var getInscriptionsParamsSchema = v21.object({
1063
- offset: v21.number(),
1064
- limit: v21.number()
1065
- });
1066
- var getInscriptionsResultSchema = v21.object({
1067
- total: v21.number(),
1068
- limit: v21.number(),
1069
- offset: v21.number(),
1070
- inscriptions: v21.array(
1071
- v21.object({
1072
- inscriptionId: v21.string(),
1073
- inscriptionNumber: v21.string(),
1074
- address: v21.string(),
1075
- collectionName: v21.optional(v21.string()),
1076
- postage: v21.string(),
1077
- contentLength: v21.string(),
1078
- contentType: v21.string(),
1079
- timestamp: v21.number(),
1080
- offset: v21.number(),
1081
- genesisTransaction: v21.string(),
1082
- output: v21.string()
1138
+ var getInscriptionsParamsSchema = v28.object({
1139
+ offset: v28.number(),
1140
+ limit: v28.number()
1141
+ });
1142
+ var getInscriptionsResultSchema = v28.object({
1143
+ total: v28.number(),
1144
+ limit: v28.number(),
1145
+ offset: v28.number(),
1146
+ inscriptions: v28.array(
1147
+ v28.object({
1148
+ inscriptionId: v28.string(),
1149
+ inscriptionNumber: v28.string(),
1150
+ address: v28.string(),
1151
+ collectionName: v28.optional(v28.string()),
1152
+ postage: v28.string(),
1153
+ contentLength: v28.string(),
1154
+ contentType: v28.string(),
1155
+ timestamp: v28.number(),
1156
+ offset: v28.number(),
1157
+ genesisTransaction: v28.string(),
1158
+ output: v28.string()
1083
1159
  })
1084
1160
  )
1085
1161
  });
1086
- var getInscriptionsRequestMessageSchema = v21.object({
1162
+ var getInscriptionsRequestMessageSchema = v28.object({
1087
1163
  ...rpcRequestMessageSchema.entries,
1088
- ...v21.object({
1089
- method: v21.literal(getInscriptionsMethodName),
1164
+ ...v28.object({
1165
+ method: v28.literal(getInscriptionsMethodName),
1090
1166
  params: getInscriptionsParamsSchema,
1091
- id: v21.string()
1167
+ id: v28.string()
1092
1168
  }).entries
1093
1169
  });
1094
1170
  var sendInscriptionsMethodName = "ord_sendInscriptions";
1095
- var sendInscriptionsParamsSchema = v21.object({
1096
- transfers: v21.array(
1097
- v21.object({
1098
- address: v21.string(),
1099
- inscriptionId: v21.string()
1171
+ var sendInscriptionsParamsSchema = v28.object({
1172
+ transfers: v28.array(
1173
+ v28.object({
1174
+ address: v28.string(),
1175
+ inscriptionId: v28.string()
1100
1176
  })
1101
1177
  )
1102
1178
  });
1103
- var sendInscriptionsResultSchema = v21.object({
1104
- txid: v21.string()
1179
+ var sendInscriptionsResultSchema = v28.object({
1180
+ txid: v28.string()
1105
1181
  });
1106
- var sendInscriptionsRequestMessageSchema = v21.object({
1182
+ var sendInscriptionsRequestMessageSchema = v28.object({
1107
1183
  ...rpcRequestMessageSchema.entries,
1108
- ...v21.object({
1109
- method: v21.literal(sendInscriptionsMethodName),
1184
+ ...v28.object({
1185
+ method: v28.literal(sendInscriptionsMethodName),
1110
1186
  params: sendInscriptionsParamsSchema,
1111
- id: v21.string()
1187
+ id: v28.string()
1112
1188
  }).entries
1113
1189
  });
1114
1190
 
1115
1191
  // src/request/types/runesMethods/etch.ts
1116
- var v22 = __toESM(require("valibot"));
1192
+ var v29 = __toESM(require("valibot"));
1117
1193
  var runesEtchMethodName = "runes_etch";
1118
- var etchTermsSchema = v22.object({
1119
- amount: v22.string(),
1120
- cap: v22.string(),
1121
- heightStart: v22.optional(v22.string()),
1122
- heightEnd: v22.optional(v22.string()),
1123
- offsetStart: v22.optional(v22.string()),
1124
- offsetEnd: v22.optional(v22.string())
1125
- });
1126
- var inscriptionDetailsSchema = v22.object({
1127
- contentType: v22.string(),
1128
- contentBase64: v22.string()
1129
- });
1130
- var runesEtchParamsSchema = v22.object({
1131
- runeName: v22.string(),
1132
- divisibility: v22.optional(v22.number()),
1133
- symbol: v22.optional(v22.string()),
1134
- premine: v22.optional(v22.string()),
1135
- isMintable: v22.boolean(),
1136
- delegateInscriptionId: v22.optional(v22.string()),
1137
- destinationAddress: v22.string(),
1138
- refundAddress: v22.string(),
1139
- feeRate: v22.number(),
1140
- appServiceFee: v22.optional(v22.number()),
1141
- appServiceFeeAddress: v22.optional(v22.string()),
1142
- terms: v22.optional(etchTermsSchema),
1143
- inscriptionDetails: v22.optional(inscriptionDetailsSchema),
1144
- network: v22.optional(v22.enum(BitcoinNetworkType))
1145
- });
1146
- var runesEtchResultSchema = v22.object({
1147
- orderId: v22.string(),
1148
- fundTransactionId: v22.string(),
1149
- fundingAddress: v22.string()
1150
- });
1151
- var runesEtchRequestMessageSchema = v22.object({
1194
+ var etchTermsSchema = v29.object({
1195
+ amount: v29.string(),
1196
+ cap: v29.string(),
1197
+ heightStart: v29.optional(v29.string()),
1198
+ heightEnd: v29.optional(v29.string()),
1199
+ offsetStart: v29.optional(v29.string()),
1200
+ offsetEnd: v29.optional(v29.string())
1201
+ });
1202
+ var inscriptionDetailsSchema = v29.object({
1203
+ contentType: v29.string(),
1204
+ contentBase64: v29.string()
1205
+ });
1206
+ var runesEtchParamsSchema = v29.object({
1207
+ runeName: v29.string(),
1208
+ divisibility: v29.optional(v29.number()),
1209
+ symbol: v29.optional(v29.string()),
1210
+ premine: v29.optional(v29.string()),
1211
+ isMintable: v29.boolean(),
1212
+ delegateInscriptionId: v29.optional(v29.string()),
1213
+ destinationAddress: v29.string(),
1214
+ refundAddress: v29.string(),
1215
+ feeRate: v29.number(),
1216
+ appServiceFee: v29.optional(v29.number()),
1217
+ appServiceFeeAddress: v29.optional(v29.string()),
1218
+ terms: v29.optional(etchTermsSchema),
1219
+ inscriptionDetails: v29.optional(inscriptionDetailsSchema),
1220
+ network: v29.optional(v29.enum(BitcoinNetworkType))
1221
+ });
1222
+ var runesEtchResultSchema = v29.object({
1223
+ orderId: v29.string(),
1224
+ fundTransactionId: v29.string(),
1225
+ fundingAddress: v29.string()
1226
+ });
1227
+ var runesEtchRequestMessageSchema = v29.object({
1152
1228
  ...rpcRequestMessageSchema.entries,
1153
- ...v22.object({
1154
- method: v22.literal(runesEtchMethodName),
1229
+ ...v29.object({
1230
+ method: v29.literal(runesEtchMethodName),
1155
1231
  params: runesEtchParamsSchema,
1156
- id: v22.string()
1232
+ id: v29.string()
1157
1233
  }).entries
1158
1234
  });
1159
1235
 
1160
1236
  // src/request/types/runesMethods/getBalance.ts
1161
- var v23 = __toESM(require("valibot"));
1237
+ var v30 = __toESM(require("valibot"));
1162
1238
  var runesGetBalanceMethodName = "runes_getBalance";
1163
- var runesGetBalanceParamsSchema = v23.nullish(v23.null());
1164
- var runesGetBalanceResultSchema = v23.object({
1165
- balances: v23.array(
1166
- v23.object({
1167
- runeName: v23.string(),
1168
- amount: v23.string(),
1169
- divisibility: v23.number(),
1170
- symbol: v23.string(),
1171
- inscriptionId: v23.nullish(v23.string()),
1172
- spendableBalance: v23.string()
1239
+ var runesGetBalanceParamsSchema = v30.nullish(v30.null());
1240
+ var runesGetBalanceResultSchema = v30.object({
1241
+ balances: v30.array(
1242
+ v30.object({
1243
+ runeName: v30.string(),
1244
+ amount: v30.string(),
1245
+ divisibility: v30.number(),
1246
+ symbol: v30.string(),
1247
+ inscriptionId: v30.nullish(v30.string()),
1248
+ spendableBalance: v30.string()
1173
1249
  })
1174
1250
  )
1175
1251
  });
1176
- var runesGetBalanceRequestMessageSchema = v23.object({
1252
+ var runesGetBalanceRequestMessageSchema = v30.object({
1177
1253
  ...rpcRequestMessageSchema.entries,
1178
- ...v23.object({
1179
- method: v23.literal(runesGetBalanceMethodName),
1254
+ ...v30.object({
1255
+ method: v30.literal(runesGetBalanceMethodName),
1180
1256
  params: runesGetBalanceParamsSchema,
1181
- id: v23.string()
1257
+ id: v30.string()
1182
1258
  }).entries
1183
1259
  });
1184
1260
 
1185
1261
  // src/request/types/runesMethods/mint.ts
1186
- var v24 = __toESM(require("valibot"));
1262
+ var v31 = __toESM(require("valibot"));
1187
1263
  var runesMintMethodName = "runes_mint";
1188
- var runesMintParamsSchema = v24.object({
1189
- appServiceFee: v24.optional(v24.number()),
1190
- appServiceFeeAddress: v24.optional(v24.string()),
1191
- destinationAddress: v24.string(),
1192
- feeRate: v24.number(),
1193
- refundAddress: v24.string(),
1194
- repeats: v24.number(),
1195
- runeName: v24.string(),
1196
- network: v24.optional(v24.enum(BitcoinNetworkType))
1197
- });
1198
- var runesMintResultSchema = v24.object({
1199
- orderId: v24.string(),
1200
- fundTransactionId: v24.string(),
1201
- fundingAddress: v24.string()
1202
- });
1203
- var runesMintRequestMessageSchema = v24.object({
1264
+ var runesMintParamsSchema = v31.object({
1265
+ appServiceFee: v31.optional(v31.number()),
1266
+ appServiceFeeAddress: v31.optional(v31.string()),
1267
+ destinationAddress: v31.string(),
1268
+ feeRate: v31.number(),
1269
+ refundAddress: v31.string(),
1270
+ repeats: v31.number(),
1271
+ runeName: v31.string(),
1272
+ network: v31.optional(v31.enum(BitcoinNetworkType))
1273
+ });
1274
+ var runesMintResultSchema = v31.object({
1275
+ orderId: v31.string(),
1276
+ fundTransactionId: v31.string(),
1277
+ fundingAddress: v31.string()
1278
+ });
1279
+ var runesMintRequestMessageSchema = v31.object({
1204
1280
  ...rpcRequestMessageSchema.entries,
1205
- ...v24.object({
1206
- method: v24.literal(runesMintMethodName),
1281
+ ...v31.object({
1282
+ method: v31.literal(runesMintMethodName),
1207
1283
  params: runesMintParamsSchema,
1208
- id: v24.string()
1284
+ id: v31.string()
1209
1285
  }).entries
1210
1286
  });
1211
1287
 
1212
1288
  // src/request/types/runesMethods/transfer.ts
1213
- var v25 = __toESM(require("valibot"));
1289
+ var v32 = __toESM(require("valibot"));
1214
1290
  var runesTransferMethodName = "runes_transfer";
1215
- var runesTransferParamsSchema = v25.object({
1216
- recipients: v25.array(
1217
- v25.object({
1218
- runeName: v25.string(),
1219
- amount: v25.string(),
1220
- address: v25.string()
1291
+ var runesTransferParamsSchema = v32.object({
1292
+ recipients: v32.array(
1293
+ v32.object({
1294
+ runeName: v32.string(),
1295
+ amount: v32.string(),
1296
+ address: v32.string()
1221
1297
  })
1222
1298
  )
1223
1299
  });
1224
- var runesTransferResultSchema = v25.object({
1225
- txid: v25.string()
1300
+ var runesTransferResultSchema = v32.object({
1301
+ txid: v32.string()
1226
1302
  });
1227
- var runesTransferRequestMessageSchema = v25.object({
1303
+ var runesTransferRequestMessageSchema = v32.object({
1228
1304
  ...rpcRequestMessageSchema.entries,
1229
- ...v25.object({
1230
- method: v25.literal(runesTransferMethodName),
1305
+ ...v32.object({
1306
+ method: v32.literal(runesTransferMethodName),
1231
1307
  params: runesTransferParamsSchema,
1232
- id: v25.string()
1308
+ id: v32.string()
1233
1309
  }).entries
1234
1310
  });
1235
1311
 
1236
1312
  // src/request/types/sparkMethods/flashnetMethods/clawbackFunds.ts
1237
- var v26 = __toESM(require("valibot"));
1313
+ var v33 = __toESM(require("valibot"));
1238
1314
  var sparkFlashnetClawbackFundsMethodName = "spark_flashnet_clawbackFunds";
1239
- var sparkFlashnetClawbackFundsParamsSchema = v26.object({
1240
- sparkTransferId: v26.string(),
1241
- lpIdentityPublicKey: v26.string()
1242
- });
1243
- var sparkFlashnetClawbackFundsResultSchema = v26.object({
1244
- requestId: v26.string(),
1245
- accepted: v26.boolean(),
1246
- internalRequestId: v26.optional(v26.string()),
1247
- sparkStatusTrackingId: v26.optional(v26.string()),
1248
- error: v26.optional(v26.string())
1249
- });
1250
- var sparkFlashnetClawbackFundsRequestMessageSchema = v26.object({
1315
+ var sparkFlashnetClawbackFundsParamsSchema = v33.object({
1316
+ sparkTransferId: v33.string(),
1317
+ lpIdentityPublicKey: v33.string()
1318
+ });
1319
+ var sparkFlashnetClawbackFundsResultSchema = v33.object({
1320
+ requestId: v33.string(),
1321
+ accepted: v33.boolean(),
1322
+ internalRequestId: v33.optional(v33.string()),
1323
+ sparkStatusTrackingId: v33.optional(v33.string()),
1324
+ error: v33.optional(v33.string())
1325
+ });
1326
+ var sparkFlashnetClawbackFundsRequestMessageSchema = v33.object({
1251
1327
  ...rpcRequestMessageSchema.entries,
1252
- ...v26.object({
1253
- method: v26.literal(sparkFlashnetClawbackFundsMethodName),
1328
+ ...v33.object({
1329
+ method: v33.literal(sparkFlashnetClawbackFundsMethodName),
1254
1330
  params: sparkFlashnetClawbackFundsParamsSchema,
1255
- id: v26.string()
1331
+ id: v33.string()
1256
1332
  }).entries
1257
1333
  });
1258
1334
 
1259
1335
  // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
1260
- var v27 = __toESM(require("valibot"));
1336
+ var v34 = __toESM(require("valibot"));
1261
1337
  var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
1262
- var sparkFlashnetExecuteRouteSwapParamsSchema = v27.object({
1263
- hops: v27.array(
1264
- v27.object({
1265
- poolId: v27.string(),
1266
- assetInAddress: v27.string(),
1267
- assetOutAddress: v27.string(),
1268
- hopIntegratorFeeRateBps: v27.optional(v27.number())
1338
+ var sparkFlashnetExecuteRouteSwapParamsSchema = v34.object({
1339
+ hops: v34.array(
1340
+ v34.object({
1341
+ poolId: v34.string(),
1342
+ assetInAddress: v34.string(),
1343
+ assetOutAddress: v34.string(),
1344
+ hopIntegratorFeeRateBps: v34.optional(v34.number())
1269
1345
  })
1270
1346
  ),
1271
- initialAssetAddress: v27.string(),
1272
- inputAmount: v27.string(),
1273
- maxRouteSlippageBps: v27.string(),
1274
- minAmountOut: v27.optional(v27.string()),
1275
- integratorFeeRateBps: v27.optional(v27.number()),
1276
- integratorPublicKey: v27.optional(v27.string())
1277
- });
1278
- var sparkFlashnetExecuteRouteSwapResultSchema = v27.object({
1279
- requestId: v27.string(),
1280
- accepted: v27.boolean(),
1281
- outputAmount: v27.string(),
1282
- executionPrice: v27.string(),
1283
- finalOutboundTransferId: v27.string(),
1284
- error: v27.optional(v27.string())
1285
- });
1286
- var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v27.object({
1347
+ initialAssetAddress: v34.string(),
1348
+ inputAmount: v34.string(),
1349
+ maxRouteSlippageBps: v34.string(),
1350
+ minAmountOut: v34.optional(v34.string()),
1351
+ integratorFeeRateBps: v34.optional(v34.number()),
1352
+ integratorPublicKey: v34.optional(v34.string())
1353
+ });
1354
+ var sparkFlashnetExecuteRouteSwapResultSchema = v34.object({
1355
+ requestId: v34.string(),
1356
+ accepted: v34.boolean(),
1357
+ outputAmount: v34.string(),
1358
+ executionPrice: v34.string(),
1359
+ finalOutboundTransferId: v34.string(),
1360
+ error: v34.optional(v34.string())
1361
+ });
1362
+ var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v34.object({
1287
1363
  ...rpcRequestMessageSchema.entries,
1288
- ...v27.object({
1289
- method: v27.literal(sparkFlashnetExecuteRouteSwapMethodName),
1364
+ ...v34.object({
1365
+ method: v34.literal(sparkFlashnetExecuteRouteSwapMethodName),
1290
1366
  params: sparkFlashnetExecuteRouteSwapParamsSchema,
1291
- id: v27.string()
1367
+ id: v34.string()
1292
1368
  }).entries
1293
1369
  });
1294
1370
 
1295
1371
  // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
1296
- var v28 = __toESM(require("valibot"));
1372
+ var v35 = __toESM(require("valibot"));
1297
1373
  var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
1298
- var sparkFlashnetExecuteSwapParamsSchema = v28.object({
1299
- poolId: v28.string(),
1300
- assetInAddress: v28.string(),
1301
- assetOutAddress: v28.string(),
1302
- amountIn: v28.string(),
1303
- maxSlippageBps: v28.number(),
1304
- minAmountOut: v28.optional(v28.string()),
1305
- integratorFeeRateBps: v28.optional(v28.number()),
1306
- integratorPublicKey: v28.optional(v28.string())
1307
- });
1308
- var sparkFlashnetExecuteSwapResultSchema = v28.object({
1309
- requestId: v28.string(),
1310
- accepted: v28.boolean(),
1311
- amountOut: v28.optional(v28.string()),
1312
- feeAmount: v28.optional(v28.string()),
1313
- executionPrice: v28.optional(v28.string()),
1314
- assetOutAddress: v28.optional(v28.string()),
1315
- assetInAddress: v28.optional(v28.string()),
1316
- outboundTransferId: v28.optional(v28.string()),
1317
- error: v28.optional(v28.string())
1318
- });
1319
- var sparkFlashnetExecuteSwapRequestMessageSchema = v28.object({
1374
+ var sparkFlashnetExecuteSwapParamsSchema = v35.object({
1375
+ poolId: v35.string(),
1376
+ assetInAddress: v35.string(),
1377
+ assetOutAddress: v35.string(),
1378
+ amountIn: v35.string(),
1379
+ maxSlippageBps: v35.number(),
1380
+ minAmountOut: v35.optional(v35.string()),
1381
+ integratorFeeRateBps: v35.optional(v35.number()),
1382
+ integratorPublicKey: v35.optional(v35.string())
1383
+ });
1384
+ var sparkFlashnetExecuteSwapResultSchema = v35.object({
1385
+ requestId: v35.string(),
1386
+ accepted: v35.boolean(),
1387
+ amountOut: v35.optional(v35.string()),
1388
+ feeAmount: v35.optional(v35.string()),
1389
+ executionPrice: v35.optional(v35.string()),
1390
+ assetOutAddress: v35.optional(v35.string()),
1391
+ assetInAddress: v35.optional(v35.string()),
1392
+ outboundTransferId: v35.optional(v35.string()),
1393
+ error: v35.optional(v35.string())
1394
+ });
1395
+ var sparkFlashnetExecuteSwapRequestMessageSchema = v35.object({
1320
1396
  ...rpcRequestMessageSchema.entries,
1321
- ...v28.object({
1322
- method: v28.literal(sparkFlashnetExecuteSwapMethodName),
1397
+ ...v35.object({
1398
+ method: v35.literal(sparkFlashnetExecuteSwapMethodName),
1323
1399
  params: sparkFlashnetExecuteSwapParamsSchema,
1324
- id: v28.string()
1400
+ id: v35.string()
1325
1401
  }).entries
1326
1402
  });
1327
1403
 
1328
1404
  // src/request/types/sparkMethods/flashnetMethods/getClawbackEligibleTransfers.ts
1329
- var v29 = __toESM(require("valibot"));
1405
+ var v36 = __toESM(require("valibot"));
1330
1406
  var sparkGetClawbackEligibleTransfersMethodName = "spark_flashnet_getClawbackEligibleTransfers";
1331
- var sparkGetClawbackEligibleTransfersParamsSchema = v29.nullish(v29.null());
1332
- var sparkGetClawbackEligibleTransfersResultSchema = v29.object({
1333
- eligibleTransfers: v29.array(
1334
- v29.object({
1335
- txId: v29.string(),
1336
- createdAt: v29.string(),
1337
- lpIdentityPublicKey: v29.string()
1407
+ var sparkGetClawbackEligibleTransfersParamsSchema = v36.nullish(v36.null());
1408
+ var sparkGetClawbackEligibleTransfersResultSchema = v36.object({
1409
+ eligibleTransfers: v36.array(
1410
+ v36.object({
1411
+ txId: v36.string(),
1412
+ createdAt: v36.string(),
1413
+ lpIdentityPublicKey: v36.string()
1338
1414
  })
1339
1415
  )
1340
1416
  });
1341
- var sparkGetClawbackEligibleTransfersRequestMessageSchema = v29.object({
1417
+ var sparkGetClawbackEligibleTransfersRequestMessageSchema = v36.object({
1342
1418
  ...rpcRequestMessageSchema.entries,
1343
- ...v29.object({
1344
- method: v29.literal(sparkGetClawbackEligibleTransfersMethodName),
1419
+ ...v36.object({
1420
+ method: v36.literal(sparkGetClawbackEligibleTransfersMethodName),
1345
1421
  params: sparkGetClawbackEligibleTransfersParamsSchema,
1346
- id: v29.string()
1422
+ id: v36.string()
1347
1423
  }).entries
1348
1424
  });
1349
1425
 
1350
1426
  // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
1351
- var v30 = __toESM(require("valibot"));
1427
+ var v37 = __toESM(require("valibot"));
1352
1428
  var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
1353
- var sparkFlashnetGetJwtParamsSchema = v30.null();
1354
- var sparkFlashnetGetJwtResultSchema = v30.object({
1429
+ var sparkFlashnetGetJwtParamsSchema = v37.null();
1430
+ var sparkFlashnetGetJwtResultSchema = v37.object({
1355
1431
  /**
1356
1432
  * The JWT token for authenticated requests to the Flashnet API.
1357
1433
  */
1358
- jwt: v30.string()
1434
+ jwt: v37.string()
1359
1435
  });
1360
- var sparkFlashnetGetJwtRequestMessageSchema = v30.object({
1436
+ var sparkFlashnetGetJwtRequestMessageSchema = v37.object({
1361
1437
  ...rpcRequestMessageSchema.entries,
1362
- ...v30.object({
1363
- method: v30.literal(sparkFlashnetGetJwtMethodName),
1438
+ ...v37.object({
1439
+ method: v37.literal(sparkFlashnetGetJwtMethodName),
1364
1440
  params: sparkFlashnetGetJwtParamsSchema,
1365
- id: v30.string()
1441
+ id: v37.string()
1366
1442
  }).entries
1367
1443
  });
1368
1444
 
1369
1445
  // src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
1370
- var v31 = __toESM(require("valibot"));
1371
- var sparkFlashnetAddLiquidityIntentSchema = v31.object({
1372
- type: v31.literal("addLiquidity"),
1373
- data: v31.object({
1374
- userPublicKey: v31.string(),
1375
- poolId: v31.string(),
1376
- assetAAmount: v31.string(),
1377
- assetBAmount: v31.string(),
1378
- assetAMinAmountIn: v31.string(),
1379
- assetBMinAmountIn: v31.string(),
1380
- assetATransferId: v31.string(),
1381
- assetBTransferId: v31.string(),
1382
- nonce: v31.string()
1446
+ var v38 = __toESM(require("valibot"));
1447
+ var sparkFlashnetAddLiquidityIntentSchema = v38.object({
1448
+ type: v38.literal("addLiquidity"),
1449
+ data: v38.object({
1450
+ userPublicKey: v38.string(),
1451
+ poolId: v38.string(),
1452
+ assetAAmount: v38.string(),
1453
+ assetBAmount: v38.string(),
1454
+ assetAMinAmountIn: v38.string(),
1455
+ assetBMinAmountIn: v38.string(),
1456
+ assetATransferId: v38.string(),
1457
+ assetBTransferId: v38.string(),
1458
+ nonce: v38.string()
1383
1459
  })
1384
1460
  });
1385
1461
 
1386
1462
  // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
1387
- var v32 = __toESM(require("valibot"));
1388
- var sparkFlashnetClawbackIntentSchema = v32.object({
1389
- type: v32.literal("clawback"),
1390
- data: v32.object({
1391
- senderPublicKey: v32.string(),
1392
- sparkTransferId: v32.string(),
1393
- lpIdentityPublicKey: v32.string(),
1394
- nonce: v32.string()
1463
+ var v39 = __toESM(require("valibot"));
1464
+ var sparkFlashnetClawbackIntentSchema = v39.object({
1465
+ type: v39.literal("clawback"),
1466
+ data: v39.object({
1467
+ senderPublicKey: v39.string(),
1468
+ sparkTransferId: v39.string(),
1469
+ lpIdentityPublicKey: v39.string(),
1470
+ nonce: v39.string()
1395
1471
  })
1396
1472
  });
1397
1473
 
1398
1474
  // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
1399
- var v33 = __toESM(require("valibot"));
1400
- var sparkFlashnetConfirmInitialDepositIntentSchema = v33.object({
1401
- type: v33.literal("confirmInitialDeposit"),
1402
- data: v33.object({
1403
- poolId: v33.string(),
1404
- assetASparkTransferId: v33.string(),
1405
- poolOwnerPublicKey: v33.string(),
1406
- nonce: v33.string()
1475
+ var v40 = __toESM(require("valibot"));
1476
+ var sparkFlashnetConfirmInitialDepositIntentSchema = v40.object({
1477
+ type: v40.literal("confirmInitialDeposit"),
1478
+ data: v40.object({
1479
+ poolId: v40.string(),
1480
+ assetASparkTransferId: v40.string(),
1481
+ poolOwnerPublicKey: v40.string(),
1482
+ nonce: v40.string()
1407
1483
  })
1408
1484
  });
1409
1485
 
1410
1486
  // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1411
- var v34 = __toESM(require("valibot"));
1412
- var sparkFlashnetCreateConstantProductPoolIntentSchema = v34.object({
1413
- type: v34.literal("createConstantProductPool"),
1414
- data: v34.object({
1415
- poolOwnerPublicKey: v34.string(),
1416
- assetAAddress: v34.string(),
1417
- assetBAddress: v34.string(),
1418
- lpFeeRateBps: v34.union([v34.number(), v34.string()]),
1419
- totalHostFeeRateBps: v34.union([v34.number(), v34.string()]),
1420
- nonce: v34.string()
1487
+ var v41 = __toESM(require("valibot"));
1488
+ var sparkFlashnetCreateConstantProductPoolIntentSchema = v41.object({
1489
+ type: v41.literal("createConstantProductPool"),
1490
+ data: v41.object({
1491
+ poolOwnerPublicKey: v41.string(),
1492
+ assetAAddress: v41.string(),
1493
+ assetBAddress: v41.string(),
1494
+ lpFeeRateBps: v41.union([v41.number(), v41.string()]),
1495
+ totalHostFeeRateBps: v41.union([v41.number(), v41.string()]),
1496
+ nonce: v41.string()
1421
1497
  })
1422
1498
  });
1423
1499
 
1424
1500
  // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1425
- var v35 = __toESM(require("valibot"));
1426
- var sparkFlashnetCreateSingleSidedPoolIntentSchema = v35.object({
1427
- type: v35.literal("createSingleSidedPool"),
1428
- data: v35.object({
1429
- assetAAddress: v35.string(),
1430
- assetBAddress: v35.string(),
1431
- assetAInitialReserve: v35.string(),
1432
- virtualReserveA: v35.union([v35.number(), v35.string()]),
1433
- virtualReserveB: v35.union([v35.number(), v35.string()]),
1434
- threshold: v35.union([v35.number(), v35.string()]),
1435
- lpFeeRateBps: v35.union([v35.number(), v35.string()]),
1436
- totalHostFeeRateBps: v35.union([v35.number(), v35.string()]),
1437
- poolOwnerPublicKey: v35.string(),
1438
- nonce: v35.string()
1501
+ var v42 = __toESM(require("valibot"));
1502
+ var sparkFlashnetCreateSingleSidedPoolIntentSchema = v42.object({
1503
+ type: v42.literal("createSingleSidedPool"),
1504
+ data: v42.object({
1505
+ assetAAddress: v42.string(),
1506
+ assetBAddress: v42.string(),
1507
+ assetAInitialReserve: v42.string(),
1508
+ virtualReserveA: v42.union([v42.number(), v42.string()]),
1509
+ virtualReserveB: v42.union([v42.number(), v42.string()]),
1510
+ threshold: v42.union([v42.number(), v42.string()]),
1511
+ lpFeeRateBps: v42.union([v42.number(), v42.string()]),
1512
+ totalHostFeeRateBps: v42.union([v42.number(), v42.string()]),
1513
+ poolOwnerPublicKey: v42.string(),
1514
+ nonce: v42.string()
1439
1515
  })
1440
1516
  });
1441
1517
 
1442
1518
  // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1443
- var v36 = __toESM(require("valibot"));
1444
- var sparkFlashnetRemoveLiquidityIntentSchema = v36.object({
1445
- type: v36.literal("removeLiquidity"),
1446
- data: v36.object({
1447
- userPublicKey: v36.string(),
1448
- poolId: v36.string(),
1449
- lpTokensToRemove: v36.string(),
1450
- nonce: v36.string()
1519
+ var v43 = __toESM(require("valibot"));
1520
+ var sparkFlashnetRemoveLiquidityIntentSchema = v43.object({
1521
+ type: v43.literal("removeLiquidity"),
1522
+ data: v43.object({
1523
+ userPublicKey: v43.string(),
1524
+ poolId: v43.string(),
1525
+ lpTokensToRemove: v43.string(),
1526
+ nonce: v43.string()
1451
1527
  })
1452
1528
  });
1453
1529
 
1454
1530
  // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1455
- var v37 = __toESM(require("valibot"));
1456
- var sparkFlashnetRouteSwapIntentSchema = v37.object({
1457
- type: v37.literal("executeRouteSwap"),
1458
- data: v37.object({
1459
- userPublicKey: v37.string(),
1460
- initialSparkTransferId: v37.string(),
1461
- hops: v37.array(
1462
- v37.object({
1463
- poolId: v37.string(),
1464
- inputAssetAddress: v37.string(),
1465
- outputAssetAddress: v37.string(),
1466
- hopIntegratorFeeRateBps: v37.optional(v37.union([v37.number(), v37.string()]))
1531
+ var v44 = __toESM(require("valibot"));
1532
+ var sparkFlashnetRouteSwapIntentSchema = v44.object({
1533
+ type: v44.literal("executeRouteSwap"),
1534
+ data: v44.object({
1535
+ userPublicKey: v44.string(),
1536
+ initialSparkTransferId: v44.string(),
1537
+ hops: v44.array(
1538
+ v44.object({
1539
+ poolId: v44.string(),
1540
+ inputAssetAddress: v44.string(),
1541
+ outputAssetAddress: v44.string(),
1542
+ hopIntegratorFeeRateBps: v44.optional(v44.union([v44.number(), v44.string()]))
1467
1543
  })
1468
1544
  ),
1469
- inputAmount: v37.string(),
1470
- maxRouteSlippageBps: v37.union([v37.number(), v37.string()]),
1471
- minAmountOut: v37.string(),
1472
- defaultIntegratorFeeRateBps: v37.optional(v37.union([v37.number(), v37.string()])),
1473
- nonce: v37.string()
1545
+ inputAmount: v44.string(),
1546
+ maxRouteSlippageBps: v44.union([v44.number(), v44.string()]),
1547
+ minAmountOut: v44.string(),
1548
+ defaultIntegratorFeeRateBps: v44.optional(v44.union([v44.number(), v44.string()])),
1549
+ nonce: v44.string()
1474
1550
  })
1475
1551
  });
1476
1552
 
1477
1553
  // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1478
- var v38 = __toESM(require("valibot"));
1479
- var sparkFlashnetSwapIntentSchema = v38.object({
1480
- type: v38.literal("executeSwap"),
1481
- data: v38.object({
1482
- userPublicKey: v38.string(),
1483
- poolId: v38.string(),
1484
- transferId: v38.string(),
1485
- assetInAddress: v38.string(),
1486
- assetOutAddress: v38.string(),
1487
- amountIn: v38.string(),
1488
- maxSlippageBps: v38.union([v38.number(), v38.string()]),
1489
- minAmountOut: v38.string(),
1490
- totalIntegratorFeeRateBps: v38.optional(v38.union([v38.number(), v38.string()])),
1491
- nonce: v38.string()
1554
+ var v45 = __toESM(require("valibot"));
1555
+ var sparkFlashnetSwapIntentSchema = v45.object({
1556
+ type: v45.literal("executeSwap"),
1557
+ data: v45.object({
1558
+ userPublicKey: v45.string(),
1559
+ poolId: v45.string(),
1560
+ transferId: v45.string(),
1561
+ assetInAddress: v45.string(),
1562
+ assetOutAddress: v45.string(),
1563
+ amountIn: v45.string(),
1564
+ maxSlippageBps: v45.union([v45.number(), v45.string()]),
1565
+ minAmountOut: v45.string(),
1566
+ totalIntegratorFeeRateBps: v45.optional(v45.union([v45.number(), v45.string()])),
1567
+ nonce: v45.string()
1492
1568
  })
1493
1569
  });
1494
1570
 
1495
1571
  // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1496
- var v39 = __toESM(require("valibot"));
1572
+ var v46 = __toESM(require("valibot"));
1497
1573
  var sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
1498
- var sparkFlashnetSignIntentParamsSchema = v39.union([
1574
+ var sparkFlashnetSignIntentParamsSchema = v46.union([
1499
1575
  sparkFlashnetSwapIntentSchema,
1500
1576
  sparkFlashnetRouteSwapIntentSchema,
1501
1577
  sparkFlashnetAddLiquidityIntentSchema,
@@ -1505,109 +1581,109 @@ var sparkFlashnetSignIntentParamsSchema = v39.union([
1505
1581
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
1506
1582
  sparkFlashnetRemoveLiquidityIntentSchema
1507
1583
  ]);
1508
- var sparkFlashnetSignIntentResultSchema = v39.object({
1584
+ var sparkFlashnetSignIntentResultSchema = v46.object({
1509
1585
  /**
1510
1586
  * The signed intent as a hex string.
1511
1587
  */
1512
- signature: v39.string()
1588
+ signature: v46.string()
1513
1589
  });
1514
- var sparkFlashnetSignIntentRequestMessageSchema = v39.object({
1590
+ var sparkFlashnetSignIntentRequestMessageSchema = v46.object({
1515
1591
  ...rpcRequestMessageSchema.entries,
1516
- ...v39.object({
1517
- method: v39.literal(sparkFlashnetSignIntentMethodName),
1592
+ ...v46.object({
1593
+ method: v46.literal(sparkFlashnetSignIntentMethodName),
1518
1594
  params: sparkFlashnetSignIntentParamsSchema,
1519
- id: v39.string()
1595
+ id: v46.string()
1520
1596
  }).entries
1521
1597
  });
1522
1598
 
1523
1599
  // src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.ts
1524
- var v40 = __toESM(require("valibot"));
1600
+ var v47 = __toESM(require("valibot"));
1525
1601
  var sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
1526
- var sparkFlashnetSignStructuredMessageParamsSchema = v40.object({
1527
- message: v40.string()
1602
+ var sparkFlashnetSignStructuredMessageParamsSchema = v47.object({
1603
+ message: v47.string()
1528
1604
  });
1529
- var sparkFlashnetSignStructuredMessageResultSchema = v40.object({
1530
- message: v40.string(),
1531
- signature: v40.string()
1605
+ var sparkFlashnetSignStructuredMessageResultSchema = v47.object({
1606
+ message: v47.string(),
1607
+ signature: v47.string()
1532
1608
  });
1533
- var sparkFlashnetSignStructuredMessageRequestMessageSchema = v40.object({
1609
+ var sparkFlashnetSignStructuredMessageRequestMessageSchema = v47.object({
1534
1610
  ...rpcRequestMessageSchema.entries,
1535
- ...v40.object({
1536
- method: v40.literal(sparkFlashnetSignStructuredMessageMethodName),
1611
+ ...v47.object({
1612
+ method: v47.literal(sparkFlashnetSignStructuredMessageMethodName),
1537
1613
  params: sparkFlashnetSignStructuredMessageParamsSchema,
1538
- id: v40.string()
1614
+ id: v47.string()
1539
1615
  }).entries
1540
1616
  });
1541
1617
 
1542
1618
  // src/request/types/sparkMethods/getAddresses.ts
1543
- var v41 = __toESM(require("valibot"));
1619
+ var v48 = __toESM(require("valibot"));
1544
1620
  var sparkGetAddressesMethodName = "spark_getAddresses";
1545
- var sparkGetAddressesParamsSchema = v41.nullish(
1546
- v41.object({
1621
+ var sparkGetAddressesParamsSchema = v48.nullish(
1622
+ v48.object({
1547
1623
  /**
1548
1624
  * A message to be displayed to the user in the request prompt.
1549
1625
  */
1550
- message: v41.optional(v41.string())
1626
+ message: v48.optional(v48.string())
1551
1627
  })
1552
1628
  );
1553
- var sparkGetAddressesResultSchema = v41.object({
1629
+ var sparkGetAddressesResultSchema = v48.object({
1554
1630
  /**
1555
1631
  * The addresses generated for the given purposes.
1556
1632
  */
1557
- addresses: v41.array(addressSchema),
1633
+ addresses: v48.array(addressSchema),
1558
1634
  network: getNetworkResultSchema
1559
1635
  });
1560
- var sparkGetAddressesRequestMessageSchema = v41.object({
1636
+ var sparkGetAddressesRequestMessageSchema = v48.object({
1561
1637
  ...rpcRequestMessageSchema.entries,
1562
- ...v41.object({
1563
- method: v41.literal(sparkGetAddressesMethodName),
1638
+ ...v48.object({
1639
+ method: v48.literal(sparkGetAddressesMethodName),
1564
1640
  params: sparkGetAddressesParamsSchema,
1565
- id: v41.string()
1641
+ id: v48.string()
1566
1642
  }).entries
1567
1643
  });
1568
1644
 
1569
1645
  // src/request/types/sparkMethods/getBalance.ts
1570
- var v42 = __toESM(require("valibot"));
1646
+ var v49 = __toESM(require("valibot"));
1571
1647
  var sparkGetBalanceMethodName = "spark_getBalance";
1572
- var sparkGetBalanceParamsSchema = v42.nullish(v42.null());
1573
- var sparkGetBalanceResultSchema = v42.object({
1648
+ var sparkGetBalanceParamsSchema = v49.nullish(v49.null());
1649
+ var sparkGetBalanceResultSchema = v49.object({
1574
1650
  /**
1575
1651
  * The Spark Bitcoin address balance in sats in string form.
1576
1652
  */
1577
- balance: v42.string(),
1578
- tokenBalances: v42.array(
1579
- v42.object({
1653
+ balance: v49.string(),
1654
+ tokenBalances: v49.array(
1655
+ v49.object({
1580
1656
  /* The address balance of the token in string form as it can overflow a js number */
1581
- balance: v42.string(),
1582
- tokenMetadata: v42.object({
1583
- tokenIdentifier: v42.string(),
1584
- tokenName: v42.string(),
1585
- tokenTicker: v42.string(),
1586
- decimals: v42.number(),
1587
- maxSupply: v42.string()
1657
+ balance: v49.string(),
1658
+ tokenMetadata: v49.object({
1659
+ tokenIdentifier: v49.string(),
1660
+ tokenName: v49.string(),
1661
+ tokenTicker: v49.string(),
1662
+ decimals: v49.number(),
1663
+ maxSupply: v49.string()
1588
1664
  })
1589
1665
  })
1590
1666
  )
1591
1667
  });
1592
- var sparkGetBalanceRequestMessageSchema = v42.object({
1668
+ var sparkGetBalanceRequestMessageSchema = v49.object({
1593
1669
  ...rpcRequestMessageSchema.entries,
1594
- ...v42.object({
1595
- method: v42.literal(sparkGetBalanceMethodName),
1670
+ ...v49.object({
1671
+ method: v49.literal(sparkGetBalanceMethodName),
1596
1672
  params: sparkGetBalanceParamsSchema,
1597
- id: v42.string()
1673
+ id: v49.string()
1598
1674
  }).entries
1599
1675
  });
1600
1676
 
1601
1677
  // src/request/types/sparkMethods/signMessage.ts
1602
- var v43 = __toESM(require("valibot"));
1678
+ var v50 = __toESM(require("valibot"));
1603
1679
  var sparkSignMessageMethodName = "spark_signMessage";
1604
- var sparkSignMessageParamsSchema = v43.object({
1680
+ var sparkSignMessageParamsSchema = v50.object({
1605
1681
  /**
1606
1682
  * The message to sign. The message should only consist of valid UTF-8 characters.
1607
1683
  */
1608
- message: v43.string()
1684
+ message: v50.string()
1609
1685
  });
1610
- var sparkSignMessageResultSchema = v43.object({
1686
+ var sparkSignMessageResultSchema = v50.object({
1611
1687
  /**
1612
1688
  * The signature, encoded in base64, of the message hash.
1613
1689
  *
@@ -1615,98 +1691,98 @@ var sparkSignMessageResultSchema = v43.object({
1615
1691
  * and the resulting byte array is hashed with SHA256 before signing
1616
1692
  * with the private key.
1617
1693
  */
1618
- signature: v43.string()
1694
+ signature: v50.string()
1619
1695
  });
1620
- var sparkSignMessageRequestMessageSchema = v43.object({
1696
+ var sparkSignMessageRequestMessageSchema = v50.object({
1621
1697
  ...rpcRequestMessageSchema.entries,
1622
- ...v43.object({
1623
- method: v43.literal(sparkSignMessageMethodName),
1698
+ ...v50.object({
1699
+ method: v50.literal(sparkSignMessageMethodName),
1624
1700
  params: sparkSignMessageParamsSchema,
1625
- id: v43.string()
1701
+ id: v50.string()
1626
1702
  }).entries
1627
1703
  });
1628
1704
 
1629
1705
  // src/request/types/sparkMethods/transfer.ts
1630
- var v44 = __toESM(require("valibot"));
1706
+ var v51 = __toESM(require("valibot"));
1631
1707
  var sparkTransferMethodName = "spark_transfer";
1632
- var sparkTransferParamsSchema = v44.object({
1708
+ var sparkTransferParamsSchema = v51.object({
1633
1709
  /**
1634
1710
  * Amount of SATS to transfer as a string or number.
1635
1711
  */
1636
- amountSats: v44.union([v44.number(), v44.string()]),
1712
+ amountSats: v51.union([v51.number(), v51.string()]),
1637
1713
  /**
1638
1714
  * The recipient's spark address.
1639
1715
  */
1640
- receiverSparkAddress: v44.string()
1716
+ receiverSparkAddress: v51.string()
1641
1717
  });
1642
- var sparkTransferResultSchema = v44.object({
1718
+ var sparkTransferResultSchema = v51.object({
1643
1719
  /**
1644
1720
  * The ID of the transaction.
1645
1721
  */
1646
- id: v44.string()
1722
+ id: v51.string()
1647
1723
  });
1648
- var sparkTransferRequestMessageSchema = v44.object({
1724
+ var sparkTransferRequestMessageSchema = v51.object({
1649
1725
  ...rpcRequestMessageSchema.entries,
1650
- ...v44.object({
1651
- method: v44.literal(sparkTransferMethodName),
1726
+ ...v51.object({
1727
+ method: v51.literal(sparkTransferMethodName),
1652
1728
  params: sparkTransferParamsSchema,
1653
- id: v44.string()
1729
+ id: v51.string()
1654
1730
  }).entries
1655
1731
  });
1656
1732
 
1657
1733
  // src/request/types/sparkMethods/transferToken.ts
1658
- var v45 = __toESM(require("valibot"));
1734
+ var v52 = __toESM(require("valibot"));
1659
1735
  var sparkTransferTokenMethodName = "spark_transferToken";
1660
- var sparkTransferTokenParamsSchema = v45.object({
1736
+ var sparkTransferTokenParamsSchema = v52.object({
1661
1737
  /**
1662
1738
  * Amount of units of the token to transfer as a string or number.
1663
1739
  */
1664
- tokenAmount: v45.union([v45.number(), v45.string()]),
1740
+ tokenAmount: v52.union([v52.number(), v52.string()]),
1665
1741
  /**
1666
1742
  * The Bech32m token identifier.
1667
1743
  */
1668
- tokenIdentifier: v45.string(),
1744
+ tokenIdentifier: v52.string(),
1669
1745
  /**
1670
1746
  * The recipient's spark address.
1671
1747
  */
1672
- receiverSparkAddress: v45.string()
1748
+ receiverSparkAddress: v52.string()
1673
1749
  });
1674
- var sparkTransferTokenResultSchema = v45.object({
1750
+ var sparkTransferTokenResultSchema = v52.object({
1675
1751
  /**
1676
1752
  * The ID of the transaction.
1677
1753
  */
1678
- id: v45.string()
1754
+ id: v52.string()
1679
1755
  });
1680
- var sparkTransferTokenRequestMessageSchema = v45.object({
1756
+ var sparkTransferTokenRequestMessageSchema = v52.object({
1681
1757
  ...rpcRequestMessageSchema.entries,
1682
- ...v45.object({
1683
- method: v45.literal(sparkTransferTokenMethodName),
1758
+ ...v52.object({
1759
+ method: v52.literal(sparkTransferTokenMethodName),
1684
1760
  params: sparkTransferTokenParamsSchema,
1685
- id: v45.string()
1761
+ id: v52.string()
1686
1762
  }).entries
1687
1763
  });
1688
1764
 
1689
1765
  // src/request/types/stxMethods/callContract.ts
1690
- var v46 = __toESM(require("valibot"));
1766
+ var v53 = __toESM(require("valibot"));
1691
1767
  var stxCallContractMethodName = "stx_callContract";
1692
- var stxCallContractParamsSchema = v46.object({
1768
+ var stxCallContractParamsSchema = v53.object({
1693
1769
  /**
1694
1770
  * The contract principal.
1695
1771
  *
1696
1772
  * E.g. `"SPKE...GD5C.my-contract"`
1697
1773
  */
1698
- contract: v46.string(),
1774
+ contract: v53.string(),
1699
1775
  /**
1700
1776
  * The name of the function to call.
1701
1777
  *
1702
1778
  * Note: spec changes ongoing,
1703
1779
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1704
1780
  */
1705
- functionName: v46.string(),
1781
+ functionName: v53.string(),
1706
1782
  /**
1707
1783
  * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1708
1784
  */
1709
- arguments: v46.optional(v46.array(v46.string())),
1785
+ arguments: v53.optional(v53.array(v53.string())),
1710
1786
  /**
1711
1787
  * The function's arguments. The arguments are expected to be hex-encoded
1712
1788
  * strings of Clarity values.
@@ -1721,274 +1797,274 @@ var stxCallContractParamsSchema = v46.object({
1721
1797
  * const hexArgs = functionArgs.map(cvToHex);
1722
1798
  * ```
1723
1799
  */
1724
- functionArgs: v46.optional(v46.array(v46.string())),
1800
+ functionArgs: v53.optional(v53.array(v53.string())),
1725
1801
  /**
1726
1802
  * The post conditions to apply to the contract call.
1727
1803
  */
1728
- postConditions: v46.optional(v46.array(v46.string())),
1804
+ postConditions: v53.optional(v53.array(v53.string())),
1729
1805
  /**
1730
1806
  * The mode to apply to the post conditions.
1731
1807
  */
1732
- postConditionMode: v46.optional(v46.union([v46.literal("allow"), v46.literal("deny")]))
1808
+ postConditionMode: v53.optional(v53.union([v53.literal("allow"), v53.literal("deny")]))
1733
1809
  });
1734
- var stxCallContractResultSchema = v46.object({
1810
+ var stxCallContractResultSchema = v53.object({
1735
1811
  /**
1736
1812
  * The ID of the transaction.
1737
1813
  */
1738
- txid: v46.string(),
1814
+ txid: v53.string(),
1739
1815
  /**
1740
1816
  * A Stacks transaction as a hex-encoded string.
1741
1817
  */
1742
- transaction: v46.string()
1818
+ transaction: v53.string()
1743
1819
  });
1744
- var stxCallContractRequestMessageSchema = v46.object({
1820
+ var stxCallContractRequestMessageSchema = v53.object({
1745
1821
  ...rpcRequestMessageSchema.entries,
1746
- ...v46.object({
1747
- method: v46.literal(stxCallContractMethodName),
1822
+ ...v53.object({
1823
+ method: v53.literal(stxCallContractMethodName),
1748
1824
  params: stxCallContractParamsSchema,
1749
- id: v46.string()
1825
+ id: v53.string()
1750
1826
  }).entries
1751
1827
  });
1752
1828
 
1753
1829
  // src/request/types/stxMethods/deployContract.ts
1754
- var v47 = __toESM(require("valibot"));
1830
+ var v54 = __toESM(require("valibot"));
1755
1831
  var stxDeployContractMethodName = "stx_deployContract";
1756
- var stxDeployContractParamsSchema = v47.object({
1832
+ var stxDeployContractParamsSchema = v54.object({
1757
1833
  /**
1758
1834
  * Name of the contract.
1759
1835
  */
1760
- name: v47.string(),
1836
+ name: v54.string(),
1761
1837
  /**
1762
1838
  * The source code of the Clarity contract.
1763
1839
  */
1764
- clarityCode: v47.string(),
1840
+ clarityCode: v54.string(),
1765
1841
  /**
1766
1842
  * The version of the Clarity contract.
1767
1843
  */
1768
- clarityVersion: v47.optional(v47.number()),
1844
+ clarityVersion: v54.optional(v54.number()),
1769
1845
  /**
1770
1846
  * The post conditions to apply to the contract call.
1771
1847
  */
1772
- postConditions: v47.optional(v47.array(v47.string())),
1848
+ postConditions: v54.optional(v54.array(v54.string())),
1773
1849
  /**
1774
1850
  * The mode to apply to the post conditions.
1775
1851
  */
1776
- postConditionMode: v47.optional(v47.union([v47.literal("allow"), v47.literal("deny")]))
1852
+ postConditionMode: v54.optional(v54.union([v54.literal("allow"), v54.literal("deny")]))
1777
1853
  });
1778
- var stxDeployContractResultSchema = v47.object({
1854
+ var stxDeployContractResultSchema = v54.object({
1779
1855
  /**
1780
1856
  * The ID of the transaction.
1781
1857
  */
1782
- txid: v47.string(),
1858
+ txid: v54.string(),
1783
1859
  /**
1784
1860
  * A Stacks transaction as a hex-encoded string.
1785
1861
  */
1786
- transaction: v47.string()
1862
+ transaction: v54.string()
1787
1863
  });
1788
- var stxDeployContractRequestMessageSchema = v47.object({
1864
+ var stxDeployContractRequestMessageSchema = v54.object({
1789
1865
  ...rpcRequestMessageSchema.entries,
1790
- ...v47.object({
1791
- method: v47.literal(stxDeployContractMethodName),
1866
+ ...v54.object({
1867
+ method: v54.literal(stxDeployContractMethodName),
1792
1868
  params: stxDeployContractParamsSchema,
1793
- id: v47.string()
1869
+ id: v54.string()
1794
1870
  }).entries
1795
1871
  });
1796
1872
 
1797
1873
  // src/request/types/stxMethods/getAccounts.ts
1798
- var v48 = __toESM(require("valibot"));
1874
+ var v55 = __toESM(require("valibot"));
1799
1875
  var stxGetAccountsMethodName = "stx_getAccounts";
1800
- var stxGetAccountsParamsSchema = v48.nullish(v48.null());
1801
- var stxGetAccountsResultSchema = v48.object({
1876
+ var stxGetAccountsParamsSchema = v55.nullish(v55.null());
1877
+ var stxGetAccountsResultSchema = v55.object({
1802
1878
  /**
1803
1879
  * The addresses generated for the given purposes.
1804
1880
  */
1805
- addresses: v48.array(
1806
- v48.object({
1807
- address: v48.string(),
1808
- publicKey: v48.string(),
1809
- gaiaHubUrl: v48.string(),
1810
- gaiaAppKey: v48.string()
1881
+ addresses: v55.array(
1882
+ v55.object({
1883
+ address: v55.string(),
1884
+ publicKey: v55.string(),
1885
+ gaiaHubUrl: v55.string(),
1886
+ gaiaAppKey: v55.string()
1811
1887
  })
1812
1888
  ),
1813
1889
  network: getNetworkResultSchema
1814
1890
  });
1815
- var stxGetAccountsRequestMessageSchema = v48.object({
1891
+ var stxGetAccountsRequestMessageSchema = v55.object({
1816
1892
  ...rpcRequestMessageSchema.entries,
1817
- ...v48.object({
1818
- method: v48.literal(stxGetAccountsMethodName),
1893
+ ...v55.object({
1894
+ method: v55.literal(stxGetAccountsMethodName),
1819
1895
  params: stxGetAccountsParamsSchema,
1820
- id: v48.string()
1896
+ id: v55.string()
1821
1897
  }).entries
1822
1898
  });
1823
1899
 
1824
1900
  // src/request/types/stxMethods/getAddresses.ts
1825
- var v49 = __toESM(require("valibot"));
1901
+ var v56 = __toESM(require("valibot"));
1826
1902
  var stxGetAddressesMethodName = "stx_getAddresses";
1827
- var stxGetAddressesParamsSchema = v49.nullish(
1828
- v49.object({
1903
+ var stxGetAddressesParamsSchema = v56.nullish(
1904
+ v56.object({
1829
1905
  /**
1830
1906
  * A message to be displayed to the user in the request prompt.
1831
1907
  */
1832
- message: v49.optional(v49.string())
1908
+ message: v56.optional(v56.string())
1833
1909
  })
1834
1910
  );
1835
- var stxGetAddressesResultSchema = v49.object({
1911
+ var stxGetAddressesResultSchema = v56.object({
1836
1912
  /**
1837
1913
  * The addresses generated for the given purposes.
1838
1914
  */
1839
- addresses: v49.array(addressSchema),
1915
+ addresses: v56.array(addressSchema),
1840
1916
  network: getNetworkResultSchema
1841
1917
  });
1842
- var stxGetAddressesRequestMessageSchema = v49.object({
1918
+ var stxGetAddressesRequestMessageSchema = v56.object({
1843
1919
  ...rpcRequestMessageSchema.entries,
1844
- ...v49.object({
1845
- method: v49.literal(stxGetAddressesMethodName),
1920
+ ...v56.object({
1921
+ method: v56.literal(stxGetAddressesMethodName),
1846
1922
  params: stxGetAddressesParamsSchema,
1847
- id: v49.string()
1923
+ id: v56.string()
1848
1924
  }).entries
1849
1925
  });
1850
1926
 
1851
1927
  // src/request/types/stxMethods/signMessage.ts
1852
- var v50 = __toESM(require("valibot"));
1928
+ var v57 = __toESM(require("valibot"));
1853
1929
  var stxSignMessageMethodName = "stx_signMessage";
1854
- var stxSignMessageParamsSchema = v50.object({
1930
+ var stxSignMessageParamsSchema = v57.object({
1855
1931
  /**
1856
1932
  * The message to sign.
1857
1933
  */
1858
- message: v50.string()
1934
+ message: v57.string()
1859
1935
  });
1860
- var stxSignMessageResultSchema = v50.object({
1936
+ var stxSignMessageResultSchema = v57.object({
1861
1937
  /**
1862
1938
  * The signature of the message.
1863
1939
  */
1864
- signature: v50.string(),
1940
+ signature: v57.string(),
1865
1941
  /**
1866
1942
  * The public key used to sign the message.
1867
1943
  */
1868
- publicKey: v50.string()
1944
+ publicKey: v57.string()
1869
1945
  });
1870
- var stxSignMessageRequestMessageSchema = v50.object({
1946
+ var stxSignMessageRequestMessageSchema = v57.object({
1871
1947
  ...rpcRequestMessageSchema.entries,
1872
- ...v50.object({
1873
- method: v50.literal(stxSignMessageMethodName),
1948
+ ...v57.object({
1949
+ method: v57.literal(stxSignMessageMethodName),
1874
1950
  params: stxSignMessageParamsSchema,
1875
- id: v50.string()
1951
+ id: v57.string()
1876
1952
  }).entries
1877
1953
  });
1878
1954
 
1879
1955
  // src/request/types/stxMethods/signStructuredMessage.ts
1880
- var v51 = __toESM(require("valibot"));
1956
+ var v58 = __toESM(require("valibot"));
1881
1957
  var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1882
- var stxSignStructuredMessageParamsSchema = v51.object({
1958
+ var stxSignStructuredMessageParamsSchema = v58.object({
1883
1959
  /**
1884
1960
  * The domain to be signed.
1885
1961
  */
1886
- domain: v51.string(),
1962
+ domain: v58.string(),
1887
1963
  /**
1888
1964
  * Message payload to be signed.
1889
1965
  */
1890
- message: v51.string(),
1966
+ message: v58.string(),
1891
1967
  /**
1892
1968
  * The public key to sign the message with.
1893
1969
  */
1894
- publicKey: v51.optional(v51.string())
1970
+ publicKey: v58.optional(v58.string())
1895
1971
  });
1896
- var stxSignStructuredMessageResultSchema = v51.object({
1972
+ var stxSignStructuredMessageResultSchema = v58.object({
1897
1973
  /**
1898
1974
  * Signature of the message.
1899
1975
  */
1900
- signature: v51.string(),
1976
+ signature: v58.string(),
1901
1977
  /**
1902
1978
  * Public key as hex-encoded string.
1903
1979
  */
1904
- publicKey: v51.string()
1980
+ publicKey: v58.string()
1905
1981
  });
1906
- var stxSignStructuredMessageRequestMessageSchema = v51.object({
1982
+ var stxSignStructuredMessageRequestMessageSchema = v58.object({
1907
1983
  ...rpcRequestMessageSchema.entries,
1908
- ...v51.object({
1909
- method: v51.literal(stxSignStructuredMessageMethodName),
1984
+ ...v58.object({
1985
+ method: v58.literal(stxSignStructuredMessageMethodName),
1910
1986
  params: stxSignStructuredMessageParamsSchema,
1911
- id: v51.string()
1987
+ id: v58.string()
1912
1988
  }).entries
1913
1989
  });
1914
1990
 
1915
1991
  // src/request/types/stxMethods/signTransaction.ts
1916
- var v52 = __toESM(require("valibot"));
1992
+ var v59 = __toESM(require("valibot"));
1917
1993
  var stxSignTransactionMethodName = "stx_signTransaction";
1918
- var stxSignTransactionParamsSchema = v52.object({
1994
+ var stxSignTransactionParamsSchema = v59.object({
1919
1995
  /**
1920
1996
  * The transaction to sign as a hex-encoded string.
1921
1997
  */
1922
- transaction: v52.string(),
1998
+ transaction: v59.string(),
1923
1999
  /**
1924
2000
  * The public key to sign the transaction with. The wallet may use any key
1925
2001
  * when not provided.
1926
2002
  */
1927
- pubkey: v52.optional(v52.string()),
2003
+ pubkey: v59.optional(v59.string()),
1928
2004
  /**
1929
2005
  * Whether to broadcast the transaction after signing. Defaults to `true`.
1930
2006
  */
1931
- broadcast: v52.optional(v52.boolean())
2007
+ broadcast: v59.optional(v59.boolean())
1932
2008
  });
1933
- var stxSignTransactionResultSchema = v52.object({
2009
+ var stxSignTransactionResultSchema = v59.object({
1934
2010
  /**
1935
2011
  * The signed transaction as a hex-encoded string.
1936
2012
  */
1937
- transaction: v52.string()
2013
+ transaction: v59.string()
1938
2014
  });
1939
- var stxSignTransactionRequestMessageSchema = v52.object({
2015
+ var stxSignTransactionRequestMessageSchema = v59.object({
1940
2016
  ...rpcRequestMessageSchema.entries,
1941
- ...v52.object({
1942
- method: v52.literal(stxSignTransactionMethodName),
2017
+ ...v59.object({
2018
+ method: v59.literal(stxSignTransactionMethodName),
1943
2019
  params: stxSignTransactionParamsSchema,
1944
- id: v52.string()
2020
+ id: v59.string()
1945
2021
  }).entries
1946
2022
  });
1947
2023
 
1948
2024
  // src/request/types/stxMethods/signTransactions.ts
1949
- var v53 = __toESM(require("valibot"));
2025
+ var v60 = __toESM(require("valibot"));
1950
2026
  var stxSignTransactionsMethodName = "stx_signTransactions";
1951
- var stxSignTransactionsParamsSchema = v53.object({
2027
+ var stxSignTransactionsParamsSchema = v60.object({
1952
2028
  /**
1953
2029
  * The transactions to sign as hex-encoded strings.
1954
2030
  */
1955
- transactions: v53.pipe(
1956
- v53.array(
1957
- v53.pipe(
1958
- v53.string(),
1959
- v53.check((hex) => {
2031
+ transactions: v60.pipe(
2032
+ v60.array(
2033
+ v60.pipe(
2034
+ v60.string(),
2035
+ v60.check((hex) => {
1960
2036
  return true;
1961
2037
  }, "Invalid hex-encoded Stacks transaction.")
1962
2038
  )
1963
2039
  ),
1964
- v53.minLength(1)
2040
+ v60.minLength(1)
1965
2041
  ),
1966
2042
  /**
1967
2043
  * Whether the signed transactions should be broadcast after signing. Defaults
1968
2044
  * to `true`.
1969
2045
  */
1970
- broadcast: v53.optional(v53.boolean())
2046
+ broadcast: v60.optional(v60.boolean())
1971
2047
  });
1972
- var stxSignTransactionsResultSchema = v53.object({
2048
+ var stxSignTransactionsResultSchema = v60.object({
1973
2049
  /**
1974
2050
  * The signed transactions as hex-encoded strings, in the same order as in the
1975
2051
  * sign request.
1976
2052
  */
1977
- transactions: v53.array(v53.string())
2053
+ transactions: v60.array(v60.string())
1978
2054
  });
1979
- var stxSignTransactionsRequestMessageSchema = v53.object({
2055
+ var stxSignTransactionsRequestMessageSchema = v60.object({
1980
2056
  ...rpcRequestMessageSchema.entries,
1981
- ...v53.object({
1982
- method: v53.literal(stxSignTransactionsMethodName),
2057
+ ...v60.object({
2058
+ method: v60.literal(stxSignTransactionsMethodName),
1983
2059
  params: stxSignTransactionsParamsSchema,
1984
- id: v53.string()
2060
+ id: v60.string()
1985
2061
  }).entries
1986
2062
  });
1987
2063
 
1988
2064
  // src/request/types/stxMethods/transferStx.ts
1989
- var v54 = __toESM(require("valibot"));
2065
+ var v61 = __toESM(require("valibot"));
1990
2066
  var stxTransferStxMethodName = "stx_transferStx";
1991
- var stxTransferStxParamsSchema = v54.object({
2067
+ var stxTransferStxParamsSchema = v61.object({
1992
2068
  /**
1993
2069
  * Amount of STX tokens to transfer in microstacks as a string. Anything
1994
2070
  * parseable by `BigInt` is acceptable.
@@ -2001,23 +2077,23 @@ var stxTransferStxParamsSchema = v54.object({
2001
2077
  * const amount3 = '1234';
2002
2078
  * ```
2003
2079
  */
2004
- amount: v54.union([v54.number(), v54.string()]),
2080
+ amount: v61.union([v61.number(), v61.string()]),
2005
2081
  /**
2006
2082
  * The recipient's principal.
2007
2083
  */
2008
- recipient: v54.string(),
2084
+ recipient: v61.string(),
2009
2085
  /**
2010
2086
  * A string representing the memo.
2011
2087
  */
2012
- memo: v54.optional(v54.string()),
2088
+ memo: v61.optional(v61.string()),
2013
2089
  /**
2014
2090
  * Version of parameter format.
2015
2091
  */
2016
- version: v54.optional(v54.string()),
2092
+ version: v61.optional(v61.string()),
2017
2093
  /**
2018
2094
  * The mode of the post conditions.
2019
2095
  */
2020
- postConditionMode: v54.optional(v54.number()),
2096
+ postConditionMode: v61.optional(v61.number()),
2021
2097
  /**
2022
2098
  * A hex-encoded string representing the post conditions.
2023
2099
  *
@@ -2030,29 +2106,29 @@ var stxTransferStxParamsSchema = v54.object({
2030
2106
  * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
2031
2107
  * ```
2032
2108
  */
2033
- postConditions: v54.optional(v54.array(v54.string())),
2109
+ postConditions: v61.optional(v61.array(v61.string())),
2034
2110
  /**
2035
2111
  * The public key to sign the transaction with. The wallet may use any key
2036
2112
  * when not provided.
2037
2113
  */
2038
- pubkey: v54.optional(v54.string())
2114
+ pubkey: v61.optional(v61.string())
2039
2115
  });
2040
- var stxTransferStxResultSchema = v54.object({
2116
+ var stxTransferStxResultSchema = v61.object({
2041
2117
  /**
2042
2118
  * The ID of the transaction.
2043
2119
  */
2044
- txid: v54.string(),
2120
+ txid: v61.string(),
2045
2121
  /**
2046
2122
  * A Stacks transaction as a hex-encoded string.
2047
2123
  */
2048
- transaction: v54.string()
2124
+ transaction: v61.string()
2049
2125
  });
2050
- var stxTransferStxRequestMessageSchema = v54.object({
2126
+ var stxTransferStxRequestMessageSchema = v61.object({
2051
2127
  ...rpcRequestMessageSchema.entries,
2052
- ...v54.object({
2053
- method: v54.literal(stxTransferStxMethodName),
2128
+ ...v61.object({
2129
+ method: v61.literal(stxTransferStxMethodName),
2054
2130
  params: stxTransferStxParamsSchema,
2055
- id: v54.string()
2131
+ id: v61.string()
2056
2132
  }).entries
2057
2133
  });
2058
2134
 
@@ -2060,13 +2136,13 @@ var stxTransferStxRequestMessageSchema = v54.object({
2060
2136
  var cache = {};
2061
2137
  var requestInternal = async (provider, method, params) => {
2062
2138
  const response = await provider.request(method, params);
2063
- if (v55.is(rpcErrorResponseMessageSchema, response)) {
2139
+ if (v62.is(rpcErrorResponseMessageSchema, response)) {
2064
2140
  return {
2065
2141
  status: "error",
2066
2142
  error: response.error
2067
2143
  };
2068
2144
  }
2069
- if (v55.is(rpcSuccessResponseMessageSchema, response)) {
2145
+ if (v62.is(rpcSuccessResponseMessageSchema, response)) {
2070
2146
  return {
2071
2147
  status: "success",
2072
2148
  result: response.result
@@ -3261,6 +3337,10 @@ var signMultipleTransactions = async (options) => {
3261
3337
  signMessageParamsSchema,
3262
3338
  signMessageRequestMessageSchema,
3263
3339
  signMessageResultSchema,
3340
+ signMultipleMessagesMethodName,
3341
+ signMultipleMessagesParamsSchema,
3342
+ signMultipleMessagesRequestMessageSchema,
3343
+ signMultipleMessagesResultSchema,
3264
3344
  signMultipleTransactions,
3265
3345
  signPsbtMethodName,
3266
3346
  signPsbtParamsSchema,