@sats-connect/core 0.4.0 → 0.4.1-364d53c
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 +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +325 -288
- package/dist/index.mjs +321 -288
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -181,6 +181,10 @@ __export(src_exports, {
|
|
|
181
181
|
stxSignTransactionParamsSchema: () => stxSignTransactionParamsSchema,
|
|
182
182
|
stxSignTransactionRequestMessageSchema: () => stxSignTransactionRequestMessageSchema,
|
|
183
183
|
stxSignTransactionResultSchema: () => stxSignTransactionResultSchema,
|
|
184
|
+
stxSignTransactionsMethodName: () => stxSignTransactionsMethodName,
|
|
185
|
+
stxSignTransactionsParamsSchema: () => stxSignTransactionsParamsSchema,
|
|
186
|
+
stxSignTransactionsRequestMessageSchema: () => stxSignTransactionsRequestMessageSchema,
|
|
187
|
+
stxSignTransactionsResultSchema: () => stxSignTransactionsResultSchema,
|
|
184
188
|
stxTransferStxMethodName: () => stxTransferStxMethodName,
|
|
185
189
|
stxTransferStxParamsSchema: () => stxTransferStxParamsSchema,
|
|
186
190
|
stxTransferStxRequestMessageSchema: () => stxTransferStxRequestMessageSchema,
|
|
@@ -304,7 +308,7 @@ var rpcResponseMessageSchema = v2.union([
|
|
|
304
308
|
]);
|
|
305
309
|
|
|
306
310
|
// src/request/index.ts
|
|
307
|
-
var
|
|
311
|
+
var v21 = __toESM(require("valibot"));
|
|
308
312
|
|
|
309
313
|
// src/request/types/stxMethods/callContract.ts
|
|
310
314
|
var v3 = __toESM(require("valibot"));
|
|
@@ -599,10 +603,40 @@ var stxSignTransactionRequestMessageSchema = v10.object({
|
|
|
599
603
|
}).entries
|
|
600
604
|
});
|
|
601
605
|
|
|
602
|
-
// src/request/types/stxMethods/
|
|
606
|
+
// src/request/types/stxMethods/signTransactions.ts
|
|
603
607
|
var v11 = __toESM(require("valibot"));
|
|
608
|
+
var stxSignTransactionsMethodName = "stx_signTransactions";
|
|
609
|
+
var stxSignTransactionsParamsSchema = v11.object({
|
|
610
|
+
/**
|
|
611
|
+
* The transactions to sign as hex-encoded strings.
|
|
612
|
+
*/
|
|
613
|
+
transactions: v11.array(v11.string()),
|
|
614
|
+
/**
|
|
615
|
+
* Whether the signed transactions should be broadcast after signing. Defaults
|
|
616
|
+
* to `true`.
|
|
617
|
+
*/
|
|
618
|
+
broadcast: v11.optional(v11.boolean())
|
|
619
|
+
});
|
|
620
|
+
var stxSignTransactionsResultSchema = v11.object({
|
|
621
|
+
/**
|
|
622
|
+
* The signed transactions as hex-encoded strings, in the same order as in the
|
|
623
|
+
* sign request.
|
|
624
|
+
*/
|
|
625
|
+
transactions: v11.array(v11.string())
|
|
626
|
+
});
|
|
627
|
+
var stxSignTransactionsRequestMessageSchema = v11.object({
|
|
628
|
+
...rpcRequestMessageSchema.entries,
|
|
629
|
+
...v11.object({
|
|
630
|
+
method: v11.literal(stxSignTransactionsMethodName),
|
|
631
|
+
params: stxSignTransactionsParamsSchema,
|
|
632
|
+
id: v11.string()
|
|
633
|
+
}).entries
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
// src/request/types/stxMethods/transferStx.ts
|
|
637
|
+
var v12 = __toESM(require("valibot"));
|
|
604
638
|
var stxTransferStxMethodName = "stx_transferStx";
|
|
605
|
-
var stxTransferStxParamsSchema =
|
|
639
|
+
var stxTransferStxParamsSchema = v12.object({
|
|
606
640
|
/**
|
|
607
641
|
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
608
642
|
* parseable by `BigInt` is acceptable.
|
|
@@ -615,23 +649,23 @@ var stxTransferStxParamsSchema = v11.object({
|
|
|
615
649
|
* const amount3 = '1234';
|
|
616
650
|
* ```
|
|
617
651
|
*/
|
|
618
|
-
amount:
|
|
652
|
+
amount: v12.union([v12.number(), v12.string()]),
|
|
619
653
|
/**
|
|
620
654
|
* The recipeint's principal.
|
|
621
655
|
*/
|
|
622
|
-
recipient:
|
|
656
|
+
recipient: v12.string(),
|
|
623
657
|
/**
|
|
624
658
|
* A string representing the memo.
|
|
625
659
|
*/
|
|
626
|
-
memo:
|
|
660
|
+
memo: v12.optional(v12.string()),
|
|
627
661
|
/**
|
|
628
662
|
* Version of parameter format.
|
|
629
663
|
*/
|
|
630
|
-
version:
|
|
664
|
+
version: v12.optional(v12.string()),
|
|
631
665
|
/**
|
|
632
666
|
* The mode of the post conditions.
|
|
633
667
|
*/
|
|
634
|
-
postConditionMode:
|
|
668
|
+
postConditionMode: v12.optional(v12.number()),
|
|
635
669
|
/**
|
|
636
670
|
* A hex-encoded string representing the post conditions.
|
|
637
671
|
*
|
|
@@ -644,89 +678,89 @@ var stxTransferStxParamsSchema = v11.object({
|
|
|
644
678
|
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
645
679
|
* ```
|
|
646
680
|
*/
|
|
647
|
-
postConditions:
|
|
681
|
+
postConditions: v12.optional(v12.array(v12.string())),
|
|
648
682
|
/**
|
|
649
683
|
* The public key to sign the transaction with. The wallet may use any key
|
|
650
684
|
* when not provided.
|
|
651
685
|
*/
|
|
652
|
-
pubkey:
|
|
686
|
+
pubkey: v12.optional(v12.string())
|
|
653
687
|
});
|
|
654
|
-
var stxTransferStxResultSchema =
|
|
688
|
+
var stxTransferStxResultSchema = v12.object({
|
|
655
689
|
/**
|
|
656
690
|
* The ID of the transaction.
|
|
657
691
|
*/
|
|
658
|
-
txid:
|
|
692
|
+
txid: v12.string(),
|
|
659
693
|
/**
|
|
660
694
|
* A Stacks transaction as a hex-encoded string.
|
|
661
695
|
*/
|
|
662
|
-
transaction:
|
|
696
|
+
transaction: v12.string()
|
|
663
697
|
});
|
|
664
|
-
var stxTransferStxRequestMessageSchema =
|
|
698
|
+
var stxTransferStxRequestMessageSchema = v12.object({
|
|
665
699
|
...rpcRequestMessageSchema.entries,
|
|
666
|
-
...
|
|
667
|
-
method:
|
|
700
|
+
...v12.object({
|
|
701
|
+
method: v12.literal(stxTransferStxMethodName),
|
|
668
702
|
params: stxTransferStxParamsSchema,
|
|
669
|
-
id:
|
|
703
|
+
id: v12.string()
|
|
670
704
|
}).entries
|
|
671
705
|
});
|
|
672
706
|
|
|
673
707
|
// src/request/types/btcMethods.ts
|
|
674
|
-
var
|
|
708
|
+
var v14 = __toESM(require("valibot"));
|
|
675
709
|
|
|
676
710
|
// src/request/types/common.ts
|
|
677
|
-
var
|
|
711
|
+
var v13 = __toESM(require("valibot"));
|
|
678
712
|
var walletTypes = ["software", "ledger"];
|
|
679
|
-
var walletTypeSchema =
|
|
713
|
+
var walletTypeSchema = v13.picklist(walletTypes);
|
|
680
714
|
|
|
681
715
|
// src/request/types/btcMethods.ts
|
|
682
716
|
var getInfoMethodName = "getInfo";
|
|
683
|
-
var getInfoParamsSchema =
|
|
684
|
-
var getInfoResultSchema =
|
|
717
|
+
var getInfoParamsSchema = v14.nullish(v14.null());
|
|
718
|
+
var getInfoResultSchema = v14.object({
|
|
685
719
|
/**
|
|
686
720
|
* Version of the wallet.
|
|
687
721
|
*/
|
|
688
|
-
version:
|
|
722
|
+
version: v14.string(),
|
|
689
723
|
/**
|
|
690
724
|
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
691
725
|
*/
|
|
692
|
-
methods:
|
|
726
|
+
methods: v14.optional(v14.array(v14.string())),
|
|
693
727
|
/**
|
|
694
728
|
* List of WBIP standards supported by the wallet. Not currently used.
|
|
695
729
|
*/
|
|
696
|
-
supports:
|
|
730
|
+
supports: v14.array(v14.string())
|
|
697
731
|
});
|
|
698
|
-
var getInfoRequestMessageSchema =
|
|
732
|
+
var getInfoRequestMessageSchema = v14.object({
|
|
699
733
|
...rpcRequestMessageSchema.entries,
|
|
700
|
-
...
|
|
701
|
-
method:
|
|
734
|
+
...v14.object({
|
|
735
|
+
method: v14.literal(getInfoMethodName),
|
|
702
736
|
params: getInfoParamsSchema,
|
|
703
|
-
id:
|
|
737
|
+
id: v14.string()
|
|
704
738
|
}).entries
|
|
705
739
|
});
|
|
706
740
|
var getAddressesMethodName = "getAddresses";
|
|
707
|
-
var getAddressesParamsSchema =
|
|
741
|
+
var getAddressesParamsSchema = v14.object({
|
|
708
742
|
/**
|
|
709
743
|
* The purposes for which to generate addresses. See
|
|
710
744
|
* {@linkcode AddressPurpose} for available purposes.
|
|
711
745
|
*/
|
|
712
|
-
purposes:
|
|
746
|
+
purposes: v14.array(v14.enum(AddressPurpose)),
|
|
713
747
|
/**
|
|
714
748
|
* A message to be displayed to the user in the request prompt.
|
|
715
749
|
*/
|
|
716
|
-
message:
|
|
750
|
+
message: v14.optional(v14.string())
|
|
717
751
|
});
|
|
718
|
-
var getAddressesResultSchema =
|
|
752
|
+
var getAddressesResultSchema = v14.object({
|
|
719
753
|
/**
|
|
720
754
|
* The addresses generated for the given purposes.
|
|
721
755
|
*/
|
|
722
|
-
addresses:
|
|
756
|
+
addresses: v14.array(addressSchema)
|
|
723
757
|
});
|
|
724
|
-
var getAddressesRequestMessageSchema =
|
|
758
|
+
var getAddressesRequestMessageSchema = v14.object({
|
|
725
759
|
...rpcRequestMessageSchema.entries,
|
|
726
|
-
...
|
|
727
|
-
method:
|
|
760
|
+
...v14.object({
|
|
761
|
+
method: v14.literal(getAddressesMethodName),
|
|
728
762
|
params: getAddressesParamsSchema,
|
|
729
|
-
id:
|
|
763
|
+
id: v14.string()
|
|
730
764
|
}).entries
|
|
731
765
|
});
|
|
732
766
|
var signMessageMethodName = "signMessage";
|
|
@@ -735,456 +769,456 @@ var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
|
|
|
735
769
|
MessageSigningProtocols2["BIP322"] = "BIP322";
|
|
736
770
|
return MessageSigningProtocols2;
|
|
737
771
|
})(MessageSigningProtocols || {});
|
|
738
|
-
var signMessageParamsSchema =
|
|
772
|
+
var signMessageParamsSchema = v14.object({
|
|
739
773
|
/**
|
|
740
774
|
* The address used for signing.
|
|
741
775
|
**/
|
|
742
|
-
address:
|
|
776
|
+
address: v14.string(),
|
|
743
777
|
/**
|
|
744
778
|
* The message to sign.
|
|
745
779
|
**/
|
|
746
|
-
message:
|
|
780
|
+
message: v14.string(),
|
|
747
781
|
/**
|
|
748
782
|
* The protocol to use for signing the message.
|
|
749
783
|
*/
|
|
750
|
-
protocol:
|
|
784
|
+
protocol: v14.optional(v14.enum(MessageSigningProtocols))
|
|
751
785
|
});
|
|
752
|
-
var signMessageResultSchema =
|
|
786
|
+
var signMessageResultSchema = v14.object({
|
|
753
787
|
/**
|
|
754
788
|
* The signature of the message.
|
|
755
789
|
*/
|
|
756
|
-
signature:
|
|
790
|
+
signature: v14.string(),
|
|
757
791
|
/**
|
|
758
792
|
* hash of the message.
|
|
759
793
|
*/
|
|
760
|
-
messageHash:
|
|
794
|
+
messageHash: v14.string(),
|
|
761
795
|
/**
|
|
762
796
|
* The address used for signing.
|
|
763
797
|
*/
|
|
764
|
-
address:
|
|
798
|
+
address: v14.string(),
|
|
765
799
|
/**
|
|
766
800
|
* The protocol to use for signing the message.
|
|
767
801
|
*/
|
|
768
|
-
protocol:
|
|
802
|
+
protocol: v14.enum(MessageSigningProtocols)
|
|
769
803
|
});
|
|
770
|
-
var signMessageRequestMessageSchema =
|
|
804
|
+
var signMessageRequestMessageSchema = v14.object({
|
|
771
805
|
...rpcRequestMessageSchema.entries,
|
|
772
|
-
...
|
|
773
|
-
method:
|
|
806
|
+
...v14.object({
|
|
807
|
+
method: v14.literal(signMessageMethodName),
|
|
774
808
|
params: signMessageParamsSchema,
|
|
775
|
-
id:
|
|
809
|
+
id: v14.string()
|
|
776
810
|
}).entries
|
|
777
811
|
});
|
|
778
812
|
var sendTransferMethodName = "sendTransfer";
|
|
779
|
-
var sendTransferParamsSchema =
|
|
813
|
+
var sendTransferParamsSchema = v14.object({
|
|
780
814
|
/**
|
|
781
815
|
* Array of recipients to send to.
|
|
782
816
|
* The amount to send to each recipient is in satoshis.
|
|
783
817
|
*/
|
|
784
|
-
recipients:
|
|
785
|
-
|
|
786
|
-
address:
|
|
787
|
-
amount:
|
|
818
|
+
recipients: v14.array(
|
|
819
|
+
v14.object({
|
|
820
|
+
address: v14.string(),
|
|
821
|
+
amount: v14.number()
|
|
788
822
|
})
|
|
789
823
|
)
|
|
790
824
|
});
|
|
791
|
-
var sendTransferResultSchema =
|
|
825
|
+
var sendTransferResultSchema = v14.object({
|
|
792
826
|
/**
|
|
793
827
|
* The transaction id as a hex-encoded string.
|
|
794
828
|
*/
|
|
795
|
-
txid:
|
|
829
|
+
txid: v14.string()
|
|
796
830
|
});
|
|
797
|
-
var sendTransferRequestMessageSchema =
|
|
831
|
+
var sendTransferRequestMessageSchema = v14.object({
|
|
798
832
|
...rpcRequestMessageSchema.entries,
|
|
799
|
-
...
|
|
800
|
-
method:
|
|
833
|
+
...v14.object({
|
|
834
|
+
method: v14.literal(sendTransferMethodName),
|
|
801
835
|
params: sendTransferParamsSchema,
|
|
802
|
-
id:
|
|
836
|
+
id: v14.string()
|
|
803
837
|
}).entries
|
|
804
838
|
});
|
|
805
839
|
var signPsbtMethodName = "signPsbt";
|
|
806
|
-
var signPsbtParamsSchema =
|
|
840
|
+
var signPsbtParamsSchema = v14.object({
|
|
807
841
|
/**
|
|
808
842
|
* The base64 encoded PSBT to sign.
|
|
809
843
|
*/
|
|
810
|
-
psbt:
|
|
844
|
+
psbt: v14.string(),
|
|
811
845
|
/**
|
|
812
846
|
* The inputs to sign.
|
|
813
847
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
814
848
|
*/
|
|
815
|
-
signInputs:
|
|
849
|
+
signInputs: v14.record(v14.string(), v14.array(v14.number())),
|
|
816
850
|
/**
|
|
817
851
|
* Whether to broadcast the transaction after signing.
|
|
818
852
|
**/
|
|
819
|
-
broadcast:
|
|
853
|
+
broadcast: v14.optional(v14.boolean())
|
|
820
854
|
});
|
|
821
|
-
var signPsbtResultSchema =
|
|
855
|
+
var signPsbtResultSchema = v14.object({
|
|
822
856
|
/**
|
|
823
857
|
* The base64 encoded PSBT after signing.
|
|
824
858
|
*/
|
|
825
|
-
psbt:
|
|
859
|
+
psbt: v14.string(),
|
|
826
860
|
/**
|
|
827
861
|
* The transaction id as a hex-encoded string.
|
|
828
862
|
* This is only returned if the transaction was broadcast.
|
|
829
863
|
**/
|
|
830
|
-
txid:
|
|
864
|
+
txid: v14.optional(v14.string())
|
|
831
865
|
});
|
|
832
|
-
var signPsbtRequestMessageSchema =
|
|
866
|
+
var signPsbtRequestMessageSchema = v14.object({
|
|
833
867
|
...rpcRequestMessageSchema.entries,
|
|
834
|
-
...
|
|
835
|
-
method:
|
|
868
|
+
...v14.object({
|
|
869
|
+
method: v14.literal(signPsbtMethodName),
|
|
836
870
|
params: signPsbtParamsSchema,
|
|
837
|
-
id:
|
|
871
|
+
id: v14.string()
|
|
838
872
|
}).entries
|
|
839
873
|
});
|
|
840
874
|
var getAccountsMethodName = "getAccounts";
|
|
841
|
-
var getAccountsParamsSchema =
|
|
875
|
+
var getAccountsParamsSchema = v14.object({
|
|
842
876
|
/**
|
|
843
877
|
* The purposes for which to generate addresses. See
|
|
844
878
|
* {@linkcode AddressPurpose} for available purposes.
|
|
845
879
|
*/
|
|
846
|
-
purposes:
|
|
880
|
+
purposes: v14.array(v14.enum(AddressPurpose)),
|
|
847
881
|
/**
|
|
848
882
|
* A message to be displayed to the user in the request prompt.
|
|
849
883
|
*/
|
|
850
|
-
message:
|
|
884
|
+
message: v14.optional(v14.string())
|
|
851
885
|
});
|
|
852
|
-
var getAccountsResultSchema =
|
|
853
|
-
|
|
886
|
+
var getAccountsResultSchema = v14.array(
|
|
887
|
+
v14.object({
|
|
854
888
|
...addressSchema.entries,
|
|
855
|
-
...
|
|
889
|
+
...v14.object({
|
|
856
890
|
walletType: walletTypeSchema
|
|
857
891
|
}).entries
|
|
858
892
|
})
|
|
859
893
|
);
|
|
860
|
-
var getAccountsRequestMessageSchema =
|
|
894
|
+
var getAccountsRequestMessageSchema = v14.object({
|
|
861
895
|
...rpcRequestMessageSchema.entries,
|
|
862
|
-
...
|
|
863
|
-
method:
|
|
896
|
+
...v14.object({
|
|
897
|
+
method: v14.literal(getAccountsMethodName),
|
|
864
898
|
params: getAccountsParamsSchema,
|
|
865
|
-
id:
|
|
899
|
+
id: v14.string()
|
|
866
900
|
}).entries
|
|
867
901
|
});
|
|
868
902
|
var getBalanceMethodName = "getBalance";
|
|
869
|
-
var getBalanceParamsSchema =
|
|
870
|
-
var getBalanceResultSchema =
|
|
903
|
+
var getBalanceParamsSchema = v14.nullish(v14.null());
|
|
904
|
+
var getBalanceResultSchema = v14.object({
|
|
871
905
|
/**
|
|
872
906
|
* The confirmed balance of the wallet in sats. Using a string due to chrome
|
|
873
907
|
* messages not supporting bigint
|
|
874
908
|
* (https://issues.chromium.org/issues/40116184).
|
|
875
909
|
*/
|
|
876
|
-
confirmed:
|
|
910
|
+
confirmed: v14.string(),
|
|
877
911
|
/**
|
|
878
912
|
* The unconfirmed balance of the wallet in sats. Using a string due to chrome
|
|
879
913
|
* messages not supporting bigint
|
|
880
914
|
* (https://issues.chromium.org/issues/40116184).
|
|
881
915
|
*/
|
|
882
|
-
unconfirmed:
|
|
916
|
+
unconfirmed: v14.string(),
|
|
883
917
|
/**
|
|
884
918
|
* The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
|
|
885
919
|
* sats. Using a string due to chrome messages not supporting bigint
|
|
886
920
|
* (https://issues.chromium.org/issues/40116184).
|
|
887
921
|
*/
|
|
888
|
-
total:
|
|
922
|
+
total: v14.string()
|
|
889
923
|
});
|
|
890
|
-
var getBalanceRequestMessageSchema =
|
|
924
|
+
var getBalanceRequestMessageSchema = v14.object({
|
|
891
925
|
...rpcRequestMessageSchema.entries,
|
|
892
|
-
...
|
|
893
|
-
method:
|
|
894
|
-
id:
|
|
926
|
+
...v14.object({
|
|
927
|
+
method: v14.literal(getBalanceMethodName),
|
|
928
|
+
id: v14.string()
|
|
895
929
|
}).entries
|
|
896
930
|
});
|
|
897
931
|
|
|
898
932
|
// src/request/types/walletMethods.ts
|
|
899
|
-
var
|
|
900
|
-
var accountActionsSchema =
|
|
901
|
-
read:
|
|
902
|
-
});
|
|
903
|
-
var walletActionsSchema =
|
|
904
|
-
var accountPermissionSchema =
|
|
905
|
-
type:
|
|
906
|
-
resourceId:
|
|
907
|
-
clientId:
|
|
933
|
+
var v15 = __toESM(require("valibot"));
|
|
934
|
+
var accountActionsSchema = v15.object({
|
|
935
|
+
read: v15.optional(v15.boolean())
|
|
936
|
+
});
|
|
937
|
+
var walletActionsSchema = v15.object({});
|
|
938
|
+
var accountPermissionSchema = v15.object({
|
|
939
|
+
type: v15.literal("account"),
|
|
940
|
+
resourceId: v15.string(),
|
|
941
|
+
clientId: v15.string(),
|
|
908
942
|
actions: accountActionsSchema
|
|
909
943
|
});
|
|
910
|
-
var walletPermissionSchema =
|
|
911
|
-
type:
|
|
912
|
-
resourceId:
|
|
913
|
-
clientId:
|
|
944
|
+
var walletPermissionSchema = v15.object({
|
|
945
|
+
type: v15.literal("wallet"),
|
|
946
|
+
resourceId: v15.string(),
|
|
947
|
+
clientId: v15.string(),
|
|
914
948
|
actions: walletActionsSchema
|
|
915
949
|
});
|
|
916
|
-
var PermissionRequestParams =
|
|
917
|
-
|
|
918
|
-
...
|
|
950
|
+
var PermissionRequestParams = v15.variant("type", [
|
|
951
|
+
v15.object({
|
|
952
|
+
...v15.omit(accountPermissionSchema, ["clientId"]).entries
|
|
919
953
|
}),
|
|
920
|
-
|
|
921
|
-
...
|
|
954
|
+
v15.object({
|
|
955
|
+
...v15.omit(walletPermissionSchema, ["clientId"]).entries
|
|
922
956
|
})
|
|
923
957
|
]);
|
|
924
|
-
var permission =
|
|
958
|
+
var permission = v15.variant("type", [accountPermissionSchema, walletPermissionSchema]);
|
|
925
959
|
var requestPermissionsMethodName = "wallet_requestPermissions";
|
|
926
|
-
var requestPermissionsParamsSchema =
|
|
927
|
-
var requestPermissionsResultSchema =
|
|
928
|
-
var requestPermissionsRequestMessageSchema =
|
|
960
|
+
var requestPermissionsParamsSchema = v15.nullish(v15.array(PermissionRequestParams));
|
|
961
|
+
var requestPermissionsResultSchema = v15.literal(true);
|
|
962
|
+
var requestPermissionsRequestMessageSchema = v15.object({
|
|
929
963
|
...rpcRequestMessageSchema.entries,
|
|
930
|
-
...
|
|
931
|
-
method:
|
|
964
|
+
...v15.object({
|
|
965
|
+
method: v15.literal(requestPermissionsMethodName),
|
|
932
966
|
params: requestPermissionsParamsSchema,
|
|
933
|
-
id:
|
|
967
|
+
id: v15.string()
|
|
934
968
|
}).entries
|
|
935
969
|
});
|
|
936
970
|
var renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
937
|
-
var renouncePermissionsParamsSchema =
|
|
938
|
-
var renouncePermissionsResultSchema =
|
|
939
|
-
var renouncePermissionsRequestMessageSchema =
|
|
971
|
+
var renouncePermissionsParamsSchema = v15.nullish(v15.null());
|
|
972
|
+
var renouncePermissionsResultSchema = v15.nullish(v15.null());
|
|
973
|
+
var renouncePermissionsRequestMessageSchema = v15.object({
|
|
940
974
|
...rpcRequestMessageSchema.entries,
|
|
941
|
-
...
|
|
942
|
-
method:
|
|
975
|
+
...v15.object({
|
|
976
|
+
method: v15.literal(renouncePermissionsMethodName),
|
|
943
977
|
params: renouncePermissionsParamsSchema,
|
|
944
|
-
id:
|
|
978
|
+
id: v15.string()
|
|
945
979
|
}).entries
|
|
946
980
|
});
|
|
947
981
|
var disconnectMethodName = "wallet_disconnect";
|
|
948
|
-
var disconnectParamsSchema =
|
|
949
|
-
var disconnectResultSchema =
|
|
950
|
-
var disconnectRequestMessageSchema =
|
|
982
|
+
var disconnectParamsSchema = v15.nullish(v15.null());
|
|
983
|
+
var disconnectResultSchema = v15.nullish(v15.null());
|
|
984
|
+
var disconnectRequestMessageSchema = v15.object({
|
|
951
985
|
...rpcRequestMessageSchema.entries,
|
|
952
|
-
...
|
|
953
|
-
method:
|
|
986
|
+
...v15.object({
|
|
987
|
+
method: v15.literal(disconnectMethodName),
|
|
954
988
|
params: disconnectParamsSchema,
|
|
955
|
-
id:
|
|
989
|
+
id: v15.string()
|
|
956
990
|
}).entries
|
|
957
991
|
});
|
|
958
992
|
var getWalletTypeMethodName = "wallet_getWalletType";
|
|
959
|
-
var getWalletTypeParamsSchema =
|
|
993
|
+
var getWalletTypeParamsSchema = v15.nullish(v15.null());
|
|
960
994
|
var getWalletTypeResultSchema = walletTypeSchema;
|
|
961
|
-
var getWalletTypeRequestMessageSchema =
|
|
995
|
+
var getWalletTypeRequestMessageSchema = v15.object({
|
|
962
996
|
...rpcRequestMessageSchema.entries,
|
|
963
|
-
...
|
|
964
|
-
method:
|
|
997
|
+
...v15.object({
|
|
998
|
+
method: v15.literal(getWalletTypeMethodName),
|
|
965
999
|
params: getWalletTypeParamsSchema,
|
|
966
|
-
id:
|
|
1000
|
+
id: v15.string()
|
|
967
1001
|
}).entries
|
|
968
1002
|
});
|
|
969
1003
|
var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
970
|
-
var getCurrentPermissionsParamsSchema =
|
|
971
|
-
var getCurrentPermissionsResultSchema =
|
|
972
|
-
var getCurrentPermissionsRequestMessageSchema =
|
|
1004
|
+
var getCurrentPermissionsParamsSchema = v15.nullish(v15.null());
|
|
1005
|
+
var getCurrentPermissionsResultSchema = v15.array(permission);
|
|
1006
|
+
var getCurrentPermissionsRequestMessageSchema = v15.object({
|
|
973
1007
|
...rpcRequestMessageSchema.entries,
|
|
974
|
-
...
|
|
975
|
-
method:
|
|
1008
|
+
...v15.object({
|
|
1009
|
+
method: v15.literal(getCurrentPermissionsMethodName),
|
|
976
1010
|
params: getCurrentPermissionsParamsSchema,
|
|
977
|
-
id:
|
|
1011
|
+
id: v15.string()
|
|
978
1012
|
}).entries
|
|
979
1013
|
});
|
|
980
1014
|
var getAccountMethodName = "wallet_getAccount";
|
|
981
|
-
var getAccountParamsSchema =
|
|
982
|
-
var getAccountResultSchema =
|
|
983
|
-
id:
|
|
984
|
-
addresses:
|
|
1015
|
+
var getAccountParamsSchema = v15.nullish(v15.null());
|
|
1016
|
+
var getAccountResultSchema = v15.object({
|
|
1017
|
+
id: v15.string(),
|
|
1018
|
+
addresses: v15.array(addressSchema),
|
|
985
1019
|
walletType: walletTypeSchema
|
|
986
1020
|
});
|
|
987
|
-
var getAccountRequestMessageSchema =
|
|
1021
|
+
var getAccountRequestMessageSchema = v15.object({
|
|
988
1022
|
...rpcRequestMessageSchema.entries,
|
|
989
|
-
...
|
|
990
|
-
method:
|
|
1023
|
+
...v15.object({
|
|
1024
|
+
method: v15.literal(getAccountMethodName),
|
|
991
1025
|
params: getAccountParamsSchema,
|
|
992
|
-
id:
|
|
1026
|
+
id: v15.string()
|
|
993
1027
|
}).entries
|
|
994
1028
|
});
|
|
995
1029
|
var connectMethodName = "wallet_connect";
|
|
996
|
-
var connectParamsSchema =
|
|
997
|
-
|
|
998
|
-
permissions:
|
|
999
|
-
addresses:
|
|
1000
|
-
message:
|
|
1001
|
-
|
|
1030
|
+
var connectParamsSchema = v15.nullish(
|
|
1031
|
+
v15.object({
|
|
1032
|
+
permissions: v15.optional(v15.array(PermissionRequestParams)),
|
|
1033
|
+
addresses: v15.optional(v15.array(v15.enum(AddressPurpose))),
|
|
1034
|
+
message: v15.optional(
|
|
1035
|
+
v15.pipe(v15.string(), v15.maxLength(80, "The message must not exceed 80 characters."))
|
|
1002
1036
|
)
|
|
1003
1037
|
})
|
|
1004
1038
|
);
|
|
1005
1039
|
var connectResultSchema = getAccountResultSchema;
|
|
1006
|
-
var connectRequestMessageSchema =
|
|
1040
|
+
var connectRequestMessageSchema = v15.object({
|
|
1007
1041
|
...rpcRequestMessageSchema.entries,
|
|
1008
|
-
...
|
|
1009
|
-
method:
|
|
1042
|
+
...v15.object({
|
|
1043
|
+
method: v15.literal(connectMethodName),
|
|
1010
1044
|
params: connectParamsSchema,
|
|
1011
|
-
id:
|
|
1045
|
+
id: v15.string()
|
|
1012
1046
|
}).entries
|
|
1013
1047
|
});
|
|
1014
1048
|
|
|
1015
1049
|
// src/request/types/runesMethods/etch.ts
|
|
1016
|
-
var
|
|
1050
|
+
var v16 = __toESM(require("valibot"));
|
|
1017
1051
|
var runesEtchMethodName = "runes_etch";
|
|
1018
|
-
var etchTermsSchema =
|
|
1019
|
-
amount:
|
|
1020
|
-
cap:
|
|
1021
|
-
heightStart:
|
|
1022
|
-
heightEnd:
|
|
1023
|
-
offsetStart:
|
|
1024
|
-
offsetEnd:
|
|
1025
|
-
});
|
|
1026
|
-
var inscriptionDetailsSchema =
|
|
1027
|
-
contentType:
|
|
1028
|
-
contentBase64:
|
|
1029
|
-
});
|
|
1030
|
-
var runesEtchParamsSchema =
|
|
1031
|
-
runeName:
|
|
1032
|
-
divisibility:
|
|
1033
|
-
symbol:
|
|
1034
|
-
premine:
|
|
1035
|
-
isMintable:
|
|
1036
|
-
delegateInscriptionId:
|
|
1037
|
-
destinationAddress:
|
|
1038
|
-
refundAddress:
|
|
1039
|
-
feeRate:
|
|
1040
|
-
appServiceFee:
|
|
1041
|
-
appServiceFeeAddress:
|
|
1042
|
-
terms:
|
|
1043
|
-
inscriptionDetails:
|
|
1044
|
-
network:
|
|
1045
|
-
});
|
|
1046
|
-
var runesEtchResultSchema =
|
|
1047
|
-
orderId:
|
|
1048
|
-
fundTransactionId:
|
|
1049
|
-
fundingAddress:
|
|
1050
|
-
});
|
|
1051
|
-
var runesEtchRequestMessageSchema =
|
|
1052
|
+
var etchTermsSchema = v16.object({
|
|
1053
|
+
amount: v16.string(),
|
|
1054
|
+
cap: v16.string(),
|
|
1055
|
+
heightStart: v16.optional(v16.string()),
|
|
1056
|
+
heightEnd: v16.optional(v16.string()),
|
|
1057
|
+
offsetStart: v16.optional(v16.string()),
|
|
1058
|
+
offsetEnd: v16.optional(v16.string())
|
|
1059
|
+
});
|
|
1060
|
+
var inscriptionDetailsSchema = v16.object({
|
|
1061
|
+
contentType: v16.string(),
|
|
1062
|
+
contentBase64: v16.string()
|
|
1063
|
+
});
|
|
1064
|
+
var runesEtchParamsSchema = v16.object({
|
|
1065
|
+
runeName: v16.string(),
|
|
1066
|
+
divisibility: v16.optional(v16.number()),
|
|
1067
|
+
symbol: v16.optional(v16.string()),
|
|
1068
|
+
premine: v16.optional(v16.string()),
|
|
1069
|
+
isMintable: v16.boolean(),
|
|
1070
|
+
delegateInscriptionId: v16.optional(v16.string()),
|
|
1071
|
+
destinationAddress: v16.string(),
|
|
1072
|
+
refundAddress: v16.string(),
|
|
1073
|
+
feeRate: v16.number(),
|
|
1074
|
+
appServiceFee: v16.optional(v16.number()),
|
|
1075
|
+
appServiceFeeAddress: v16.optional(v16.string()),
|
|
1076
|
+
terms: v16.optional(etchTermsSchema),
|
|
1077
|
+
inscriptionDetails: v16.optional(inscriptionDetailsSchema),
|
|
1078
|
+
network: v16.optional(v16.enum(BitcoinNetworkType))
|
|
1079
|
+
});
|
|
1080
|
+
var runesEtchResultSchema = v16.object({
|
|
1081
|
+
orderId: v16.string(),
|
|
1082
|
+
fundTransactionId: v16.string(),
|
|
1083
|
+
fundingAddress: v16.string()
|
|
1084
|
+
});
|
|
1085
|
+
var runesEtchRequestMessageSchema = v16.object({
|
|
1052
1086
|
...rpcRequestMessageSchema.entries,
|
|
1053
|
-
...
|
|
1054
|
-
method:
|
|
1087
|
+
...v16.object({
|
|
1088
|
+
method: v16.literal(runesEtchMethodName),
|
|
1055
1089
|
params: runesEtchParamsSchema,
|
|
1056
|
-
id:
|
|
1090
|
+
id: v16.string()
|
|
1057
1091
|
}).entries
|
|
1058
1092
|
});
|
|
1059
1093
|
|
|
1060
1094
|
// src/request/types/runesMethods/getBalance.ts
|
|
1061
|
-
var
|
|
1095
|
+
var v17 = __toESM(require("valibot"));
|
|
1062
1096
|
var runesGetBalanceMethodName = "runes_getBalance";
|
|
1063
|
-
var runesGetBalanceParamsSchema =
|
|
1064
|
-
var runesGetBalanceResultSchema =
|
|
1065
|
-
balances:
|
|
1066
|
-
|
|
1067
|
-
runeName:
|
|
1068
|
-
amount:
|
|
1069
|
-
divisibility:
|
|
1070
|
-
symbol:
|
|
1071
|
-
inscriptionId:
|
|
1097
|
+
var runesGetBalanceParamsSchema = v17.nullish(v17.null());
|
|
1098
|
+
var runesGetBalanceResultSchema = v17.object({
|
|
1099
|
+
balances: v17.array(
|
|
1100
|
+
v17.object({
|
|
1101
|
+
runeName: v17.string(),
|
|
1102
|
+
amount: v17.string(),
|
|
1103
|
+
divisibility: v17.number(),
|
|
1104
|
+
symbol: v17.string(),
|
|
1105
|
+
inscriptionId: v17.nullish(v17.string())
|
|
1072
1106
|
})
|
|
1073
1107
|
)
|
|
1074
1108
|
});
|
|
1075
|
-
var runesGetBalanceRequestMessageSchema =
|
|
1109
|
+
var runesGetBalanceRequestMessageSchema = v17.object({
|
|
1076
1110
|
...rpcRequestMessageSchema.entries,
|
|
1077
|
-
...
|
|
1078
|
-
method:
|
|
1111
|
+
...v17.object({
|
|
1112
|
+
method: v17.literal(runesGetBalanceMethodName),
|
|
1079
1113
|
params: runesGetBalanceParamsSchema,
|
|
1080
|
-
id:
|
|
1114
|
+
id: v17.string()
|
|
1081
1115
|
}).entries
|
|
1082
1116
|
});
|
|
1083
1117
|
|
|
1084
1118
|
// src/request/types/runesMethods/mint.ts
|
|
1085
|
-
var
|
|
1119
|
+
var v18 = __toESM(require("valibot"));
|
|
1086
1120
|
var runesMintMethodName = "runes_mint";
|
|
1087
|
-
var runesMintParamsSchema =
|
|
1088
|
-
appServiceFee:
|
|
1089
|
-
appServiceFeeAddress:
|
|
1090
|
-
destinationAddress:
|
|
1091
|
-
feeRate:
|
|
1092
|
-
refundAddress:
|
|
1093
|
-
repeats:
|
|
1094
|
-
runeName:
|
|
1095
|
-
network:
|
|
1096
|
-
});
|
|
1097
|
-
var runesMintResultSchema =
|
|
1098
|
-
orderId:
|
|
1099
|
-
fundTransactionId:
|
|
1100
|
-
fundingAddress:
|
|
1101
|
-
});
|
|
1102
|
-
var runesMintRequestMessageSchema =
|
|
1121
|
+
var runesMintParamsSchema = v18.object({
|
|
1122
|
+
appServiceFee: v18.optional(v18.number()),
|
|
1123
|
+
appServiceFeeAddress: v18.optional(v18.string()),
|
|
1124
|
+
destinationAddress: v18.string(),
|
|
1125
|
+
feeRate: v18.number(),
|
|
1126
|
+
refundAddress: v18.string(),
|
|
1127
|
+
repeats: v18.number(),
|
|
1128
|
+
runeName: v18.string(),
|
|
1129
|
+
network: v18.optional(v18.enum(BitcoinNetworkType))
|
|
1130
|
+
});
|
|
1131
|
+
var runesMintResultSchema = v18.object({
|
|
1132
|
+
orderId: v18.string(),
|
|
1133
|
+
fundTransactionId: v18.string(),
|
|
1134
|
+
fundingAddress: v18.string()
|
|
1135
|
+
});
|
|
1136
|
+
var runesMintRequestMessageSchema = v18.object({
|
|
1103
1137
|
...rpcRequestMessageSchema.entries,
|
|
1104
|
-
...
|
|
1105
|
-
method:
|
|
1138
|
+
...v18.object({
|
|
1139
|
+
method: v18.literal(runesMintMethodName),
|
|
1106
1140
|
params: runesMintParamsSchema,
|
|
1107
|
-
id:
|
|
1141
|
+
id: v18.string()
|
|
1108
1142
|
}).entries
|
|
1109
1143
|
});
|
|
1110
1144
|
|
|
1111
1145
|
// src/request/types/runesMethods/transfer.ts
|
|
1112
|
-
var
|
|
1146
|
+
var v19 = __toESM(require("valibot"));
|
|
1113
1147
|
var runesTransferMethodName = "runes_transfer";
|
|
1114
|
-
var runesTransferParamsSchema =
|
|
1115
|
-
recipients:
|
|
1116
|
-
|
|
1117
|
-
runeName:
|
|
1118
|
-
amount:
|
|
1119
|
-
address:
|
|
1148
|
+
var runesTransferParamsSchema = v19.object({
|
|
1149
|
+
recipients: v19.array(
|
|
1150
|
+
v19.object({
|
|
1151
|
+
runeName: v19.string(),
|
|
1152
|
+
amount: v19.string(),
|
|
1153
|
+
address: v19.string()
|
|
1120
1154
|
})
|
|
1121
1155
|
)
|
|
1122
1156
|
});
|
|
1123
|
-
var runesTransferResultSchema =
|
|
1124
|
-
txid:
|
|
1157
|
+
var runesTransferResultSchema = v19.object({
|
|
1158
|
+
txid: v19.string()
|
|
1125
1159
|
});
|
|
1126
|
-
var runesTransferRequestMessageSchema =
|
|
1160
|
+
var runesTransferRequestMessageSchema = v19.object({
|
|
1127
1161
|
...rpcRequestMessageSchema.entries,
|
|
1128
|
-
...
|
|
1129
|
-
method:
|
|
1162
|
+
...v19.object({
|
|
1163
|
+
method: v19.literal(runesTransferMethodName),
|
|
1130
1164
|
params: runesTransferParamsSchema,
|
|
1131
|
-
id:
|
|
1165
|
+
id: v19.string()
|
|
1132
1166
|
}).entries
|
|
1133
1167
|
});
|
|
1134
1168
|
|
|
1135
1169
|
// src/request/types/ordinalsMethods.ts
|
|
1136
|
-
var
|
|
1170
|
+
var v20 = __toESM(require("valibot"));
|
|
1137
1171
|
var getInscriptionsMethodName = "ord_getInscriptions";
|
|
1138
|
-
var getInscriptionsParamsSchema =
|
|
1139
|
-
offset:
|
|
1140
|
-
limit:
|
|
1141
|
-
});
|
|
1142
|
-
var getInscriptionsResultSchema =
|
|
1143
|
-
total:
|
|
1144
|
-
limit:
|
|
1145
|
-
offset:
|
|
1146
|
-
inscriptions:
|
|
1147
|
-
|
|
1148
|
-
inscriptionId:
|
|
1149
|
-
inscriptionNumber:
|
|
1150
|
-
address:
|
|
1151
|
-
collectionName:
|
|
1152
|
-
postage:
|
|
1153
|
-
contentLength:
|
|
1154
|
-
contentType:
|
|
1155
|
-
timestamp:
|
|
1156
|
-
offset:
|
|
1157
|
-
genesisTransaction:
|
|
1158
|
-
output:
|
|
1172
|
+
var getInscriptionsParamsSchema = v20.object({
|
|
1173
|
+
offset: v20.number(),
|
|
1174
|
+
limit: v20.number()
|
|
1175
|
+
});
|
|
1176
|
+
var getInscriptionsResultSchema = v20.object({
|
|
1177
|
+
total: v20.number(),
|
|
1178
|
+
limit: v20.number(),
|
|
1179
|
+
offset: v20.number(),
|
|
1180
|
+
inscriptions: v20.array(
|
|
1181
|
+
v20.object({
|
|
1182
|
+
inscriptionId: v20.string(),
|
|
1183
|
+
inscriptionNumber: v20.string(),
|
|
1184
|
+
address: v20.string(),
|
|
1185
|
+
collectionName: v20.optional(v20.string()),
|
|
1186
|
+
postage: v20.string(),
|
|
1187
|
+
contentLength: v20.string(),
|
|
1188
|
+
contentType: v20.string(),
|
|
1189
|
+
timestamp: v20.number(),
|
|
1190
|
+
offset: v20.number(),
|
|
1191
|
+
genesisTransaction: v20.string(),
|
|
1192
|
+
output: v20.string()
|
|
1159
1193
|
})
|
|
1160
1194
|
)
|
|
1161
1195
|
});
|
|
1162
|
-
var getInscriptionsRequestMessageSchema =
|
|
1196
|
+
var getInscriptionsRequestMessageSchema = v20.object({
|
|
1163
1197
|
...rpcRequestMessageSchema.entries,
|
|
1164
|
-
...
|
|
1165
|
-
method:
|
|
1198
|
+
...v20.object({
|
|
1199
|
+
method: v20.literal(getInscriptionsMethodName),
|
|
1166
1200
|
params: getInscriptionsParamsSchema,
|
|
1167
|
-
id:
|
|
1201
|
+
id: v20.string()
|
|
1168
1202
|
}).entries
|
|
1169
1203
|
});
|
|
1170
1204
|
var sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
1171
|
-
var sendInscriptionsParamsSchema =
|
|
1172
|
-
transfers:
|
|
1173
|
-
|
|
1174
|
-
address:
|
|
1175
|
-
inscriptionId:
|
|
1205
|
+
var sendInscriptionsParamsSchema = v20.object({
|
|
1206
|
+
transfers: v20.array(
|
|
1207
|
+
v20.object({
|
|
1208
|
+
address: v20.string(),
|
|
1209
|
+
inscriptionId: v20.string()
|
|
1176
1210
|
})
|
|
1177
1211
|
)
|
|
1178
1212
|
});
|
|
1179
|
-
var sendInscriptionsResultSchema =
|
|
1180
|
-
txid:
|
|
1213
|
+
var sendInscriptionsResultSchema = v20.object({
|
|
1214
|
+
txid: v20.string()
|
|
1181
1215
|
});
|
|
1182
|
-
var sendInscriptionsRequestMessageSchema =
|
|
1216
|
+
var sendInscriptionsRequestMessageSchema = v20.object({
|
|
1183
1217
|
...rpcRequestMessageSchema.entries,
|
|
1184
|
-
...
|
|
1185
|
-
method:
|
|
1218
|
+
...v20.object({
|
|
1219
|
+
method: v20.literal(sendInscriptionsMethodName),
|
|
1186
1220
|
params: sendInscriptionsParamsSchema,
|
|
1187
|
-
id:
|
|
1221
|
+
id: v20.string()
|
|
1188
1222
|
}).entries
|
|
1189
1223
|
});
|
|
1190
1224
|
|
|
@@ -1201,13 +1235,13 @@ var request = async (method, params, providerId) => {
|
|
|
1201
1235
|
throw new Error("A wallet method is required");
|
|
1202
1236
|
}
|
|
1203
1237
|
const response = await provider.request(method, params);
|
|
1204
|
-
if (
|
|
1238
|
+
if (v21.is(rpcErrorResponseMessageSchema, response)) {
|
|
1205
1239
|
return {
|
|
1206
1240
|
status: "error",
|
|
1207
1241
|
error: response.error
|
|
1208
1242
|
};
|
|
1209
1243
|
}
|
|
1210
|
-
if (
|
|
1244
|
+
if (v21.is(rpcSuccessResponseMessageSchema, response)) {
|
|
1211
1245
|
return {
|
|
1212
1246
|
status: "success",
|
|
1213
1247
|
result: response.result
|
|
@@ -1804,15 +1838,14 @@ var UnisatAdapter = class extends SatsConnectAdapter {
|
|
|
1804
1838
|
autoFinalized: broadcast,
|
|
1805
1839
|
toSignInputs: convertSignInputsToInputType(signInputs)
|
|
1806
1840
|
});
|
|
1841
|
+
const signedPsbtBase64 = import_buffer.Buffer.from(signedPsbt, "hex").toString("base64");
|
|
1842
|
+
let txid;
|
|
1807
1843
|
if (broadcast) {
|
|
1808
|
-
|
|
1809
|
-
return {
|
|
1810
|
-
psbt: signedPsbt,
|
|
1811
|
-
txid
|
|
1812
|
-
};
|
|
1844
|
+
txid = await window.unisat.pushPsbt(signedPsbt);
|
|
1813
1845
|
}
|
|
1814
1846
|
return {
|
|
1815
|
-
psbt:
|
|
1847
|
+
psbt: signedPsbtBase64,
|
|
1848
|
+
txid
|
|
1816
1849
|
};
|
|
1817
1850
|
}
|
|
1818
1851
|
requestInternal = async (method, params) => {
|
|
@@ -2300,6 +2333,10 @@ var signMultipleTransactions = async (options) => {
|
|
|
2300
2333
|
stxSignTransactionParamsSchema,
|
|
2301
2334
|
stxSignTransactionRequestMessageSchema,
|
|
2302
2335
|
stxSignTransactionResultSchema,
|
|
2336
|
+
stxSignTransactionsMethodName,
|
|
2337
|
+
stxSignTransactionsParamsSchema,
|
|
2338
|
+
stxSignTransactionsRequestMessageSchema,
|
|
2339
|
+
stxSignTransactionsResultSchema,
|
|
2303
2340
|
stxTransferStxMethodName,
|
|
2304
2341
|
stxTransferStxParamsSchema,
|
|
2305
2342
|
stxTransferStxRequestMessageSchema,
|