@sats-connect/core 0.14.0-2cdc0da → 0.14.0-3638717

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