@sats-connect/core 0.4.0-ff58e17 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +547 -554
- package/dist/index.d.ts +547 -554
- package/dist/index.js +672 -306
- package/dist/index.mjs +628 -295
- package/package.json +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -42,15 +42,15 @@ type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse
|
|
|
42
42
|
|
|
43
43
|
declare const signMessage: (options: SignMessageOptions) => Promise<void>;
|
|
44
44
|
|
|
45
|
-
interface Recipient
|
|
45
|
+
interface Recipient {
|
|
46
46
|
address: string;
|
|
47
47
|
amountSats: bigint;
|
|
48
48
|
}
|
|
49
|
-
type SerializedRecipient = Omit<Recipient
|
|
49
|
+
type SerializedRecipient = Omit<Recipient, 'amountSats'> & {
|
|
50
50
|
amountSats: string;
|
|
51
51
|
};
|
|
52
52
|
interface SendBtcTransactionPayload extends RequestPayload {
|
|
53
|
-
recipients: Recipient
|
|
53
|
+
recipients: Recipient[];
|
|
54
54
|
senderAddress: string;
|
|
55
55
|
message?: string;
|
|
56
56
|
}
|
|
@@ -193,7 +193,7 @@ declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
|
193
193
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
194
194
|
readonly method: v.StringSchema<undefined>;
|
|
195
195
|
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
196
|
-
readonly id: v.
|
|
196
|
+
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
197
197
|
}, undefined>;
|
|
198
198
|
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
199
199
|
interface RpcBase {
|
|
@@ -313,9 +313,9 @@ declare const addressSchema: v.ObjectSchema<{
|
|
|
313
313
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
314
314
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
315
315
|
}, undefined>;
|
|
316
|
-
type Address
|
|
316
|
+
type Address = v.InferOutput<typeof addressSchema>;
|
|
317
317
|
interface GetAddressResponse {
|
|
318
|
-
addresses: Address
|
|
318
|
+
addresses: Address[];
|
|
319
319
|
}
|
|
320
320
|
type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
|
|
321
321
|
|
|
@@ -502,7 +502,6 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
502
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
503
503
|
*/
|
|
504
504
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
505
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
506
505
|
/**
|
|
507
506
|
* Whether to broadcast the transaction after signing.
|
|
508
507
|
**/
|
|
@@ -533,7 +532,6 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
533
532
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
534
533
|
*/
|
|
535
534
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
536
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
537
535
|
/**
|
|
538
536
|
* Whether to broadcast the transaction after signing.
|
|
539
537
|
**/
|
|
@@ -623,6 +621,7 @@ declare const getInscriptionsParamsSchema: v.ObjectSchema<{
|
|
|
623
621
|
readonly offset: v.NumberSchema<undefined>;
|
|
624
622
|
readonly limit: v.NumberSchema<undefined>;
|
|
625
623
|
}, undefined>;
|
|
624
|
+
type GetInscriptionsParams = v.InferOutput<typeof getInscriptionsParamsSchema>;
|
|
626
625
|
declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
627
626
|
readonly total: v.NumberSchema<undefined>;
|
|
628
627
|
readonly limit: v.NumberSchema<undefined>;
|
|
@@ -641,7 +640,8 @@ declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
|
641
640
|
readonly output: v.StringSchema<undefined>;
|
|
642
641
|
}, undefined>, undefined>;
|
|
643
642
|
}, undefined>;
|
|
644
|
-
|
|
643
|
+
type GetInscriptionsResult = v.InferOutput<typeof getInscriptionsResultSchema>;
|
|
644
|
+
declare const getInscriptionsRequestMessageSchema: v.ObjectSchema<{
|
|
645
645
|
readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
|
|
646
646
|
readonly params: v.ObjectSchema<{
|
|
647
647
|
readonly offset: v.NumberSchema<undefined>;
|
|
@@ -650,7 +650,8 @@ declare const getInscriptionsSchema: v.ObjectSchema<{
|
|
|
650
650
|
readonly id: v.StringSchema<undefined>;
|
|
651
651
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
652
652
|
}, undefined>;
|
|
653
|
-
type
|
|
653
|
+
type GetInscriptionsRequestMessage = v.InferOutput<typeof getInscriptionsRequestMessageSchema>;
|
|
654
|
+
type GetInscriptions = MethodParamsAndResult<GetInscriptionsParams, GetInscriptionsResult>;
|
|
654
655
|
declare const sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
655
656
|
declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
656
657
|
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -658,10 +659,12 @@ declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
|
658
659
|
readonly inscriptionId: v.StringSchema<undefined>;
|
|
659
660
|
}, undefined>, undefined>;
|
|
660
661
|
}, undefined>;
|
|
662
|
+
type SendInscriptionsParams = v.InferOutput<typeof sendInscriptionsParamsSchema>;
|
|
661
663
|
declare const sendInscriptionsResultSchema: v.ObjectSchema<{
|
|
662
664
|
readonly txid: v.StringSchema<undefined>;
|
|
663
665
|
}, undefined>;
|
|
664
|
-
|
|
666
|
+
type SendInscriptionsResult = v.InferOutput<typeof sendInscriptionsResultSchema>;
|
|
667
|
+
declare const sendInscriptionsRequestMessageSchema: v.ObjectSchema<{
|
|
665
668
|
readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
|
|
666
669
|
readonly params: v.ObjectSchema<{
|
|
667
670
|
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -672,7 +675,8 @@ declare const sendInscriptionsSchema: v.ObjectSchema<{
|
|
|
672
675
|
readonly id: v.StringSchema<undefined>;
|
|
673
676
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
674
677
|
}, undefined>;
|
|
675
|
-
type
|
|
678
|
+
type SendInscriptionsRequestMessage = v.InferOutput<typeof sendInscriptionsRequestMessageSchema>;
|
|
679
|
+
type SendInscriptions = MethodParamsAndResult<SendInscriptionsParams, SendInscriptionsResult>;
|
|
676
680
|
|
|
677
681
|
type CreateMintOrderRequest = {
|
|
678
682
|
runeName: string;
|
|
@@ -740,55 +744,95 @@ type RBFOrderResponse = {
|
|
|
740
744
|
fundingAddress: string;
|
|
741
745
|
};
|
|
742
746
|
|
|
743
|
-
interface
|
|
744
|
-
network?: BitcoinNetworkType;
|
|
745
|
-
}
|
|
746
|
-
type EstimateRunesMintResult = EstimateOrderResponse;
|
|
747
|
-
type EstimateRunesMint = MethodParamsAndResult<EstimateRunesMintParams, EstimateRunesMintResult>;
|
|
748
|
-
interface MintRunesParams extends CreateMintOrderRequest {
|
|
749
|
-
network?: BitcoinNetworkType;
|
|
750
|
-
}
|
|
751
|
-
type MintRunesResult = {
|
|
752
|
-
orderId: string;
|
|
753
|
-
fundTransactionId: string;
|
|
754
|
-
fundingAddress: string;
|
|
755
|
-
};
|
|
756
|
-
type MintRunes = MethodParamsAndResult<MintRunesParams, MintRunesResult>;
|
|
757
|
-
interface EstimateRunesEtchParams extends EstimateEtchOrderRequest {
|
|
747
|
+
interface RunesEstimateEtchParams extends EstimateEtchOrderRequest {
|
|
758
748
|
network?: BitcoinNetworkType;
|
|
759
749
|
}
|
|
760
|
-
type
|
|
761
|
-
type
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}
|
|
765
|
-
type EtchRunesResult = {
|
|
766
|
-
orderId: string;
|
|
767
|
-
fundTransactionId: string;
|
|
768
|
-
fundingAddress: string;
|
|
769
|
-
};
|
|
770
|
-
type EtchRunes = MethodParamsAndResult<EtchRunesParams, EtchRunesResult>;
|
|
771
|
-
interface GetOrderParams extends GetOrderRequest {
|
|
772
|
-
network?: BitcoinNetworkType;
|
|
773
|
-
}
|
|
774
|
-
type GetOrder = MethodParamsAndResult<GetOrderParams, GetOrderResponse>;
|
|
775
|
-
interface EstimateRbfOrderParams extends RBFOrderRequest {
|
|
750
|
+
type RunesEstimateEtchResult = EstimateOrderResponse;
|
|
751
|
+
type RunesEstimateEtch = MethodParamsAndResult<RunesEstimateEtchParams, RunesEstimateEtchResult>;
|
|
752
|
+
|
|
753
|
+
interface runesEstimateMintParams extends EstimateMintOrderRequest {
|
|
776
754
|
network?: BitcoinNetworkType;
|
|
777
755
|
}
|
|
778
|
-
type
|
|
779
|
-
|
|
756
|
+
type runesEstimateMintResult = EstimateOrderResponse;
|
|
757
|
+
type RunesEstimateMint = MethodParamsAndResult<runesEstimateMintParams, runesEstimateMintResult>;
|
|
758
|
+
|
|
759
|
+
interface RunesEstimateRbfOrderParams extends RBFOrderRequest {
|
|
780
760
|
network?: BitcoinNetworkType;
|
|
781
761
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
762
|
+
type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams, RBFOrderResponse>;
|
|
763
|
+
|
|
764
|
+
declare const runesEtchMethodName = "runes_etch";
|
|
765
|
+
declare const runesEtchParamsSchema: v.ObjectSchema<{
|
|
766
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
767
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
768
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
769
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
770
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
771
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
772
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
773
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
774
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
775
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
776
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
777
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
778
|
+
readonly amount: v.StringSchema<undefined>;
|
|
779
|
+
readonly cap: v.StringSchema<undefined>;
|
|
780
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
781
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
782
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
783
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
784
|
+
}, undefined>, never>;
|
|
785
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
786
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
787
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
788
|
+
}, undefined>, never>;
|
|
789
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
790
|
+
}, undefined>;
|
|
791
|
+
type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
|
|
792
|
+
declare const runesEtchResultSchema: v.ObjectSchema<{
|
|
793
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
794
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
795
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
796
|
+
}, undefined>;
|
|
797
|
+
type RunesEtchResult = v.InferOutput<typeof runesEtchResultSchema>;
|
|
798
|
+
declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
|
|
799
|
+
readonly method: v.LiteralSchema<"runes_etch", undefined>;
|
|
800
|
+
readonly params: v.ObjectSchema<{
|
|
801
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
802
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
803
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
804
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
805
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
806
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
807
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
808
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
809
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
810
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
811
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
812
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
813
|
+
readonly amount: v.StringSchema<undefined>;
|
|
814
|
+
readonly cap: v.StringSchema<undefined>;
|
|
815
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
816
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
817
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
818
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
819
|
+
}, undefined>, never>;
|
|
820
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
821
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
822
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
823
|
+
}, undefined>, never>;
|
|
824
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
825
|
+
}, undefined>;
|
|
826
|
+
readonly id: v.StringSchema<undefined>;
|
|
827
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
828
|
+
}, undefined>;
|
|
829
|
+
type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchema>;
|
|
830
|
+
type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
|
|
831
|
+
|
|
832
|
+
declare const runesGetBalanceMethodName = "runes_getBalance";
|
|
833
|
+
declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
834
|
+
type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
|
|
835
|
+
declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
792
836
|
readonly balances: v.ArraySchema<v.ObjectSchema<{
|
|
793
837
|
readonly runeName: v.StringSchema<undefined>;
|
|
794
838
|
readonly amount: v.StringSchema<undefined>;
|
|
@@ -797,25 +841,81 @@ declare const getRunesBalanceResultSchema: v.ObjectSchema<{
|
|
|
797
841
|
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
|
|
798
842
|
}, undefined>, undefined>;
|
|
799
843
|
}, undefined>;
|
|
800
|
-
type
|
|
801
|
-
declare const
|
|
844
|
+
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
845
|
+
declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
802
846
|
readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
|
|
803
847
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
804
848
|
readonly id: v.StringSchema<undefined>;
|
|
805
849
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
806
850
|
}, undefined>;
|
|
807
|
-
type
|
|
808
|
-
type
|
|
809
|
-
|
|
810
|
-
|
|
851
|
+
type runesGetBalanceRequestMessage = v.InferOutput<typeof runesGetBalanceRequestMessageSchema>;
|
|
852
|
+
type RunesGetBalance = MethodParamsAndResult<RunesGetBalanceParams, RunesGetBalanceResult>;
|
|
853
|
+
|
|
854
|
+
interface RunesGetOrderParams extends GetOrderRequest {
|
|
855
|
+
network?: BitcoinNetworkType;
|
|
856
|
+
}
|
|
857
|
+
type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse>;
|
|
858
|
+
|
|
859
|
+
declare const runesMintMethodName = "runes_mint";
|
|
860
|
+
declare const runesMintParamsSchema: v.ObjectSchema<{
|
|
861
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
862
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
863
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
864
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
865
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
866
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
867
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
868
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
869
|
+
}, undefined>;
|
|
870
|
+
type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
|
|
871
|
+
declare const runesMintResultSchema: v.ObjectSchema<{
|
|
872
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
873
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
874
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
875
|
+
}, undefined>;
|
|
876
|
+
type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
|
|
877
|
+
declare const runesMintRequestMessageSchema: v.ObjectSchema<{
|
|
878
|
+
readonly method: v.LiteralSchema<"runes_mint", undefined>;
|
|
879
|
+
readonly params: v.ObjectSchema<{
|
|
880
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
881
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
882
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
883
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
884
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
885
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
886
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
887
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
888
|
+
}, undefined>;
|
|
889
|
+
readonly id: v.StringSchema<undefined>;
|
|
890
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
891
|
+
}, undefined>;
|
|
892
|
+
type RunesMintRequestMessage = v.InferOutput<typeof runesMintRequestMessageSchema>;
|
|
893
|
+
type RunesMint = MethodParamsAndResult<v.InferOutput<typeof runesMintParamsSchema>, v.InferOutput<typeof runesMintResultSchema>>;
|
|
894
|
+
|
|
895
|
+
interface RunesRbfOrderParams extends RBFOrderRequest {
|
|
896
|
+
network?: BitcoinNetworkType;
|
|
897
|
+
}
|
|
898
|
+
interface RunesRbfOrderResult {
|
|
899
|
+
orderId: string;
|
|
900
|
+
fundRBFTransactionId: string;
|
|
901
|
+
fundingAddress: string;
|
|
902
|
+
}
|
|
903
|
+
type RunesRbfOrder = MethodParamsAndResult<RunesRbfOrderParams, RunesRbfOrderResult>;
|
|
904
|
+
|
|
905
|
+
declare const runesTransferMethodName = "runes_transfer";
|
|
906
|
+
declare const runesTransferParamsSchema: v.ObjectSchema<{
|
|
811
907
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
812
908
|
readonly runeName: v.StringSchema<undefined>;
|
|
813
909
|
readonly amount: v.StringSchema<undefined>;
|
|
814
910
|
readonly address: v.StringSchema<undefined>;
|
|
815
911
|
}, undefined>, undefined>;
|
|
816
912
|
}, undefined>;
|
|
817
|
-
type TransferRunesParams = v.InferOutput<typeof
|
|
818
|
-
declare const
|
|
913
|
+
type TransferRunesParams = v.InferOutput<typeof runesTransferParamsSchema>;
|
|
914
|
+
declare const runesTransferResultSchema: v.ObjectSchema<{
|
|
915
|
+
readonly txid: v.StringSchema<undefined>;
|
|
916
|
+
}, undefined>;
|
|
917
|
+
type RunesTransferResult = v.InferOutput<typeof runesTransferResultSchema>;
|
|
918
|
+
declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
|
|
819
919
|
readonly method: v.LiteralSchema<"runes_transfer", undefined>;
|
|
820
920
|
readonly params: v.ObjectSchema<{
|
|
821
921
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -827,120 +927,9 @@ declare const transferRunesRequestSchema: v.ObjectSchema<{
|
|
|
827
927
|
readonly id: v.StringSchema<undefined>;
|
|
828
928
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
829
929
|
}, undefined>;
|
|
830
|
-
type
|
|
831
|
-
|
|
832
|
-
readonly txid: v.StringSchema<undefined>;
|
|
833
|
-
}, undefined>;
|
|
834
|
-
type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
|
|
835
|
-
type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
|
|
930
|
+
type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
|
|
931
|
+
type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
|
|
836
932
|
|
|
837
|
-
interface Pubkey {
|
|
838
|
-
/**
|
|
839
|
-
* When sending a transfer STX request to a wallet, users can generally
|
|
840
|
-
* choose from which accout they want to send the STX tokens from. In
|
|
841
|
-
* cases where applications want the transfer to be made from a specific
|
|
842
|
-
* account, they can provide the `pubkey` of the address they'd like the
|
|
843
|
-
* transfer to be made from. It is up to wallet providers to handle this
|
|
844
|
-
* field as they see fit.
|
|
845
|
-
*/
|
|
846
|
-
pubkey: string;
|
|
847
|
-
}
|
|
848
|
-
interface Address {
|
|
849
|
-
/**
|
|
850
|
-
* A Crockford base-32 encoded Stacks address.
|
|
851
|
-
*/
|
|
852
|
-
address: string;
|
|
853
|
-
}
|
|
854
|
-
interface PostConditions {
|
|
855
|
-
/**
|
|
856
|
-
* A hex-encoded string representing the post conditions.
|
|
857
|
-
*
|
|
858
|
-
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
859
|
-
*
|
|
860
|
-
* ```js
|
|
861
|
-
* import { serializePostCondition } from '@stacks/transactions';
|
|
862
|
-
*
|
|
863
|
-
* const postCondition = somePostCondition;
|
|
864
|
-
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
865
|
-
* ```
|
|
866
|
-
*/
|
|
867
|
-
postConditions: Array<string>;
|
|
868
|
-
}
|
|
869
|
-
interface PostConditionMode {
|
|
870
|
-
/**
|
|
871
|
-
* The mode of the post conditions.
|
|
872
|
-
*/
|
|
873
|
-
postConditionMode: number;
|
|
874
|
-
}
|
|
875
|
-
interface ParameterFormatVersion {
|
|
876
|
-
/**
|
|
877
|
-
* Version of parameter format.
|
|
878
|
-
*/
|
|
879
|
-
version: string;
|
|
880
|
-
}
|
|
881
|
-
interface Recipient {
|
|
882
|
-
/**
|
|
883
|
-
* The recipeint's Crockford base-32 encoded Stacks address.
|
|
884
|
-
*/
|
|
885
|
-
recipient: string;
|
|
886
|
-
}
|
|
887
|
-
interface Amount {
|
|
888
|
-
/**
|
|
889
|
-
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
890
|
-
* parseable by `BigInt` is acceptable.
|
|
891
|
-
*
|
|
892
|
-
* Example,
|
|
893
|
-
*
|
|
894
|
-
* ```js
|
|
895
|
-
* const amount1 = 1234;
|
|
896
|
-
* const amount2 = 1234n;
|
|
897
|
-
* const amount3 = '1234';
|
|
898
|
-
* ```
|
|
899
|
-
*/
|
|
900
|
-
amount: number | string;
|
|
901
|
-
}
|
|
902
|
-
interface Memo {
|
|
903
|
-
/**
|
|
904
|
-
* A string representing the memo.
|
|
905
|
-
*/
|
|
906
|
-
memo: string;
|
|
907
|
-
}
|
|
908
|
-
interface TxId {
|
|
909
|
-
/**
|
|
910
|
-
* The ID of the transaction.
|
|
911
|
-
*/
|
|
912
|
-
txid: string;
|
|
913
|
-
}
|
|
914
|
-
interface Transaction {
|
|
915
|
-
/**
|
|
916
|
-
* A Stacks transaction as a hex-encoded string.
|
|
917
|
-
*/
|
|
918
|
-
transaction: string;
|
|
919
|
-
}
|
|
920
|
-
interface Message {
|
|
921
|
-
/**
|
|
922
|
-
* Message payload to be signed.
|
|
923
|
-
*/
|
|
924
|
-
message: string;
|
|
925
|
-
}
|
|
926
|
-
interface Signature {
|
|
927
|
-
/**
|
|
928
|
-
* Signature of the message.
|
|
929
|
-
*/
|
|
930
|
-
signature: string;
|
|
931
|
-
}
|
|
932
|
-
interface PublicKey {
|
|
933
|
-
/**
|
|
934
|
-
* Public key as hex-encoded string.
|
|
935
|
-
*/
|
|
936
|
-
publicKey: string;
|
|
937
|
-
}
|
|
938
|
-
interface Domain {
|
|
939
|
-
/**
|
|
940
|
-
* The domain to be signed.
|
|
941
|
-
*/
|
|
942
|
-
domain: string;
|
|
943
|
-
}
|
|
944
933
|
declare const stxCallContractMethodName = "stx_callContract";
|
|
945
934
|
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
946
935
|
/**
|
|
@@ -1021,38 +1010,80 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1021
1010
|
}, undefined>;
|
|
1022
1011
|
type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
|
|
1023
1012
|
type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
type SignStxMessageParams = Message & Partial<Pubkey> & Partial<ParameterFormatVersion>;
|
|
1028
|
-
type SignStxMessageResult = Signature & PublicKey;
|
|
1029
|
-
type StxSignStxMessage = MethodParamsAndResult<SignStxMessageParams, SignStxMessageResult>;
|
|
1030
|
-
type SignStructuredMessageParams = Domain & Message & Partial<ParameterFormatVersion> & Partial<Pubkey>;
|
|
1031
|
-
type SignStructuredMessageResult = Signature & PublicKey;
|
|
1032
|
-
type StxSignStructuredMessage = MethodParamsAndResult<SignStructuredMessageParams, SignStructuredMessageResult>;
|
|
1033
|
-
interface DeployContractParams {
|
|
1013
|
+
|
|
1014
|
+
declare const stxDeployContractMethodName = "stx_deployContract";
|
|
1015
|
+
declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
1034
1016
|
/**
|
|
1035
1017
|
* Name of the contract.
|
|
1036
1018
|
*/
|
|
1037
|
-
name:
|
|
1019
|
+
readonly name: v.StringSchema<undefined>;
|
|
1038
1020
|
/**
|
|
1039
|
-
* The code of the Clarity contract.
|
|
1021
|
+
* The source code of the Clarity contract.
|
|
1040
1022
|
*/
|
|
1041
|
-
clarityCode:
|
|
1023
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
1042
1024
|
/**
|
|
1043
1025
|
* The version of the Clarity contract.
|
|
1044
1026
|
*/
|
|
1045
|
-
clarityVersion
|
|
1046
|
-
}
|
|
1047
|
-
type
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1027
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1028
|
+
}, undefined>;
|
|
1029
|
+
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1030
|
+
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
1031
|
+
/**
|
|
1032
|
+
* The ID of the transaction.
|
|
1033
|
+
*/
|
|
1034
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1035
|
+
/**
|
|
1036
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1037
|
+
*/
|
|
1038
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1039
|
+
}, undefined>;
|
|
1040
|
+
type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
|
|
1041
|
+
declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
1042
|
+
readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
|
|
1043
|
+
readonly params: v.ObjectSchema<{
|
|
1044
|
+
/**
|
|
1045
|
+
* Name of the contract.
|
|
1046
|
+
*/
|
|
1047
|
+
readonly name: v.StringSchema<undefined>;
|
|
1048
|
+
/**
|
|
1049
|
+
* The source code of the Clarity contract.
|
|
1050
|
+
*/
|
|
1051
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
1052
|
+
/**
|
|
1053
|
+
* The version of the Clarity contract.
|
|
1054
|
+
*/
|
|
1055
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1056
|
+
}, undefined>;
|
|
1057
|
+
readonly id: v.StringSchema<undefined>;
|
|
1058
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1059
|
+
}, undefined>;
|
|
1060
|
+
type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
|
|
1061
|
+
type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
|
|
1062
|
+
|
|
1063
|
+
declare const stxGetAccountsMethodName = "stx_getAccounts";
|
|
1064
|
+
declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1065
|
+
type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
|
|
1066
|
+
declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
1067
|
+
/**
|
|
1068
|
+
* The addresses generated for the given purposes.
|
|
1069
|
+
*/
|
|
1070
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1071
|
+
readonly address: v.StringSchema<undefined>;
|
|
1072
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1073
|
+
readonly gaiaHubUrl: v.StringSchema<undefined>;
|
|
1074
|
+
readonly gaiaAppKey: v.StringSchema<undefined>;
|
|
1075
|
+
}, undefined>, undefined>;
|
|
1076
|
+
}, undefined>;
|
|
1077
|
+
type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
|
|
1078
|
+
declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
1079
|
+
readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
|
|
1080
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1081
|
+
readonly id: v.StringSchema<undefined>;
|
|
1082
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1083
|
+
}, undefined>;
|
|
1084
|
+
type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
|
|
1085
|
+
type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
|
|
1086
|
+
|
|
1056
1087
|
declare const stxGetAddressesMethodName = "stx_getAddresses";
|
|
1057
1088
|
declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1058
1089
|
/**
|
|
@@ -1086,6 +1117,113 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
1086
1117
|
}, undefined>;
|
|
1087
1118
|
type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
|
|
1088
1119
|
type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
|
|
1120
|
+
|
|
1121
|
+
declare const stxSignMessageMethodName = "stx_signMessage";
|
|
1122
|
+
declare const stxSignMessageParamsSchema: v.ObjectSchema<{
|
|
1123
|
+
/**
|
|
1124
|
+
* The message to sign.
|
|
1125
|
+
*/
|
|
1126
|
+
readonly message: v.StringSchema<undefined>;
|
|
1127
|
+
/**
|
|
1128
|
+
* The public key to sign the message with.
|
|
1129
|
+
*/
|
|
1130
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1131
|
+
/**
|
|
1132
|
+
* The format version of the parameter.
|
|
1133
|
+
*/
|
|
1134
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1135
|
+
}, undefined>;
|
|
1136
|
+
type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
|
|
1137
|
+
declare const stxSignMessageResultSchema: v.ObjectSchema<{
|
|
1138
|
+
/**
|
|
1139
|
+
* The signature of the message.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1142
|
+
/**
|
|
1143
|
+
* The public key used to sign the message.
|
|
1144
|
+
*/
|
|
1145
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1146
|
+
}, undefined>;
|
|
1147
|
+
type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
|
|
1148
|
+
declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1149
|
+
readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
|
|
1150
|
+
readonly params: v.ObjectSchema<{
|
|
1151
|
+
/**
|
|
1152
|
+
* The message to sign.
|
|
1153
|
+
*/
|
|
1154
|
+
readonly message: v.StringSchema<undefined>;
|
|
1155
|
+
/**
|
|
1156
|
+
* The public key to sign the message with.
|
|
1157
|
+
*/
|
|
1158
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1159
|
+
/**
|
|
1160
|
+
* The format version of the parameter.
|
|
1161
|
+
*/
|
|
1162
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1163
|
+
}, undefined>;
|
|
1164
|
+
readonly id: v.StringSchema<undefined>;
|
|
1165
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1166
|
+
}, undefined>;
|
|
1167
|
+
type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
|
|
1168
|
+
type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
|
|
1169
|
+
|
|
1170
|
+
declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
|
|
1171
|
+
declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
|
|
1172
|
+
/**
|
|
1173
|
+
* The domain to be signed.
|
|
1174
|
+
*/
|
|
1175
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Message payload to be signed.
|
|
1178
|
+
*/
|
|
1179
|
+
readonly message: v.StringSchema<undefined>;
|
|
1180
|
+
/**
|
|
1181
|
+
* The format version of the parameter.
|
|
1182
|
+
*/
|
|
1183
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1184
|
+
/**
|
|
1185
|
+
* The public key to sign the message with.
|
|
1186
|
+
*/
|
|
1187
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1188
|
+
}, undefined>;
|
|
1189
|
+
type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
|
|
1190
|
+
declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
|
|
1191
|
+
/**
|
|
1192
|
+
* Signature of the message.
|
|
1193
|
+
*/
|
|
1194
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Public key as hex-encoded string.
|
|
1197
|
+
*/
|
|
1198
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1199
|
+
}, undefined>;
|
|
1200
|
+
type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
|
|
1201
|
+
declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1202
|
+
readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
|
|
1203
|
+
readonly params: v.ObjectSchema<{
|
|
1204
|
+
/**
|
|
1205
|
+
* The domain to be signed.
|
|
1206
|
+
*/
|
|
1207
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Message payload to be signed.
|
|
1210
|
+
*/
|
|
1211
|
+
readonly message: v.StringSchema<undefined>;
|
|
1212
|
+
/**
|
|
1213
|
+
* The format version of the parameter.
|
|
1214
|
+
*/
|
|
1215
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1216
|
+
/**
|
|
1217
|
+
* The public key to sign the message with.
|
|
1218
|
+
*/
|
|
1219
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1220
|
+
}, undefined>;
|
|
1221
|
+
readonly id: v.StringSchema<undefined>;
|
|
1222
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1223
|
+
}, undefined>;
|
|
1224
|
+
type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
|
|
1225
|
+
type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
|
|
1226
|
+
|
|
1089
1227
|
declare const stxSignTransactionMethodName = "stx_signTransaction";
|
|
1090
1228
|
declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
|
|
1091
1229
|
/**
|
|
@@ -1133,153 +1271,185 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
|
1133
1271
|
type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
|
|
1134
1272
|
type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
|
|
1135
1273
|
|
|
1274
|
+
declare const stxTransferStxMethodName = "stx_transferStx";
|
|
1275
|
+
declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
1276
|
+
/**
|
|
1277
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1278
|
+
* parseable by `BigInt` is acceptable.
|
|
1279
|
+
*
|
|
1280
|
+
* Example,
|
|
1281
|
+
*
|
|
1282
|
+
* ```js
|
|
1283
|
+
* const amount1 = 1234;
|
|
1284
|
+
* const amount2 = 1234n;
|
|
1285
|
+
* const amount3 = '1234';
|
|
1286
|
+
* ```
|
|
1287
|
+
*/
|
|
1288
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1289
|
+
/**
|
|
1290
|
+
* The recipeint's principal.
|
|
1291
|
+
*/
|
|
1292
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1293
|
+
/**
|
|
1294
|
+
* A string representing the memo.
|
|
1295
|
+
*/
|
|
1296
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Version of parameter format.
|
|
1299
|
+
*/
|
|
1300
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1301
|
+
/**
|
|
1302
|
+
* The mode of the post conditions.
|
|
1303
|
+
*/
|
|
1304
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1305
|
+
/**
|
|
1306
|
+
* A hex-encoded string representing the post conditions.
|
|
1307
|
+
*
|
|
1308
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1309
|
+
*
|
|
1310
|
+
* ```js
|
|
1311
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1312
|
+
*
|
|
1313
|
+
* const postCondition = somePostCondition;
|
|
1314
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1315
|
+
* ```
|
|
1316
|
+
*/
|
|
1317
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1318
|
+
/**
|
|
1319
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1320
|
+
* when not provided.
|
|
1321
|
+
*/
|
|
1322
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1323
|
+
}, undefined>;
|
|
1324
|
+
type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
|
|
1325
|
+
declare const stxTransferStxResultSchema: v.ObjectSchema<{
|
|
1326
|
+
/**
|
|
1327
|
+
* The ID of the transaction.
|
|
1328
|
+
*/
|
|
1329
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1330
|
+
/**
|
|
1331
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1332
|
+
*/
|
|
1333
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1334
|
+
}, undefined>;
|
|
1335
|
+
type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
|
|
1336
|
+
declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
1337
|
+
readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
|
|
1338
|
+
readonly params: v.ObjectSchema<{
|
|
1339
|
+
/**
|
|
1340
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1341
|
+
* parseable by `BigInt` is acceptable.
|
|
1342
|
+
*
|
|
1343
|
+
* Example,
|
|
1344
|
+
*
|
|
1345
|
+
* ```js
|
|
1346
|
+
* const amount1 = 1234;
|
|
1347
|
+
* const amount2 = 1234n;
|
|
1348
|
+
* const amount3 = '1234';
|
|
1349
|
+
* ```
|
|
1350
|
+
*/
|
|
1351
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1352
|
+
/**
|
|
1353
|
+
* The recipeint's principal.
|
|
1354
|
+
*/
|
|
1355
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1356
|
+
/**
|
|
1357
|
+
* A string representing the memo.
|
|
1358
|
+
*/
|
|
1359
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Version of parameter format.
|
|
1362
|
+
*/
|
|
1363
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1364
|
+
/**
|
|
1365
|
+
* The mode of the post conditions.
|
|
1366
|
+
*/
|
|
1367
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1368
|
+
/**
|
|
1369
|
+
* A hex-encoded string representing the post conditions.
|
|
1370
|
+
*
|
|
1371
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1372
|
+
*
|
|
1373
|
+
* ```js
|
|
1374
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1375
|
+
*
|
|
1376
|
+
* const postCondition = somePostCondition;
|
|
1377
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1378
|
+
* ```
|
|
1379
|
+
*/
|
|
1380
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1381
|
+
/**
|
|
1382
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1383
|
+
* when not provided.
|
|
1384
|
+
*/
|
|
1385
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1386
|
+
}, undefined>;
|
|
1387
|
+
readonly id: v.StringSchema<undefined>;
|
|
1388
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1389
|
+
}, undefined>;
|
|
1390
|
+
type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
|
|
1391
|
+
type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
|
|
1392
|
+
|
|
1393
|
+
declare const accountActionsSchema: v.ObjectSchema<{
|
|
1394
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1395
|
+
}, undefined>;
|
|
1396
|
+
declare const walletActionsSchema: v.ObjectSchema<{}, undefined>;
|
|
1397
|
+
declare const accountPermissionSchema: v.ObjectSchema<{
|
|
1398
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1399
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1400
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1401
|
+
readonly actions: v.ObjectSchema<{
|
|
1402
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1403
|
+
}, undefined>;
|
|
1404
|
+
}, undefined>;
|
|
1405
|
+
declare const walletPermissionSchema: v.ObjectSchema<{
|
|
1406
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1407
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1408
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1409
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1410
|
+
}, undefined>;
|
|
1136
1411
|
/**
|
|
1137
1412
|
* Permissions with the clientId field omitted and optional actions. Used for
|
|
1138
1413
|
* permission requests, since the wallet performs authentication based on the
|
|
1139
1414
|
* client's tab origin and should not rely on the client authenticating
|
|
1140
1415
|
* themselves.
|
|
1141
1416
|
*/
|
|
1142
|
-
declare const
|
|
1143
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1144
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1145
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1146
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1147
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1148
|
-
readonly entries: {
|
|
1149
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1150
|
-
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1151
|
-
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1152
|
-
};
|
|
1153
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1154
|
-
read?: boolean | undefined;
|
|
1155
|
-
autoSign?: boolean | undefined;
|
|
1156
|
-
rename?: boolean | undefined;
|
|
1157
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1158
|
-
readonly _types?: {
|
|
1159
|
-
readonly input: {
|
|
1160
|
-
read?: boolean | undefined;
|
|
1161
|
-
autoSign?: boolean | undefined;
|
|
1162
|
-
rename?: boolean | undefined;
|
|
1163
|
-
};
|
|
1164
|
-
readonly output: {
|
|
1165
|
-
read?: boolean | undefined;
|
|
1166
|
-
autoSign?: boolean | undefined;
|
|
1167
|
-
rename?: boolean | undefined;
|
|
1168
|
-
};
|
|
1169
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1170
|
-
} | undefined;
|
|
1171
|
-
};
|
|
1417
|
+
declare const PermissionRequestParams: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1172
1418
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1173
|
-
readonly resourceId: v.
|
|
1419
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1420
|
+
readonly actions: v.ObjectSchema<{
|
|
1421
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1422
|
+
}, undefined>;
|
|
1174
1423
|
}, undefined>, v.ObjectSchema<{
|
|
1175
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1176
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1177
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1178
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1179
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1180
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1181
|
-
readonly entries: {
|
|
1182
|
-
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1183
|
-
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1184
|
-
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1185
|
-
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1186
|
-
};
|
|
1187
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1188
|
-
addPrivateKey?: boolean | undefined;
|
|
1189
|
-
openPopup?: boolean | undefined;
|
|
1190
|
-
openFullPage?: boolean | undefined;
|
|
1191
|
-
readAllAccounts?: boolean | undefined;
|
|
1192
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1193
|
-
readonly _types?: {
|
|
1194
|
-
readonly input: {
|
|
1195
|
-
addPrivateKey?: boolean | undefined;
|
|
1196
|
-
openPopup?: boolean | undefined;
|
|
1197
|
-
openFullPage?: boolean | undefined;
|
|
1198
|
-
readAllAccounts?: boolean | undefined;
|
|
1199
|
-
};
|
|
1200
|
-
readonly output: {
|
|
1201
|
-
addPrivateKey?: boolean | undefined;
|
|
1202
|
-
openPopup?: boolean | undefined;
|
|
1203
|
-
openFullPage?: boolean | undefined;
|
|
1204
|
-
readAllAccounts?: boolean | undefined;
|
|
1205
|
-
};
|
|
1206
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1207
|
-
} | undefined;
|
|
1208
|
-
};
|
|
1209
1424
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1210
|
-
readonly resourceId: v.
|
|
1425
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1426
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1211
1427
|
}, undefined>], undefined>;
|
|
1212
|
-
|
|
1428
|
+
declare const permission: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1429
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1430
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1431
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1432
|
+
readonly actions: v.ObjectSchema<{
|
|
1433
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1434
|
+
}, undefined>;
|
|
1435
|
+
}, undefined>, v.ObjectSchema<{
|
|
1436
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1437
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1438
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1439
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1440
|
+
}, undefined>], undefined>;
|
|
1441
|
+
type PermissionWithoutClientId = v.InferOutput<typeof PermissionRequestParams>;
|
|
1213
1442
|
declare const requestPermissionsMethodName = "wallet_requestPermissions";
|
|
1214
1443
|
declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1215
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1216
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1217
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1218
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1219
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1220
|
-
readonly entries: {
|
|
1221
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1222
|
-
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1223
|
-
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1224
|
-
};
|
|
1225
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1226
|
-
read?: boolean | undefined;
|
|
1227
|
-
autoSign?: boolean | undefined;
|
|
1228
|
-
rename?: boolean | undefined;
|
|
1229
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1230
|
-
readonly _types?: {
|
|
1231
|
-
readonly input: {
|
|
1232
|
-
read?: boolean | undefined;
|
|
1233
|
-
autoSign?: boolean | undefined;
|
|
1234
|
-
rename?: boolean | undefined;
|
|
1235
|
-
};
|
|
1236
|
-
readonly output: {
|
|
1237
|
-
read?: boolean | undefined;
|
|
1238
|
-
autoSign?: boolean | undefined;
|
|
1239
|
-
rename?: boolean | undefined;
|
|
1240
|
-
};
|
|
1241
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1242
|
-
} | undefined;
|
|
1243
|
-
};
|
|
1244
1444
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1245
|
-
readonly resourceId: v.
|
|
1445
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1446
|
+
readonly actions: v.ObjectSchema<{
|
|
1447
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1448
|
+
}, undefined>;
|
|
1246
1449
|
}, undefined>, v.ObjectSchema<{
|
|
1247
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1248
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1249
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1250
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1251
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1252
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1253
|
-
readonly entries: {
|
|
1254
|
-
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1255
|
-
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1256
|
-
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1257
|
-
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1258
|
-
};
|
|
1259
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1260
|
-
addPrivateKey?: boolean | undefined;
|
|
1261
|
-
openPopup?: boolean | undefined;
|
|
1262
|
-
openFullPage?: boolean | undefined;
|
|
1263
|
-
readAllAccounts?: boolean | undefined;
|
|
1264
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1265
|
-
readonly _types?: {
|
|
1266
|
-
readonly input: {
|
|
1267
|
-
addPrivateKey?: boolean | undefined;
|
|
1268
|
-
openPopup?: boolean | undefined;
|
|
1269
|
-
openFullPage?: boolean | undefined;
|
|
1270
|
-
readAllAccounts?: boolean | undefined;
|
|
1271
|
-
};
|
|
1272
|
-
readonly output: {
|
|
1273
|
-
addPrivateKey?: boolean | undefined;
|
|
1274
|
-
openPopup?: boolean | undefined;
|
|
1275
|
-
openFullPage?: boolean | undefined;
|
|
1276
|
-
readAllAccounts?: boolean | undefined;
|
|
1277
|
-
};
|
|
1278
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1279
|
-
} | undefined;
|
|
1280
|
-
};
|
|
1281
1450
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1282
|
-
readonly resourceId: v.
|
|
1451
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1452
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1283
1453
|
}, undefined>], undefined>, undefined>, never>;
|
|
1284
1454
|
type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
|
|
1285
1455
|
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
@@ -1287,74 +1457,15 @@ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSch
|
|
|
1287
1457
|
declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1288
1458
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
1289
1459
|
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1290
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1291
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1292
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1293
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1294
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1295
|
-
readonly entries: {
|
|
1296
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1297
|
-
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1298
|
-
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1299
|
-
};
|
|
1300
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1301
|
-
read?: boolean | undefined;
|
|
1302
|
-
autoSign?: boolean | undefined;
|
|
1303
|
-
rename?: boolean | undefined;
|
|
1304
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1305
|
-
readonly _types?: {
|
|
1306
|
-
readonly input: {
|
|
1307
|
-
read?: boolean | undefined;
|
|
1308
|
-
autoSign?: boolean | undefined;
|
|
1309
|
-
rename?: boolean | undefined;
|
|
1310
|
-
};
|
|
1311
|
-
readonly output: {
|
|
1312
|
-
read?: boolean | undefined;
|
|
1313
|
-
autoSign?: boolean | undefined;
|
|
1314
|
-
rename?: boolean | undefined;
|
|
1315
|
-
};
|
|
1316
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1317
|
-
} | undefined;
|
|
1318
|
-
};
|
|
1319
1460
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1320
|
-
readonly resourceId: v.
|
|
1461
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1462
|
+
readonly actions: v.ObjectSchema<{
|
|
1463
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1464
|
+
}, undefined>;
|
|
1321
1465
|
}, undefined>, v.ObjectSchema<{
|
|
1322
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1323
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1324
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1325
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1326
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1327
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1328
|
-
readonly entries: {
|
|
1329
|
-
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1330
|
-
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1331
|
-
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1332
|
-
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1333
|
-
};
|
|
1334
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1335
|
-
addPrivateKey?: boolean | undefined;
|
|
1336
|
-
openPopup?: boolean | undefined;
|
|
1337
|
-
openFullPage?: boolean | undefined;
|
|
1338
|
-
readAllAccounts?: boolean | undefined;
|
|
1339
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1340
|
-
readonly _types?: {
|
|
1341
|
-
readonly input: {
|
|
1342
|
-
addPrivateKey?: boolean | undefined;
|
|
1343
|
-
openPopup?: boolean | undefined;
|
|
1344
|
-
openFullPage?: boolean | undefined;
|
|
1345
|
-
readAllAccounts?: boolean | undefined;
|
|
1346
|
-
};
|
|
1347
|
-
readonly output: {
|
|
1348
|
-
addPrivateKey?: boolean | undefined;
|
|
1349
|
-
openPopup?: boolean | undefined;
|
|
1350
|
-
openFullPage?: boolean | undefined;
|
|
1351
|
-
readAllAccounts?: boolean | undefined;
|
|
1352
|
-
};
|
|
1353
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1354
|
-
} | undefined;
|
|
1355
|
-
};
|
|
1356
1466
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1357
|
-
readonly resourceId: v.
|
|
1467
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1468
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1358
1469
|
}, undefined>], undefined>, undefined>, never>;
|
|
1359
1470
|
readonly id: v.StringSchema<undefined>;
|
|
1360
1471
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1405,23 +1516,16 @@ declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<un
|
|
|
1405
1516
|
type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
|
|
1406
1517
|
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1407
1518
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1408
|
-
readonly resourceId: v.
|
|
1519
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1409
1520
|
readonly clientId: v.StringSchema<undefined>;
|
|
1410
1521
|
readonly actions: v.ObjectSchema<{
|
|
1411
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1412
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1413
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1522
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1414
1523
|
}, undefined>;
|
|
1415
1524
|
}, undefined>, v.ObjectSchema<{
|
|
1416
1525
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1417
|
-
readonly resourceId: v.
|
|
1526
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1418
1527
|
readonly clientId: v.StringSchema<undefined>;
|
|
1419
|
-
readonly actions: v.ObjectSchema<{
|
|
1420
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1421
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1422
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1423
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1424
|
-
}, undefined>;
|
|
1528
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1425
1529
|
}, undefined>], undefined>, undefined>;
|
|
1426
1530
|
type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
|
|
1427
1531
|
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1436,7 +1540,7 @@ declare const getAccountMethodName = "wallet_getAccount";
|
|
|
1436
1540
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1437
1541
|
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
1438
1542
|
declare const getAccountResultSchema: v.ObjectSchema<{
|
|
1439
|
-
readonly id: v.
|
|
1543
|
+
readonly id: v.StringSchema<undefined>;
|
|
1440
1544
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1441
1545
|
readonly address: v.StringSchema<undefined>;
|
|
1442
1546
|
readonly publicKey: v.StringSchema<undefined>;
|
|
@@ -1457,79 +1561,22 @@ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
|
1457
1561
|
declare const connectMethodName = "wallet_connect";
|
|
1458
1562
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1459
1563
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1460
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1461
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1462
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1463
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1464
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1465
|
-
readonly entries: {
|
|
1466
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1467
|
-
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1468
|
-
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1469
|
-
};
|
|
1470
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1471
|
-
read?: boolean | undefined;
|
|
1472
|
-
autoSign?: boolean | undefined;
|
|
1473
|
-
rename?: boolean | undefined;
|
|
1474
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1475
|
-
readonly _types?: {
|
|
1476
|
-
readonly input: {
|
|
1477
|
-
read?: boolean | undefined;
|
|
1478
|
-
autoSign?: boolean | undefined;
|
|
1479
|
-
rename?: boolean | undefined;
|
|
1480
|
-
};
|
|
1481
|
-
readonly output: {
|
|
1482
|
-
read?: boolean | undefined;
|
|
1483
|
-
autoSign?: boolean | undefined;
|
|
1484
|
-
rename?: boolean | undefined;
|
|
1485
|
-
};
|
|
1486
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1487
|
-
} | undefined;
|
|
1488
|
-
};
|
|
1489
1564
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1490
|
-
readonly resourceId: v.
|
|
1565
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1566
|
+
readonly actions: v.ObjectSchema<{
|
|
1567
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1568
|
+
}, undefined>;
|
|
1491
1569
|
}, undefined>, v.ObjectSchema<{
|
|
1492
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1493
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1494
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1495
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1496
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1497
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1498
|
-
readonly entries: {
|
|
1499
|
-
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1500
|
-
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1501
|
-
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1502
|
-
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1503
|
-
};
|
|
1504
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1505
|
-
addPrivateKey?: boolean | undefined;
|
|
1506
|
-
openPopup?: boolean | undefined;
|
|
1507
|
-
openFullPage?: boolean | undefined;
|
|
1508
|
-
readAllAccounts?: boolean | undefined;
|
|
1509
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1510
|
-
readonly _types?: {
|
|
1511
|
-
readonly input: {
|
|
1512
|
-
addPrivateKey?: boolean | undefined;
|
|
1513
|
-
openPopup?: boolean | undefined;
|
|
1514
|
-
openFullPage?: boolean | undefined;
|
|
1515
|
-
readAllAccounts?: boolean | undefined;
|
|
1516
|
-
};
|
|
1517
|
-
readonly output: {
|
|
1518
|
-
addPrivateKey?: boolean | undefined;
|
|
1519
|
-
openPopup?: boolean | undefined;
|
|
1520
|
-
openFullPage?: boolean | undefined;
|
|
1521
|
-
readAllAccounts?: boolean | undefined;
|
|
1522
|
-
};
|
|
1523
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1524
|
-
} | undefined;
|
|
1525
|
-
};
|
|
1526
1570
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1527
|
-
readonly resourceId: v.
|
|
1571
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1572
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1528
1573
|
}, undefined>], undefined>, undefined>, never>;
|
|
1574
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1575
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1529
1576
|
}, undefined>, never>;
|
|
1530
1577
|
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1531
1578
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
1532
|
-
readonly id: v.
|
|
1579
|
+
readonly id: v.StringSchema<undefined>;
|
|
1533
1580
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1534
1581
|
readonly address: v.StringSchema<undefined>;
|
|
1535
1582
|
readonly publicKey: v.StringSchema<undefined>;
|
|
@@ -1543,75 +1590,18 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1543
1590
|
readonly method: v.LiteralSchema<"wallet_connect", undefined>;
|
|
1544
1591
|
readonly params: v.NullishSchema<v.ObjectSchema<{
|
|
1545
1592
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1546
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1547
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1548
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1549
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1550
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1551
|
-
readonly entries: {
|
|
1552
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1553
|
-
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1554
|
-
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1555
|
-
};
|
|
1556
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1557
|
-
read?: boolean | undefined;
|
|
1558
|
-
autoSign?: boolean | undefined;
|
|
1559
|
-
rename?: boolean | undefined;
|
|
1560
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1561
|
-
readonly _types?: {
|
|
1562
|
-
readonly input: {
|
|
1563
|
-
read?: boolean | undefined;
|
|
1564
|
-
autoSign?: boolean | undefined;
|
|
1565
|
-
rename?: boolean | undefined;
|
|
1566
|
-
};
|
|
1567
|
-
readonly output: {
|
|
1568
|
-
read?: boolean | undefined;
|
|
1569
|
-
autoSign?: boolean | undefined;
|
|
1570
|
-
rename?: boolean | undefined;
|
|
1571
|
-
};
|
|
1572
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1573
|
-
} | undefined;
|
|
1574
|
-
};
|
|
1575
1593
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1576
|
-
readonly resourceId: v.
|
|
1594
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1595
|
+
readonly actions: v.ObjectSchema<{
|
|
1596
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1597
|
+
}, undefined>;
|
|
1577
1598
|
}, undefined>, v.ObjectSchema<{
|
|
1578
|
-
readonly actions: Omit<v.ObjectSchema<{
|
|
1579
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1580
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1581
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1582
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1583
|
-
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1584
|
-
readonly entries: {
|
|
1585
|
-
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1586
|
-
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1587
|
-
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1588
|
-
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1589
|
-
};
|
|
1590
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1591
|
-
addPrivateKey?: boolean | undefined;
|
|
1592
|
-
openPopup?: boolean | undefined;
|
|
1593
|
-
openFullPage?: boolean | undefined;
|
|
1594
|
-
readAllAccounts?: boolean | undefined;
|
|
1595
|
-
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1596
|
-
readonly _types?: {
|
|
1597
|
-
readonly input: {
|
|
1598
|
-
addPrivateKey?: boolean | undefined;
|
|
1599
|
-
openPopup?: boolean | undefined;
|
|
1600
|
-
openFullPage?: boolean | undefined;
|
|
1601
|
-
readAllAccounts?: boolean | undefined;
|
|
1602
|
-
};
|
|
1603
|
-
readonly output: {
|
|
1604
|
-
addPrivateKey?: boolean | undefined;
|
|
1605
|
-
openPopup?: boolean | undefined;
|
|
1606
|
-
openFullPage?: boolean | undefined;
|
|
1607
|
-
readAllAccounts?: boolean | undefined;
|
|
1608
|
-
};
|
|
1609
|
-
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1610
|
-
} | undefined;
|
|
1611
|
-
};
|
|
1612
1599
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1613
|
-
readonly resourceId: v.
|
|
1600
|
+
readonly resourceId: v.StringSchema<undefined>;
|
|
1601
|
+
readonly actions: v.ObjectSchema<{}, undefined>;
|
|
1614
1602
|
}, undefined>], undefined>, undefined>, never>;
|
|
1603
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1604
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1615
1605
|
}, undefined>, never>;
|
|
1616
1606
|
readonly id: v.StringSchema<undefined>;
|
|
1617
1607
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1628,7 +1618,7 @@ interface StxRequests {
|
|
|
1628
1618
|
stx_deployContract: StxDeployContract;
|
|
1629
1619
|
stx_getAccounts: StxGetAccounts;
|
|
1630
1620
|
stx_getAddresses: StxGetAddresses;
|
|
1631
|
-
stx_signMessage:
|
|
1621
|
+
stx_signMessage: StxSignMessage;
|
|
1632
1622
|
stx_signStructuredMessage: StxSignStructuredMessage;
|
|
1633
1623
|
stx_signTransaction: StxSignTransaction;
|
|
1634
1624
|
stx_transferStx: StxTransferStx;
|
|
@@ -1645,15 +1635,15 @@ interface BtcRequests {
|
|
|
1645
1635
|
}
|
|
1646
1636
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1647
1637
|
interface RunesRequests {
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
runes_etch:
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
runes_transfer:
|
|
1638
|
+
runes_estimateEtch: RunesEstimateEtch;
|
|
1639
|
+
runes_estimateMint: RunesEstimateMint;
|
|
1640
|
+
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
1641
|
+
runes_etch: RunesEtch;
|
|
1642
|
+
runes_getBalance: RunesGetBalance;
|
|
1643
|
+
runes_getOrder: RunesGetOrder;
|
|
1644
|
+
runes_mint: RunesMint;
|
|
1645
|
+
runes_rbfOrder: RunesRbfOrder;
|
|
1646
|
+
runes_transfer: RunesTransfer;
|
|
1657
1647
|
}
|
|
1658
1648
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1659
1649
|
interface OrdinalsRequests {
|
|
@@ -1662,10 +1652,13 @@ interface OrdinalsRequests {
|
|
|
1662
1652
|
}
|
|
1663
1653
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1664
1654
|
interface WalletRequests {
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1655
|
+
wallet_connect: Connect;
|
|
1656
|
+
wallet_disconnect: Disconnect;
|
|
1657
|
+
wallet_getAccount: GetAccount;
|
|
1668
1658
|
wallet_getCurrentPermissions: GetCurrentPermissions;
|
|
1659
|
+
wallet_getWalletType: GetWalletType;
|
|
1660
|
+
wallet_renouncePermissions: RenouncePermissions;
|
|
1661
|
+
wallet_requestPermissions: RequestPermissions;
|
|
1669
1662
|
}
|
|
1670
1663
|
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1671
1664
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
@@ -1698,4 +1691,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1698
1691
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1699
1692
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1700
1693
|
|
|
1701
|
-
export { type AccountChangeEvent, type AddListener, type Address
|
|
1694
|
+
export { type AccountChangeEvent, type AddListener, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, PermissionRequestParams, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletActionsSchema, walletEventSchema, walletPermissionSchema, walletTypeSchema, walletTypes };
|