@sats-connect/core 0.4.0-9b65d1d → 0.4.0-b7628d7
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 +911 -758
- package/dist/index.d.ts +1954 -0
- package/dist/index.js +2290 -0
- package/dist/index.mjs +702 -252
- package/package.json +9 -12
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
|
}
|
|
@@ -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
|
|
|
@@ -455,61 +455,94 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
455
455
|
}, undefined>;
|
|
456
456
|
type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
|
|
457
457
|
type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
* The recipient's address.
|
|
461
|
-
**/
|
|
462
|
-
address: string;
|
|
463
|
-
/**
|
|
464
|
-
* The amount to send to the recipient in satoshis.
|
|
465
|
-
*/
|
|
466
|
-
amount: number;
|
|
467
|
-
};
|
|
468
|
-
type SendTransferParams = {
|
|
458
|
+
declare const sendTransferMethodName = "sendTransfer";
|
|
459
|
+
declare const sendTransferParamsSchema: v.ObjectSchema<{
|
|
469
460
|
/**
|
|
470
461
|
* Array of recipients to send to.
|
|
471
462
|
* The amount to send to each recipient is in satoshis.
|
|
472
463
|
*/
|
|
473
|
-
recipients:
|
|
474
|
-
|
|
475
|
-
|
|
464
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
465
|
+
readonly address: v.StringSchema<undefined>;
|
|
466
|
+
readonly amount: v.NumberSchema<undefined>;
|
|
467
|
+
}, undefined>, undefined>;
|
|
468
|
+
}, undefined>;
|
|
469
|
+
type SendTransferParams = v.InferOutput<typeof sendTransferParamsSchema>;
|
|
470
|
+
declare const sendTransferResultSchema: v.ObjectSchema<{
|
|
476
471
|
/**
|
|
477
472
|
* The transaction id as a hex-encoded string.
|
|
478
473
|
*/
|
|
479
|
-
txid:
|
|
480
|
-
}
|
|
474
|
+
readonly txid: v.StringSchema<undefined>;
|
|
475
|
+
}, undefined>;
|
|
476
|
+
type SendTransferResult = v.InferOutput<typeof sendTransferResultSchema>;
|
|
477
|
+
declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
|
|
478
|
+
readonly method: v.LiteralSchema<"sendTransfer", undefined>;
|
|
479
|
+
readonly params: v.ObjectSchema<{
|
|
480
|
+
/**
|
|
481
|
+
* Array of recipients to send to.
|
|
482
|
+
* The amount to send to each recipient is in satoshis.
|
|
483
|
+
*/
|
|
484
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
485
|
+
readonly address: v.StringSchema<undefined>;
|
|
486
|
+
readonly amount: v.NumberSchema<undefined>;
|
|
487
|
+
}, undefined>, undefined>;
|
|
488
|
+
}, undefined>;
|
|
489
|
+
readonly id: v.StringSchema<undefined>;
|
|
490
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
491
|
+
}, undefined>;
|
|
492
|
+
type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
|
|
481
493
|
type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
|
|
482
|
-
|
|
494
|
+
declare const signPsbtMethodName = "signPsbt";
|
|
495
|
+
declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
483
496
|
/**
|
|
484
497
|
* The base64 encoded PSBT to sign.
|
|
485
498
|
*/
|
|
486
|
-
psbt:
|
|
499
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
487
500
|
/**
|
|
488
501
|
* The inputs to sign.
|
|
489
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
490
503
|
*/
|
|
491
|
-
signInputs:
|
|
492
|
-
|
|
493
|
-
* the sigHash type to use for signing.
|
|
494
|
-
* will default to the sighash type of the input if not provided.
|
|
495
|
-
**/
|
|
496
|
-
allowedSignHash?: number;
|
|
504
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
505
|
+
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
497
506
|
/**
|
|
498
507
|
* Whether to broadcast the transaction after signing.
|
|
499
508
|
**/
|
|
500
|
-
broadcast
|
|
501
|
-
}
|
|
502
|
-
type
|
|
509
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
510
|
+
}, undefined>;
|
|
511
|
+
type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
|
|
512
|
+
declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
503
513
|
/**
|
|
504
514
|
* The base64 encoded PSBT after signing.
|
|
505
515
|
*/
|
|
506
|
-
psbt:
|
|
516
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
507
517
|
/**
|
|
508
518
|
* The transaction id as a hex-encoded string.
|
|
509
519
|
* This is only returned if the transaction was broadcast.
|
|
510
520
|
**/
|
|
511
|
-
txid
|
|
512
|
-
}
|
|
521
|
+
readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
522
|
+
}, undefined>;
|
|
523
|
+
type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
|
|
524
|
+
declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
525
|
+
readonly method: v.LiteralSchema<"signPsbt", undefined>;
|
|
526
|
+
readonly params: v.ObjectSchema<{
|
|
527
|
+
/**
|
|
528
|
+
* The base64 encoded PSBT to sign.
|
|
529
|
+
*/
|
|
530
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
531
|
+
/**
|
|
532
|
+
* The inputs to sign.
|
|
533
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
534
|
+
*/
|
|
535
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
536
|
+
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
537
|
+
/**
|
|
538
|
+
* Whether to broadcast the transaction after signing.
|
|
539
|
+
**/
|
|
540
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
541
|
+
}, undefined>;
|
|
542
|
+
readonly id: v.StringSchema<undefined>;
|
|
543
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
544
|
+
}, undefined>;
|
|
545
|
+
type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
|
|
513
546
|
type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
|
|
514
547
|
declare const getAccountsMethodName = "getAccounts";
|
|
515
548
|
declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
@@ -554,6 +587,7 @@ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageS
|
|
|
554
587
|
type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
|
|
555
588
|
declare const getBalanceMethodName = "getBalance";
|
|
556
589
|
declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
590
|
+
type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
|
|
557
591
|
declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
558
592
|
/**
|
|
559
593
|
* The confirmed balance of the wallet in sats. Using a string due to chrome
|
|
@@ -574,13 +608,15 @@ declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
|
574
608
|
*/
|
|
575
609
|
readonly total: v.StringSchema<undefined>;
|
|
576
610
|
}, undefined>;
|
|
611
|
+
type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
|
|
577
612
|
declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
578
613
|
readonly method: v.LiteralSchema<"getBalance", undefined>;
|
|
579
614
|
readonly id: v.StringSchema<undefined>;
|
|
580
615
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
581
616
|
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
582
617
|
}, undefined>;
|
|
583
|
-
type
|
|
618
|
+
type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
|
|
619
|
+
type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
|
|
584
620
|
|
|
585
621
|
declare const getInscriptionsMethodName = "ord_getInscriptions";
|
|
586
622
|
declare const getInscriptionsParamsSchema: v.ObjectSchema<{
|
|
@@ -704,55 +740,95 @@ type RBFOrderResponse = {
|
|
|
704
740
|
fundingAddress: string;
|
|
705
741
|
};
|
|
706
742
|
|
|
707
|
-
interface
|
|
708
|
-
network?: BitcoinNetworkType;
|
|
709
|
-
}
|
|
710
|
-
type EstimateRunesMintResult = EstimateOrderResponse;
|
|
711
|
-
type EstimateRunesMint = MethodParamsAndResult<EstimateRunesMintParams, EstimateRunesMintResult>;
|
|
712
|
-
interface MintRunesParams extends CreateMintOrderRequest {
|
|
713
|
-
network?: BitcoinNetworkType;
|
|
714
|
-
}
|
|
715
|
-
type MintRunesResult = {
|
|
716
|
-
orderId: string;
|
|
717
|
-
fundTransactionId: string;
|
|
718
|
-
fundingAddress: string;
|
|
719
|
-
};
|
|
720
|
-
type MintRunes = MethodParamsAndResult<MintRunesParams, MintRunesResult>;
|
|
721
|
-
interface EstimateRunesEtchParams extends EstimateEtchOrderRequest {
|
|
722
|
-
network?: BitcoinNetworkType;
|
|
723
|
-
}
|
|
724
|
-
type EstimateRunesEtchResult = EstimateOrderResponse;
|
|
725
|
-
type EstimateRunesEtch = MethodParamsAndResult<EstimateRunesEtchParams, EstimateRunesEtchResult>;
|
|
726
|
-
interface EtchRunesParams extends CreateEtchOrderRequest {
|
|
727
|
-
network?: BitcoinNetworkType;
|
|
728
|
-
}
|
|
729
|
-
type EtchRunesResult = {
|
|
730
|
-
orderId: string;
|
|
731
|
-
fundTransactionId: string;
|
|
732
|
-
fundingAddress: string;
|
|
733
|
-
};
|
|
734
|
-
type EtchRunes = MethodParamsAndResult<EtchRunesParams, EtchRunesResult>;
|
|
735
|
-
interface GetOrderParams extends GetOrderRequest {
|
|
743
|
+
interface RunesEstimateEtchParams extends EstimateEtchOrderRequest {
|
|
736
744
|
network?: BitcoinNetworkType;
|
|
737
745
|
}
|
|
738
|
-
type
|
|
739
|
-
|
|
746
|
+
type RunesEstimateEtchResult = EstimateOrderResponse;
|
|
747
|
+
type RunesEstimateEtch = MethodParamsAndResult<RunesEstimateEtchParams, RunesEstimateEtchResult>;
|
|
748
|
+
|
|
749
|
+
interface runesEstimateMintParams extends EstimateMintOrderRequest {
|
|
740
750
|
network?: BitcoinNetworkType;
|
|
741
751
|
}
|
|
742
|
-
type
|
|
743
|
-
|
|
752
|
+
type runesEstimateMintResult = EstimateOrderResponse;
|
|
753
|
+
type RunesEstimateMint = MethodParamsAndResult<runesEstimateMintParams, runesEstimateMintResult>;
|
|
754
|
+
|
|
755
|
+
interface RunesEstimateRbfOrderParams extends RBFOrderRequest {
|
|
744
756
|
network?: BitcoinNetworkType;
|
|
745
757
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
758
|
+
type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams, RBFOrderResponse>;
|
|
759
|
+
|
|
760
|
+
declare const runesEtchMethodName = "runes_etch";
|
|
761
|
+
declare const runesEtchParamsSchema: v.ObjectSchema<{
|
|
762
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
763
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
764
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
765
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
766
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
767
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
768
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
769
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
770
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
771
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
772
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
773
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
774
|
+
readonly amount: v.StringSchema<undefined>;
|
|
775
|
+
readonly cap: v.StringSchema<undefined>;
|
|
776
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
777
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
778
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
779
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
780
|
+
}, undefined>, never>;
|
|
781
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
782
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
783
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
784
|
+
}, undefined>, never>;
|
|
785
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
786
|
+
}, undefined>;
|
|
787
|
+
type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
|
|
788
|
+
declare const runesEtchResultSchema: v.ObjectSchema<{
|
|
789
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
790
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
791
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
792
|
+
}, undefined>;
|
|
793
|
+
type RunesEtchResult = v.InferOutput<typeof runesEtchResultSchema>;
|
|
794
|
+
declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
|
|
795
|
+
readonly method: v.LiteralSchema<"runes_etch", undefined>;
|
|
796
|
+
readonly params: v.ObjectSchema<{
|
|
797
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
798
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
799
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
800
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
801
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
802
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
803
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
804
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
805
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
806
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
807
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
808
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
809
|
+
readonly amount: v.StringSchema<undefined>;
|
|
810
|
+
readonly cap: v.StringSchema<undefined>;
|
|
811
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
812
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
813
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
814
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
815
|
+
}, undefined>, never>;
|
|
816
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
817
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
818
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
819
|
+
}, undefined>, never>;
|
|
820
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
821
|
+
}, undefined>;
|
|
822
|
+
readonly id: v.StringSchema<undefined>;
|
|
823
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
824
|
+
}, undefined>;
|
|
825
|
+
type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchema>;
|
|
826
|
+
type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
|
|
827
|
+
|
|
828
|
+
declare const runesGetBalanceMethodName = "runes_getBalance";
|
|
829
|
+
declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
830
|
+
type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
|
|
831
|
+
declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
756
832
|
readonly balances: v.ArraySchema<v.ObjectSchema<{
|
|
757
833
|
readonly runeName: v.StringSchema<undefined>;
|
|
758
834
|
readonly amount: v.StringSchema<undefined>;
|
|
@@ -761,25 +837,81 @@ declare const getRunesBalanceResultSchema: v.ObjectSchema<{
|
|
|
761
837
|
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
|
|
762
838
|
}, undefined>, undefined>;
|
|
763
839
|
}, undefined>;
|
|
764
|
-
type
|
|
765
|
-
declare const
|
|
840
|
+
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
841
|
+
declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
766
842
|
readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
|
|
767
843
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
768
844
|
readonly id: v.StringSchema<undefined>;
|
|
769
845
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
770
846
|
}, undefined>;
|
|
771
|
-
type
|
|
772
|
-
type
|
|
773
|
-
|
|
774
|
-
|
|
847
|
+
type runesGetBalanceRequestMessage = v.InferOutput<typeof runesGetBalanceRequestMessageSchema>;
|
|
848
|
+
type RunesGetBalance = MethodParamsAndResult<RunesGetBalanceParams, RunesGetBalanceResult>;
|
|
849
|
+
|
|
850
|
+
interface RunesGetOrderParams extends GetOrderRequest {
|
|
851
|
+
network?: BitcoinNetworkType;
|
|
852
|
+
}
|
|
853
|
+
type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse>;
|
|
854
|
+
|
|
855
|
+
declare const runesMintMethodName = "runes_mint";
|
|
856
|
+
declare const runesMintParamsSchema: v.ObjectSchema<{
|
|
857
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
858
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
859
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
860
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
861
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
862
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
863
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
864
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
865
|
+
}, undefined>;
|
|
866
|
+
type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
|
|
867
|
+
declare const runesMintResultSchema: v.ObjectSchema<{
|
|
868
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
869
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
870
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
871
|
+
}, undefined>;
|
|
872
|
+
type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
|
|
873
|
+
declare const runesMintRequestMessageSchema: v.ObjectSchema<{
|
|
874
|
+
readonly method: v.LiteralSchema<"runes_mint", undefined>;
|
|
875
|
+
readonly params: v.ObjectSchema<{
|
|
876
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
877
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
878
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
879
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
880
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
881
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
882
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
883
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
884
|
+
}, undefined>;
|
|
885
|
+
readonly id: v.StringSchema<undefined>;
|
|
886
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
887
|
+
}, undefined>;
|
|
888
|
+
type RunesMintRequestMessage = v.InferOutput<typeof runesMintRequestMessageSchema>;
|
|
889
|
+
type RunesMint = MethodParamsAndResult<v.InferOutput<typeof runesMintParamsSchema>, v.InferOutput<typeof runesMintResultSchema>>;
|
|
890
|
+
|
|
891
|
+
interface RunesRbfOrderParams extends RBFOrderRequest {
|
|
892
|
+
network?: BitcoinNetworkType;
|
|
893
|
+
}
|
|
894
|
+
interface RunesRbfOrderResult {
|
|
895
|
+
orderId: string;
|
|
896
|
+
fundRBFTransactionId: string;
|
|
897
|
+
fundingAddress: string;
|
|
898
|
+
}
|
|
899
|
+
type RunesRbfOrder = MethodParamsAndResult<RunesRbfOrderParams, RunesRbfOrderResult>;
|
|
900
|
+
|
|
901
|
+
declare const runesTransferMethodName = "runes_transfer";
|
|
902
|
+
declare const runesTransferParamsSchema: v.ObjectSchema<{
|
|
775
903
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
776
904
|
readonly runeName: v.StringSchema<undefined>;
|
|
777
905
|
readonly amount: v.StringSchema<undefined>;
|
|
778
906
|
readonly address: v.StringSchema<undefined>;
|
|
779
907
|
}, undefined>, undefined>;
|
|
780
908
|
}, undefined>;
|
|
781
|
-
type TransferRunesParams = v.InferOutput<typeof
|
|
782
|
-
declare const
|
|
909
|
+
type TransferRunesParams = v.InferOutput<typeof runesTransferParamsSchema>;
|
|
910
|
+
declare const runesTransferResultSchema: v.ObjectSchema<{
|
|
911
|
+
readonly txid: v.StringSchema<undefined>;
|
|
912
|
+
}, undefined>;
|
|
913
|
+
type RunesTransferResult = v.InferOutput<typeof runesTransferResultSchema>;
|
|
914
|
+
declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
|
|
783
915
|
readonly method: v.LiteralSchema<"runes_transfer", undefined>;
|
|
784
916
|
readonly params: v.ObjectSchema<{
|
|
785
917
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -791,134 +923,24 @@ declare const transferRunesRequestSchema: v.ObjectSchema<{
|
|
|
791
923
|
readonly id: v.StringSchema<undefined>;
|
|
792
924
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
793
925
|
}, undefined>;
|
|
794
|
-
type
|
|
795
|
-
|
|
796
|
-
readonly txid: v.StringSchema<undefined>;
|
|
797
|
-
}, undefined>;
|
|
798
|
-
type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
|
|
799
|
-
type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
|
|
926
|
+
type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
|
|
927
|
+
type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
|
|
800
928
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
* When sending a transfer STX request to a wallet, users can generally
|
|
804
|
-
* choose from which accout they want to send the STX tokens from. In
|
|
805
|
-
* cases where applications want the transfer to be made from a specific
|
|
806
|
-
* account, they can provide the `pubkey` of the address they'd like the
|
|
807
|
-
* transfer to be made from. It is up to wallet providers to handle this
|
|
808
|
-
* field as they see fit.
|
|
809
|
-
*/
|
|
810
|
-
pubkey: string;
|
|
811
|
-
}
|
|
812
|
-
interface Address {
|
|
813
|
-
/**
|
|
814
|
-
* A Crockford base-32 encoded Stacks address.
|
|
815
|
-
*/
|
|
816
|
-
address: string;
|
|
817
|
-
}
|
|
818
|
-
interface PostConditions {
|
|
819
|
-
/**
|
|
820
|
-
* A hex-encoded string representing the post conditions.
|
|
821
|
-
*
|
|
822
|
-
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
823
|
-
*
|
|
824
|
-
* ```js
|
|
825
|
-
* import { serializePostCondition } from '@stacks/transactions';
|
|
826
|
-
*
|
|
827
|
-
* const postCondition = somePostCondition;
|
|
828
|
-
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
829
|
-
* ```
|
|
830
|
-
*/
|
|
831
|
-
postConditions: Array<string>;
|
|
832
|
-
}
|
|
833
|
-
interface PostConditionMode {
|
|
834
|
-
/**
|
|
835
|
-
* The mode of the post conditions.
|
|
836
|
-
*/
|
|
837
|
-
postConditionMode: number;
|
|
838
|
-
}
|
|
839
|
-
interface ParameterFormatVersion {
|
|
840
|
-
/**
|
|
841
|
-
* Version of parameter format.
|
|
842
|
-
*/
|
|
843
|
-
version: string;
|
|
844
|
-
}
|
|
845
|
-
interface Recipient {
|
|
846
|
-
/**
|
|
847
|
-
* The recipeint's Crockford base-32 encoded Stacks address.
|
|
848
|
-
*/
|
|
849
|
-
recipient: string;
|
|
850
|
-
}
|
|
851
|
-
interface Amount {
|
|
852
|
-
/**
|
|
853
|
-
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
854
|
-
* parseable by `BigInt` is acceptable.
|
|
855
|
-
*
|
|
856
|
-
* Example,
|
|
857
|
-
*
|
|
858
|
-
* ```js
|
|
859
|
-
* const amount1 = 1234;
|
|
860
|
-
* const amount2 = 1234n;
|
|
861
|
-
* const amount3 = '1234';
|
|
862
|
-
* ```
|
|
863
|
-
*/
|
|
864
|
-
amount: number | string;
|
|
865
|
-
}
|
|
866
|
-
interface Memo {
|
|
867
|
-
/**
|
|
868
|
-
* A string representing the memo.
|
|
869
|
-
*/
|
|
870
|
-
memo: string;
|
|
871
|
-
}
|
|
872
|
-
interface TxId {
|
|
873
|
-
/**
|
|
874
|
-
* The ID of the transaction.
|
|
875
|
-
*/
|
|
876
|
-
txid: string;
|
|
877
|
-
}
|
|
878
|
-
interface Transaction {
|
|
879
|
-
/**
|
|
880
|
-
* A Stacks transaction as a hex-encoded string.
|
|
881
|
-
*/
|
|
882
|
-
transaction: string;
|
|
883
|
-
}
|
|
884
|
-
interface Message {
|
|
929
|
+
declare const stxCallContractMethodName = "stx_callContract";
|
|
930
|
+
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
885
931
|
/**
|
|
886
|
-
*
|
|
887
|
-
*/
|
|
888
|
-
message: string;
|
|
889
|
-
}
|
|
890
|
-
interface Signature {
|
|
891
|
-
/**
|
|
892
|
-
* Signature of the message.
|
|
893
|
-
*/
|
|
894
|
-
signature: string;
|
|
895
|
-
}
|
|
896
|
-
interface PublicKey {
|
|
897
|
-
/**
|
|
898
|
-
* Public key as hex-encoded string.
|
|
899
|
-
*/
|
|
900
|
-
publicKey: string;
|
|
901
|
-
}
|
|
902
|
-
interface Domain {
|
|
903
|
-
/**
|
|
904
|
-
* The domain to be signed.
|
|
905
|
-
*/
|
|
906
|
-
domain: string;
|
|
907
|
-
}
|
|
908
|
-
interface CallContractParams {
|
|
909
|
-
/**
|
|
910
|
-
* The contract's Crockford base-32 encoded Stacks address and name.
|
|
932
|
+
* The contract principal.
|
|
911
933
|
*
|
|
912
934
|
* E.g. `"SPKE...GD5C.my-contract"`
|
|
913
935
|
*/
|
|
914
|
-
contract:
|
|
936
|
+
readonly contract: v.StringSchema<undefined>;
|
|
915
937
|
/**
|
|
916
938
|
* The name of the function to call.
|
|
917
939
|
*
|
|
918
940
|
* Note: spec changes ongoing,
|
|
919
941
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
920
942
|
*/
|
|
921
|
-
functionName:
|
|
943
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
922
944
|
/**
|
|
923
945
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
924
946
|
* strings of Clarity values.
|
|
@@ -933,42 +955,131 @@ interface CallContractParams {
|
|
|
933
955
|
* const hexArgs = functionArgs.map(cvToString);
|
|
934
956
|
* ```
|
|
935
957
|
*/
|
|
936
|
-
arguments
|
|
937
|
-
}
|
|
938
|
-
type
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
958
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
959
|
+
}, undefined>;
|
|
960
|
+
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
961
|
+
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
962
|
+
/**
|
|
963
|
+
* The ID of the transaction.
|
|
964
|
+
*/
|
|
965
|
+
readonly txid: v.StringSchema<undefined>;
|
|
966
|
+
/**
|
|
967
|
+
* A Stacks transaction as a hex-encoded string.
|
|
968
|
+
*/
|
|
969
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
970
|
+
}, undefined>;
|
|
971
|
+
type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
|
|
972
|
+
declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
973
|
+
readonly method: v.LiteralSchema<"stx_callContract", undefined>;
|
|
974
|
+
readonly params: v.ObjectSchema<{
|
|
975
|
+
/**
|
|
976
|
+
* The contract principal.
|
|
977
|
+
*
|
|
978
|
+
* E.g. `"SPKE...GD5C.my-contract"`
|
|
979
|
+
*/
|
|
980
|
+
readonly contract: v.StringSchema<undefined>;
|
|
981
|
+
/**
|
|
982
|
+
* The name of the function to call.
|
|
983
|
+
*
|
|
984
|
+
* Note: spec changes ongoing,
|
|
985
|
+
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
986
|
+
*/
|
|
987
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
988
|
+
/**
|
|
989
|
+
* The function's arguments. The arguments are expected to be hex-encoded
|
|
990
|
+
* strings of Clarity values.
|
|
991
|
+
*
|
|
992
|
+
* To convert Clarity values to their hex representation, the `cvToString`
|
|
993
|
+
* helper from the `@stacks/transactions` package may be helpful.
|
|
994
|
+
*
|
|
995
|
+
* ```js
|
|
996
|
+
* import { cvToString } from '@stacks/transactions';
|
|
997
|
+
*
|
|
998
|
+
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
999
|
+
* const hexArgs = functionArgs.map(cvToString);
|
|
1000
|
+
* ```
|
|
1001
|
+
*/
|
|
1002
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1003
|
+
}, undefined>;
|
|
1004
|
+
readonly id: v.StringSchema<undefined>;
|
|
1005
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1006
|
+
}, undefined>;
|
|
1007
|
+
type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
|
|
1008
|
+
type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
|
|
1009
|
+
|
|
1010
|
+
declare const stxDeployContractMethodName = "stx_deployContract";
|
|
1011
|
+
declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
950
1012
|
/**
|
|
951
1013
|
* Name of the contract.
|
|
952
1014
|
*/
|
|
953
|
-
name:
|
|
1015
|
+
readonly name: v.StringSchema<undefined>;
|
|
954
1016
|
/**
|
|
955
|
-
* The code of the Clarity contract.
|
|
1017
|
+
* The source code of the Clarity contract.
|
|
956
1018
|
*/
|
|
957
|
-
clarityCode:
|
|
1019
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
958
1020
|
/**
|
|
959
1021
|
* The version of the Clarity contract.
|
|
960
1022
|
*/
|
|
961
|
-
clarityVersion
|
|
962
|
-
}
|
|
963
|
-
type
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1023
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1024
|
+
}, undefined>;
|
|
1025
|
+
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1026
|
+
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
1027
|
+
/**
|
|
1028
|
+
* The ID of the transaction.
|
|
1029
|
+
*/
|
|
1030
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1031
|
+
/**
|
|
1032
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1033
|
+
*/
|
|
1034
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1035
|
+
}, undefined>;
|
|
1036
|
+
type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
|
|
1037
|
+
declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
1038
|
+
readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
|
|
1039
|
+
readonly params: v.ObjectSchema<{
|
|
1040
|
+
/**
|
|
1041
|
+
* Name of the contract.
|
|
1042
|
+
*/
|
|
1043
|
+
readonly name: v.StringSchema<undefined>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The source code of the Clarity contract.
|
|
1046
|
+
*/
|
|
1047
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
1048
|
+
/**
|
|
1049
|
+
* The version of the Clarity contract.
|
|
1050
|
+
*/
|
|
1051
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1052
|
+
}, undefined>;
|
|
1053
|
+
readonly id: v.StringSchema<undefined>;
|
|
1054
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1055
|
+
}, undefined>;
|
|
1056
|
+
type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
|
|
1057
|
+
type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
|
|
1058
|
+
|
|
1059
|
+
declare const stxGetAccountsMethodName = "stx_getAccounts";
|
|
1060
|
+
declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1061
|
+
type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
|
|
1062
|
+
declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
1063
|
+
/**
|
|
1064
|
+
* The addresses generated for the given purposes.
|
|
1065
|
+
*/
|
|
1066
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1067
|
+
readonly address: v.StringSchema<undefined>;
|
|
1068
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1069
|
+
readonly gaiaHubUrl: v.StringSchema<undefined>;
|
|
1070
|
+
readonly gaiaAppKey: v.StringSchema<undefined>;
|
|
1071
|
+
}, undefined>, undefined>;
|
|
1072
|
+
}, undefined>;
|
|
1073
|
+
type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
|
|
1074
|
+
declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
1075
|
+
readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
|
|
1076
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1077
|
+
readonly id: v.StringSchema<undefined>;
|
|
1078
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1079
|
+
}, undefined>;
|
|
1080
|
+
type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
|
|
1081
|
+
type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
|
|
1082
|
+
|
|
972
1083
|
declare const stxGetAddressesMethodName = "stx_getAddresses";
|
|
973
1084
|
declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
974
1085
|
/**
|
|
@@ -1002,28 +1113,135 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
1002
1113
|
}, undefined>;
|
|
1003
1114
|
type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
|
|
1004
1115
|
type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
|
|
1005
|
-
|
|
1006
|
-
declare const
|
|
1116
|
+
|
|
1117
|
+
declare const stxSignMessageMethodName = "stx_signMessage";
|
|
1118
|
+
declare const stxSignMessageParamsSchema: v.ObjectSchema<{
|
|
1007
1119
|
/**
|
|
1008
|
-
* The
|
|
1120
|
+
* The message to sign.
|
|
1009
1121
|
*/
|
|
1010
|
-
readonly
|
|
1122
|
+
readonly message: v.StringSchema<undefined>;
|
|
1011
1123
|
/**
|
|
1012
|
-
* The public key to sign the
|
|
1013
|
-
* when not provided.
|
|
1124
|
+
* The public key to sign the message with.
|
|
1014
1125
|
*/
|
|
1015
|
-
readonly
|
|
1126
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1016
1127
|
/**
|
|
1017
|
-
*
|
|
1128
|
+
* The format version of the parameter.
|
|
1018
1129
|
*/
|
|
1019
|
-
readonly
|
|
1130
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1020
1131
|
}, undefined>;
|
|
1021
|
-
type
|
|
1022
|
-
declare const
|
|
1132
|
+
type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
|
|
1133
|
+
declare const stxSignMessageResultSchema: v.ObjectSchema<{
|
|
1023
1134
|
/**
|
|
1024
|
-
* The
|
|
1135
|
+
* The signature of the message.
|
|
1025
1136
|
*/
|
|
1026
|
-
readonly
|
|
1137
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1138
|
+
/**
|
|
1139
|
+
* The public key used to sign the message.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1142
|
+
}, undefined>;
|
|
1143
|
+
type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
|
|
1144
|
+
declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1145
|
+
readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
|
|
1146
|
+
readonly params: v.ObjectSchema<{
|
|
1147
|
+
/**
|
|
1148
|
+
* The message to sign.
|
|
1149
|
+
*/
|
|
1150
|
+
readonly message: v.StringSchema<undefined>;
|
|
1151
|
+
/**
|
|
1152
|
+
* The public key to sign the message with.
|
|
1153
|
+
*/
|
|
1154
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1155
|
+
/**
|
|
1156
|
+
* The format version of the parameter.
|
|
1157
|
+
*/
|
|
1158
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1159
|
+
}, undefined>;
|
|
1160
|
+
readonly id: v.StringSchema<undefined>;
|
|
1161
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1162
|
+
}, undefined>;
|
|
1163
|
+
type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
|
|
1164
|
+
type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
|
|
1165
|
+
|
|
1166
|
+
declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
|
|
1167
|
+
declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
|
|
1168
|
+
/**
|
|
1169
|
+
* The domain to be signed.
|
|
1170
|
+
*/
|
|
1171
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Message payload to be signed.
|
|
1174
|
+
*/
|
|
1175
|
+
readonly message: v.StringSchema<undefined>;
|
|
1176
|
+
/**
|
|
1177
|
+
* The format version of the parameter.
|
|
1178
|
+
*/
|
|
1179
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1180
|
+
/**
|
|
1181
|
+
* The public key to sign the message with.
|
|
1182
|
+
*/
|
|
1183
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1184
|
+
}, undefined>;
|
|
1185
|
+
type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
|
|
1186
|
+
declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
|
|
1187
|
+
/**
|
|
1188
|
+
* Signature of the message.
|
|
1189
|
+
*/
|
|
1190
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Public key as hex-encoded string.
|
|
1193
|
+
*/
|
|
1194
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1195
|
+
}, undefined>;
|
|
1196
|
+
type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
|
|
1197
|
+
declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1198
|
+
readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
|
|
1199
|
+
readonly params: v.ObjectSchema<{
|
|
1200
|
+
/**
|
|
1201
|
+
* The domain to be signed.
|
|
1202
|
+
*/
|
|
1203
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Message payload to be signed.
|
|
1206
|
+
*/
|
|
1207
|
+
readonly message: v.StringSchema<undefined>;
|
|
1208
|
+
/**
|
|
1209
|
+
* The format version of the parameter.
|
|
1210
|
+
*/
|
|
1211
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1212
|
+
/**
|
|
1213
|
+
* The public key to sign the message with.
|
|
1214
|
+
*/
|
|
1215
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1216
|
+
}, undefined>;
|
|
1217
|
+
readonly id: v.StringSchema<undefined>;
|
|
1218
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1219
|
+
}, undefined>;
|
|
1220
|
+
type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
|
|
1221
|
+
type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
|
|
1222
|
+
|
|
1223
|
+
declare const stxSignTransactionMethodName = "stx_signTransaction";
|
|
1224
|
+
declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
|
|
1225
|
+
/**
|
|
1226
|
+
* The transaction to sign as a hex-encoded string.
|
|
1227
|
+
*/
|
|
1228
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1229
|
+
/**
|
|
1230
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1231
|
+
* when not provided.
|
|
1232
|
+
*/
|
|
1233
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Whether to broadcast the transaction after signing. Defaults to `true`.
|
|
1236
|
+
*/
|
|
1237
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1238
|
+
}, undefined>;
|
|
1239
|
+
type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
|
|
1240
|
+
declare const stxSignTransactionResultSchema: v.ObjectSchema<{
|
|
1241
|
+
/**
|
|
1242
|
+
* The signed transaction as a hex-encoded string.
|
|
1243
|
+
*/
|
|
1244
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1027
1245
|
}, undefined>;
|
|
1028
1246
|
type StxSignTransactionResult = v.InferOutput<typeof stxSignTransactionResultSchema>;
|
|
1029
1247
|
declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1049,370 +1267,395 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
|
1049
1267
|
type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
|
|
1050
1268
|
type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
|
|
1051
1269
|
|
|
1270
|
+
declare const stxTransferStxMethodName = "stx_transferStx";
|
|
1271
|
+
declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
1272
|
+
/**
|
|
1273
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1274
|
+
* parseable by `BigInt` is acceptable.
|
|
1275
|
+
*
|
|
1276
|
+
* Example,
|
|
1277
|
+
*
|
|
1278
|
+
* ```js
|
|
1279
|
+
* const amount1 = 1234;
|
|
1280
|
+
* const amount2 = 1234n;
|
|
1281
|
+
* const amount3 = '1234';
|
|
1282
|
+
* ```
|
|
1283
|
+
*/
|
|
1284
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1285
|
+
/**
|
|
1286
|
+
* The recipeint's principal.
|
|
1287
|
+
*/
|
|
1288
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1289
|
+
/**
|
|
1290
|
+
* A string representing the memo.
|
|
1291
|
+
*/
|
|
1292
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Version of parameter format.
|
|
1295
|
+
*/
|
|
1296
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1297
|
+
/**
|
|
1298
|
+
* The mode of the post conditions.
|
|
1299
|
+
*/
|
|
1300
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1301
|
+
/**
|
|
1302
|
+
* A hex-encoded string representing the post conditions.
|
|
1303
|
+
*
|
|
1304
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1305
|
+
*
|
|
1306
|
+
* ```js
|
|
1307
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1308
|
+
*
|
|
1309
|
+
* const postCondition = somePostCondition;
|
|
1310
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1311
|
+
* ```
|
|
1312
|
+
*/
|
|
1313
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1314
|
+
/**
|
|
1315
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1316
|
+
* when not provided.
|
|
1317
|
+
*/
|
|
1318
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1319
|
+
}, undefined>;
|
|
1320
|
+
type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
|
|
1321
|
+
declare const stxTransferStxResultSchema: v.ObjectSchema<{
|
|
1322
|
+
/**
|
|
1323
|
+
* The ID of the transaction.
|
|
1324
|
+
*/
|
|
1325
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1326
|
+
/**
|
|
1327
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1328
|
+
*/
|
|
1329
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1330
|
+
}, undefined>;
|
|
1331
|
+
type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
|
|
1332
|
+
declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
1333
|
+
readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
|
|
1334
|
+
readonly params: v.ObjectSchema<{
|
|
1335
|
+
/**
|
|
1336
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1337
|
+
* parseable by `BigInt` is acceptable.
|
|
1338
|
+
*
|
|
1339
|
+
* Example,
|
|
1340
|
+
*
|
|
1341
|
+
* ```js
|
|
1342
|
+
* const amount1 = 1234;
|
|
1343
|
+
* const amount2 = 1234n;
|
|
1344
|
+
* const amount3 = '1234';
|
|
1345
|
+
* ```
|
|
1346
|
+
*/
|
|
1347
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1348
|
+
/**
|
|
1349
|
+
* The recipeint's principal.
|
|
1350
|
+
*/
|
|
1351
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1352
|
+
/**
|
|
1353
|
+
* A string representing the memo.
|
|
1354
|
+
*/
|
|
1355
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Version of parameter format.
|
|
1358
|
+
*/
|
|
1359
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1360
|
+
/**
|
|
1361
|
+
* The mode of the post conditions.
|
|
1362
|
+
*/
|
|
1363
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1364
|
+
/**
|
|
1365
|
+
* A hex-encoded string representing the post conditions.
|
|
1366
|
+
*
|
|
1367
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1368
|
+
*
|
|
1369
|
+
* ```js
|
|
1370
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1371
|
+
*
|
|
1372
|
+
* const postCondition = somePostCondition;
|
|
1373
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1374
|
+
* ```
|
|
1375
|
+
*/
|
|
1376
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1377
|
+
/**
|
|
1378
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1379
|
+
* when not provided.
|
|
1380
|
+
*/
|
|
1381
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1382
|
+
}, undefined>;
|
|
1383
|
+
readonly id: v.StringSchema<undefined>;
|
|
1384
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1385
|
+
}, undefined>;
|
|
1386
|
+
type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
|
|
1387
|
+
type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
|
|
1388
|
+
|
|
1052
1389
|
/**
|
|
1053
|
-
* Permissions with the clientId field omitted. Used for
|
|
1054
|
-
* since the wallet performs authentication based on the
|
|
1055
|
-
* should not rely on the client authenticating
|
|
1390
|
+
* Permissions with the clientId field omitted and optional actions. Used for
|
|
1391
|
+
* permission requests, since the wallet performs authentication based on the
|
|
1392
|
+
* client's tab origin and should not rely on the client authenticating
|
|
1393
|
+
* themselves.
|
|
1056
1394
|
*/
|
|
1057
|
-
declare const
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1060
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1061
|
-
readonly actions: v.ObjectSchema<{
|
|
1395
|
+
declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1396
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1062
1397
|
readonly read: v.BooleanSchema<undefined>;
|
|
1063
1398
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1064
1399
|
readonly rename: v.BooleanSchema<undefined>;
|
|
1065
|
-
}, undefined
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1071
|
-
readonly actions: v.ObjectSchema<{
|
|
1072
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1073
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1074
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1075
|
-
}, undefined>;
|
|
1076
|
-
}, "clientId">;
|
|
1077
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1078
|
-
type: "account";
|
|
1079
|
-
resourceId: string & v.Brand<"AccountResourceId">;
|
|
1080
|
-
actions: {
|
|
1081
|
-
read: boolean;
|
|
1082
|
-
autoSign: boolean;
|
|
1083
|
-
rename: boolean;
|
|
1400
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1401
|
+
readonly entries: {
|
|
1402
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1403
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1404
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1084
1405
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1406
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1407
|
+
read?: boolean | undefined;
|
|
1408
|
+
autoSign?: boolean | undefined;
|
|
1409
|
+
rename?: boolean | undefined;
|
|
1410
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1411
|
+
readonly _types?: {
|
|
1412
|
+
readonly input: {
|
|
1413
|
+
read?: boolean | undefined;
|
|
1414
|
+
autoSign?: boolean | undefined;
|
|
1415
|
+
rename?: boolean | undefined;
|
|
1094
1416
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
actions: {
|
|
1100
|
-
read: boolean;
|
|
1101
|
-
autoSign: boolean;
|
|
1102
|
-
rename: boolean;
|
|
1417
|
+
readonly output: {
|
|
1418
|
+
read?: boolean | undefined;
|
|
1419
|
+
autoSign?: boolean | undefined;
|
|
1420
|
+
rename?: boolean | undefined;
|
|
1103
1421
|
};
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
readonly
|
|
1109
|
-
|
|
1110
|
-
readonly
|
|
1111
|
-
readonly actions: v.ObjectSchema<{
|
|
1422
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1423
|
+
} | undefined;
|
|
1424
|
+
};
|
|
1425
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1426
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1427
|
+
}, undefined>, v.ObjectSchema<{
|
|
1428
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1112
1429
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1113
1430
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1114
1431
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1115
1432
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1116
|
-
}, undefined
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
readonly actions: v.ObjectSchema<{
|
|
1123
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1124
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1125
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1126
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1127
|
-
}, undefined>;
|
|
1128
|
-
}, "clientId">;
|
|
1129
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1130
|
-
type: "wallet";
|
|
1131
|
-
resourceId: "wallet";
|
|
1132
|
-
actions: {
|
|
1133
|
-
addPrivateKey: boolean;
|
|
1134
|
-
openPopup: boolean;
|
|
1135
|
-
openFullPage: boolean;
|
|
1136
|
-
readAllAccounts: boolean;
|
|
1433
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1434
|
+
readonly entries: {
|
|
1435
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1436
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1437
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1438
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1137
1439
|
};
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1440
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1441
|
+
addPrivateKey?: boolean | undefined;
|
|
1442
|
+
openPopup?: boolean | undefined;
|
|
1443
|
+
openFullPage?: boolean | undefined;
|
|
1444
|
+
readAllAccounts?: boolean | undefined;
|
|
1445
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1446
|
+
readonly _types?: {
|
|
1447
|
+
readonly input: {
|
|
1448
|
+
addPrivateKey?: boolean | undefined;
|
|
1449
|
+
openPopup?: boolean | undefined;
|
|
1450
|
+
openFullPage?: boolean | undefined;
|
|
1451
|
+
readAllAccounts?: boolean | undefined;
|
|
1148
1452
|
};
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
addPrivateKey: boolean;
|
|
1155
|
-
openPopup: boolean;
|
|
1156
|
-
openFullPage: boolean;
|
|
1157
|
-
readAllAccounts: boolean;
|
|
1453
|
+
readonly output: {
|
|
1454
|
+
addPrivateKey?: boolean | undefined;
|
|
1455
|
+
openPopup?: boolean | undefined;
|
|
1456
|
+
openFullPage?: boolean | undefined;
|
|
1457
|
+
readAllAccounts?: boolean | undefined;
|
|
1158
1458
|
};
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1459
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1460
|
+
} | undefined;
|
|
1461
|
+
};
|
|
1462
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1463
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1464
|
+
}, undefined>], undefined>;
|
|
1465
|
+
type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
|
|
1164
1466
|
declare const requestPermissionsMethodName = "wallet_requestPermissions";
|
|
1165
|
-
declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [
|
|
1166
|
-
readonly
|
|
1167
|
-
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1168
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1169
|
-
readonly actions: v.ObjectSchema<{
|
|
1467
|
+
declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1468
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1170
1469
|
readonly read: v.BooleanSchema<undefined>;
|
|
1171
1470
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1172
1471
|
readonly rename: v.BooleanSchema<undefined>;
|
|
1173
|
-
}, undefined
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1179
|
-
readonly actions: v.ObjectSchema<{
|
|
1180
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1181
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1182
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1183
|
-
}, undefined>;
|
|
1184
|
-
}, "clientId">;
|
|
1185
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1186
|
-
type: "account";
|
|
1187
|
-
resourceId: string & v.Brand<"AccountResourceId">;
|
|
1188
|
-
actions: {
|
|
1189
|
-
read: boolean;
|
|
1190
|
-
autoSign: boolean;
|
|
1191
|
-
rename: boolean;
|
|
1472
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1473
|
+
readonly entries: {
|
|
1474
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1475
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1476
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1192
1477
|
};
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1478
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1479
|
+
read?: boolean | undefined;
|
|
1480
|
+
autoSign?: boolean | undefined;
|
|
1481
|
+
rename?: boolean | undefined;
|
|
1482
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1483
|
+
readonly _types?: {
|
|
1484
|
+
readonly input: {
|
|
1485
|
+
read?: boolean | undefined;
|
|
1486
|
+
autoSign?: boolean | undefined;
|
|
1487
|
+
rename?: boolean | undefined;
|
|
1202
1488
|
};
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
actions: {
|
|
1208
|
-
read: boolean;
|
|
1209
|
-
autoSign: boolean;
|
|
1210
|
-
rename: boolean;
|
|
1489
|
+
readonly output: {
|
|
1490
|
+
read?: boolean | undefined;
|
|
1491
|
+
autoSign?: boolean | undefined;
|
|
1492
|
+
rename?: boolean | undefined;
|
|
1211
1493
|
};
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
readonly
|
|
1217
|
-
|
|
1218
|
-
readonly
|
|
1219
|
-
readonly actions: v.ObjectSchema<{
|
|
1494
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1495
|
+
} | undefined;
|
|
1496
|
+
};
|
|
1497
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1498
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1499
|
+
}, undefined>, v.ObjectSchema<{
|
|
1500
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1220
1501
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1221
1502
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1222
1503
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1223
1504
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1224
|
-
}, undefined
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
readonly actions: v.ObjectSchema<{
|
|
1231
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1232
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1233
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1234
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1235
|
-
}, undefined>;
|
|
1236
|
-
}, "clientId">;
|
|
1237
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1238
|
-
type: "wallet";
|
|
1239
|
-
resourceId: "wallet";
|
|
1240
|
-
actions: {
|
|
1241
|
-
addPrivateKey: boolean;
|
|
1242
|
-
openPopup: boolean;
|
|
1243
|
-
openFullPage: boolean;
|
|
1244
|
-
readAllAccounts: boolean;
|
|
1505
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1506
|
+
readonly entries: {
|
|
1507
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1508
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1509
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1510
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1245
1511
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1512
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1513
|
+
addPrivateKey?: boolean | undefined;
|
|
1514
|
+
openPopup?: boolean | undefined;
|
|
1515
|
+
openFullPage?: boolean | undefined;
|
|
1516
|
+
readAllAccounts?: boolean | undefined;
|
|
1517
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1518
|
+
readonly _types?: {
|
|
1519
|
+
readonly input: {
|
|
1520
|
+
addPrivateKey?: boolean | undefined;
|
|
1521
|
+
openPopup?: boolean | undefined;
|
|
1522
|
+
openFullPage?: boolean | undefined;
|
|
1523
|
+
readAllAccounts?: boolean | undefined;
|
|
1256
1524
|
};
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
addPrivateKey: boolean;
|
|
1263
|
-
openPopup: boolean;
|
|
1264
|
-
openFullPage: boolean;
|
|
1265
|
-
readAllAccounts: boolean;
|
|
1525
|
+
readonly output: {
|
|
1526
|
+
addPrivateKey?: boolean | undefined;
|
|
1527
|
+
openPopup?: boolean | undefined;
|
|
1528
|
+
openFullPage?: boolean | undefined;
|
|
1529
|
+
readAllAccounts?: boolean | undefined;
|
|
1266
1530
|
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1531
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1532
|
+
} | undefined;
|
|
1533
|
+
};
|
|
1534
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1535
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1536
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1537
|
+
type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
|
|
1271
1538
|
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
1539
|
+
type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
|
|
1272
1540
|
declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1273
1541
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
1274
|
-
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [
|
|
1275
|
-
readonly
|
|
1276
|
-
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1277
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1278
|
-
readonly actions: v.ObjectSchema<{
|
|
1542
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1543
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1279
1544
|
readonly read: v.BooleanSchema<undefined>;
|
|
1280
1545
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1281
1546
|
readonly rename: v.BooleanSchema<undefined>;
|
|
1282
|
-
}, undefined
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1288
|
-
readonly actions: v.ObjectSchema<{
|
|
1289
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1290
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1291
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1292
|
-
}, undefined>;
|
|
1293
|
-
}, "clientId">;
|
|
1294
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1295
|
-
type: "account";
|
|
1296
|
-
resourceId: string & v.Brand<"AccountResourceId">;
|
|
1297
|
-
actions: {
|
|
1298
|
-
read: boolean;
|
|
1299
|
-
autoSign: boolean;
|
|
1300
|
-
rename: boolean;
|
|
1547
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1548
|
+
readonly entries: {
|
|
1549
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1550
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1551
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1301
1552
|
};
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1553
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1554
|
+
read?: boolean | undefined;
|
|
1555
|
+
autoSign?: boolean | undefined;
|
|
1556
|
+
rename?: boolean | undefined;
|
|
1557
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1558
|
+
readonly _types?: {
|
|
1559
|
+
readonly input: {
|
|
1560
|
+
read?: boolean | undefined;
|
|
1561
|
+
autoSign?: boolean | undefined;
|
|
1562
|
+
rename?: boolean | undefined;
|
|
1311
1563
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
actions: {
|
|
1317
|
-
read: boolean;
|
|
1318
|
-
autoSign: boolean;
|
|
1319
|
-
rename: boolean;
|
|
1564
|
+
readonly output: {
|
|
1565
|
+
read?: boolean | undefined;
|
|
1566
|
+
autoSign?: boolean | undefined;
|
|
1567
|
+
rename?: boolean | undefined;
|
|
1320
1568
|
};
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
readonly
|
|
1326
|
-
|
|
1327
|
-
readonly
|
|
1328
|
-
readonly actions: v.ObjectSchema<{
|
|
1569
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
};
|
|
1572
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1573
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1574
|
+
}, undefined>, v.ObjectSchema<{
|
|
1575
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1329
1576
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1330
1577
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1331
1578
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1332
1579
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1333
|
-
}, undefined
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
readonly actions: v.ObjectSchema<{
|
|
1340
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1341
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1342
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1343
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1344
|
-
}, undefined>;
|
|
1345
|
-
}, "clientId">;
|
|
1346
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1347
|
-
type: "wallet";
|
|
1348
|
-
resourceId: "wallet";
|
|
1349
|
-
actions: {
|
|
1350
|
-
addPrivateKey: boolean;
|
|
1351
|
-
openPopup: boolean;
|
|
1352
|
-
openFullPage: boolean;
|
|
1353
|
-
readAllAccounts: boolean;
|
|
1580
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1581
|
+
readonly entries: {
|
|
1582
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1583
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1584
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1585
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1354
1586
|
};
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1587
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1588
|
+
addPrivateKey?: boolean | undefined;
|
|
1589
|
+
openPopup?: boolean | undefined;
|
|
1590
|
+
openFullPage?: boolean | undefined;
|
|
1591
|
+
readAllAccounts?: boolean | undefined;
|
|
1592
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1593
|
+
readonly _types?: {
|
|
1594
|
+
readonly input: {
|
|
1595
|
+
addPrivateKey?: boolean | undefined;
|
|
1596
|
+
openPopup?: boolean | undefined;
|
|
1597
|
+
openFullPage?: boolean | undefined;
|
|
1598
|
+
readAllAccounts?: boolean | undefined;
|
|
1365
1599
|
};
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
addPrivateKey: boolean;
|
|
1372
|
-
openPopup: boolean;
|
|
1373
|
-
openFullPage: boolean;
|
|
1374
|
-
readAllAccounts: boolean;
|
|
1600
|
+
readonly output: {
|
|
1601
|
+
addPrivateKey?: boolean | undefined;
|
|
1602
|
+
openPopup?: boolean | undefined;
|
|
1603
|
+
openFullPage?: boolean | undefined;
|
|
1604
|
+
readAllAccounts?: boolean | undefined;
|
|
1375
1605
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1606
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1607
|
+
} | undefined;
|
|
1608
|
+
};
|
|
1609
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1610
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1611
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1380
1612
|
readonly id: v.StringSchema<undefined>;
|
|
1381
1613
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1382
1614
|
}, undefined>;
|
|
1383
|
-
type
|
|
1615
|
+
type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
|
|
1616
|
+
type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
|
|
1384
1617
|
declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
1385
1618
|
declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1619
|
+
type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
|
|
1386
1620
|
declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1621
|
+
type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
|
|
1387
1622
|
declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1388
1623
|
readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
|
|
1389
1624
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1390
1625
|
readonly id: v.StringSchema<undefined>;
|
|
1391
1626
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1392
1627
|
}, undefined>;
|
|
1393
|
-
type
|
|
1628
|
+
type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
|
|
1629
|
+
type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
|
|
1394
1630
|
declare const disconnectMethodName = "wallet_disconnect";
|
|
1395
1631
|
declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1632
|
+
type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
|
|
1396
1633
|
declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1634
|
+
type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
|
|
1397
1635
|
declare const disconnectRequestMessageSchema: v.ObjectSchema<{
|
|
1398
1636
|
readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
|
|
1399
1637
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1400
1638
|
readonly id: v.StringSchema<undefined>;
|
|
1401
1639
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1402
1640
|
}, undefined>;
|
|
1403
|
-
type
|
|
1641
|
+
type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
|
|
1642
|
+
type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
1404
1643
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1405
1644
|
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1645
|
+
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1406
1646
|
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1647
|
+
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1407
1648
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1408
1649
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
1409
1650
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1410
1651
|
readonly id: v.StringSchema<undefined>;
|
|
1411
1652
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1412
1653
|
}, undefined>;
|
|
1413
|
-
type
|
|
1654
|
+
type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
|
|
1655
|
+
type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
|
|
1414
1656
|
declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
1415
1657
|
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1658
|
+
type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
|
|
1416
1659
|
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1417
1660
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1418
1661
|
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
@@ -1433,15 +1676,18 @@ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"
|
|
|
1433
1676
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1434
1677
|
}, undefined>;
|
|
1435
1678
|
}, undefined>], undefined>, undefined>;
|
|
1679
|
+
type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
|
|
1436
1680
|
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1437
1681
|
readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
|
|
1438
1682
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1439
1683
|
readonly id: v.StringSchema<undefined>;
|
|
1440
1684
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1441
1685
|
}, undefined>;
|
|
1442
|
-
type
|
|
1686
|
+
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1687
|
+
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1443
1688
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1444
1689
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1690
|
+
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
1445
1691
|
declare const getAccountResultSchema: v.ObjectSchema<{
|
|
1446
1692
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1447
1693
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1452,144 +1698,89 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1452
1698
|
}, undefined>, undefined>;
|
|
1453
1699
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1454
1700
|
}, undefined>;
|
|
1701
|
+
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1455
1702
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
1456
1703
|
readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
|
|
1457
1704
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1458
1705
|
readonly id: v.StringSchema<undefined>;
|
|
1459
1706
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1460
1707
|
}, undefined>;
|
|
1461
|
-
type
|
|
1462
|
-
|
|
1463
|
-
declare const registerClientParamsSchema: v.ObjectSchema<{
|
|
1464
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1465
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1466
|
-
}, undefined>;
|
|
1467
|
-
declare const registerClientResultSchema: v.ObjectSchema<{
|
|
1468
|
-
readonly id: v.StringSchema<undefined>;
|
|
1469
|
-
}, undefined>;
|
|
1470
|
-
declare const registerClientRequestMessageSchema: v.ObjectSchema<{
|
|
1471
|
-
readonly method: v.LiteralSchema<"wallet_registerClient", undefined>;
|
|
1472
|
-
readonly params: v.ObjectSchema<{
|
|
1473
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1474
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1475
|
-
}, undefined>;
|
|
1476
|
-
readonly id: v.StringSchema<undefined>;
|
|
1477
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1478
|
-
}, undefined>;
|
|
1479
|
-
type RegisterClient = MethodParamsAndResult<v.InferOutput<typeof registerClientParamsSchema>, v.InferOutput<typeof registerClientResultSchema>>;
|
|
1708
|
+
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1709
|
+
type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
1480
1710
|
declare const connectMethodName = "wallet_connect";
|
|
1481
1711
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1482
|
-
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [
|
|
1483
|
-
readonly
|
|
1484
|
-
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1485
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1486
|
-
readonly actions: v.ObjectSchema<{
|
|
1712
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1713
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1487
1714
|
readonly read: v.BooleanSchema<undefined>;
|
|
1488
1715
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1489
1716
|
readonly rename: v.BooleanSchema<undefined>;
|
|
1490
|
-
}, undefined
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1496
|
-
readonly actions: v.ObjectSchema<{
|
|
1497
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1498
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1499
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1500
|
-
}, undefined>;
|
|
1501
|
-
}, "clientId">;
|
|
1502
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1503
|
-
type: "account";
|
|
1504
|
-
resourceId: string & v.Brand<"AccountResourceId">;
|
|
1505
|
-
actions: {
|
|
1506
|
-
read: boolean;
|
|
1507
|
-
autoSign: boolean;
|
|
1508
|
-
rename: boolean;
|
|
1717
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1718
|
+
readonly entries: {
|
|
1719
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1720
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1721
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1509
1722
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1723
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1724
|
+
read?: boolean | undefined;
|
|
1725
|
+
autoSign?: boolean | undefined;
|
|
1726
|
+
rename?: boolean | undefined;
|
|
1727
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1728
|
+
readonly _types?: {
|
|
1729
|
+
readonly input: {
|
|
1730
|
+
read?: boolean | undefined;
|
|
1731
|
+
autoSign?: boolean | undefined;
|
|
1732
|
+
rename?: boolean | undefined;
|
|
1519
1733
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
actions: {
|
|
1525
|
-
read: boolean;
|
|
1526
|
-
autoSign: boolean;
|
|
1527
|
-
rename: boolean;
|
|
1734
|
+
readonly output: {
|
|
1735
|
+
read?: boolean | undefined;
|
|
1736
|
+
autoSign?: boolean | undefined;
|
|
1737
|
+
rename?: boolean | undefined;
|
|
1528
1738
|
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
readonly
|
|
1534
|
-
|
|
1535
|
-
readonly
|
|
1536
|
-
readonly actions: v.ObjectSchema<{
|
|
1739
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1740
|
+
} | undefined;
|
|
1741
|
+
};
|
|
1742
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1743
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1744
|
+
}, undefined>, v.ObjectSchema<{
|
|
1745
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1537
1746
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1538
1747
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1539
1748
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1540
1749
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1541
|
-
}, undefined
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
readonly actions: v.ObjectSchema<{
|
|
1548
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1549
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1550
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1551
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1552
|
-
}, undefined>;
|
|
1553
|
-
}, "clientId">;
|
|
1554
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1555
|
-
type: "wallet";
|
|
1556
|
-
resourceId: "wallet";
|
|
1557
|
-
actions: {
|
|
1558
|
-
addPrivateKey: boolean;
|
|
1559
|
-
openPopup: boolean;
|
|
1560
|
-
openFullPage: boolean;
|
|
1561
|
-
readAllAccounts: boolean;
|
|
1750
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1751
|
+
readonly entries: {
|
|
1752
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1753
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1754
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1755
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1562
1756
|
};
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1757
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1758
|
+
addPrivateKey?: boolean | undefined;
|
|
1759
|
+
openPopup?: boolean | undefined;
|
|
1760
|
+
openFullPage?: boolean | undefined;
|
|
1761
|
+
readAllAccounts?: boolean | undefined;
|
|
1762
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1763
|
+
readonly _types?: {
|
|
1764
|
+
readonly input: {
|
|
1765
|
+
addPrivateKey?: boolean | undefined;
|
|
1766
|
+
openPopup?: boolean | undefined;
|
|
1767
|
+
openFullPage?: boolean | undefined;
|
|
1768
|
+
readAllAccounts?: boolean | undefined;
|
|
1573
1769
|
};
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
addPrivateKey: boolean;
|
|
1580
|
-
openPopup: boolean;
|
|
1581
|
-
openFullPage: boolean;
|
|
1582
|
-
readAllAccounts: boolean;
|
|
1770
|
+
readonly output: {
|
|
1771
|
+
addPrivateKey?: boolean | undefined;
|
|
1772
|
+
openPopup?: boolean | undefined;
|
|
1773
|
+
openFullPage?: boolean | undefined;
|
|
1774
|
+
readAllAccounts?: boolean | undefined;
|
|
1583
1775
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1591
|
-
}, undefined>;
|
|
1776
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
};
|
|
1779
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1780
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1781
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1592
1782
|
}, undefined>, never>;
|
|
1783
|
+
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1593
1784
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
1594
1785
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1595
1786
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1600,124 +1791,86 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1600
1791
|
}, undefined>, undefined>;
|
|
1601
1792
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1602
1793
|
}, undefined>;
|
|
1794
|
+
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1603
1795
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
1604
1796
|
readonly method: v.LiteralSchema<"wallet_connect", undefined>;
|
|
1605
1797
|
readonly params: v.NullishSchema<v.ObjectSchema<{
|
|
1606
|
-
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [
|
|
1607
|
-
readonly
|
|
1608
|
-
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1609
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1610
|
-
readonly actions: v.ObjectSchema<{
|
|
1798
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1799
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1611
1800
|
readonly read: v.BooleanSchema<undefined>;
|
|
1612
1801
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1613
1802
|
readonly rename: v.BooleanSchema<undefined>;
|
|
1614
|
-
}, undefined
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
readonly clientId: v.StringSchema<undefined>;
|
|
1620
|
-
readonly actions: v.ObjectSchema<{
|
|
1621
|
-
readonly read: v.BooleanSchema<undefined>;
|
|
1622
|
-
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1623
|
-
readonly rename: v.BooleanSchema<undefined>;
|
|
1624
|
-
}, undefined>;
|
|
1625
|
-
}, "clientId">;
|
|
1626
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1627
|
-
type: "account";
|
|
1628
|
-
resourceId: string & v.Brand<"AccountResourceId">;
|
|
1629
|
-
actions: {
|
|
1630
|
-
read: boolean;
|
|
1631
|
-
autoSign: boolean;
|
|
1632
|
-
rename: boolean;
|
|
1803
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1804
|
+
readonly entries: {
|
|
1805
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1806
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1807
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1633
1808
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1809
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1810
|
+
read?: boolean | undefined;
|
|
1811
|
+
autoSign?: boolean | undefined;
|
|
1812
|
+
rename?: boolean | undefined;
|
|
1813
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1814
|
+
readonly _types?: {
|
|
1815
|
+
readonly input: {
|
|
1816
|
+
read?: boolean | undefined;
|
|
1817
|
+
autoSign?: boolean | undefined;
|
|
1818
|
+
rename?: boolean | undefined;
|
|
1643
1819
|
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
actions: {
|
|
1649
|
-
read: boolean;
|
|
1650
|
-
autoSign: boolean;
|
|
1651
|
-
rename: boolean;
|
|
1820
|
+
readonly output: {
|
|
1821
|
+
read?: boolean | undefined;
|
|
1822
|
+
autoSign?: boolean | undefined;
|
|
1823
|
+
rename?: boolean | undefined;
|
|
1652
1824
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
readonly
|
|
1658
|
-
|
|
1659
|
-
readonly
|
|
1660
|
-
readonly actions: v.ObjectSchema<{
|
|
1825
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1826
|
+
} | undefined;
|
|
1827
|
+
};
|
|
1828
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1829
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1830
|
+
}, undefined>, v.ObjectSchema<{
|
|
1831
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1661
1832
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1662
1833
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1663
1834
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1664
1835
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1665
|
-
}, undefined
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
readonly actions: v.ObjectSchema<{
|
|
1672
|
-
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1673
|
-
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1674
|
-
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1675
|
-
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1676
|
-
}, undefined>;
|
|
1677
|
-
}, "clientId">;
|
|
1678
|
-
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1679
|
-
type: "wallet";
|
|
1680
|
-
resourceId: "wallet";
|
|
1681
|
-
actions: {
|
|
1682
|
-
addPrivateKey: boolean;
|
|
1683
|
-
openPopup: boolean;
|
|
1684
|
-
openFullPage: boolean;
|
|
1685
|
-
readAllAccounts: boolean;
|
|
1836
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1837
|
+
readonly entries: {
|
|
1838
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1839
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1840
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1841
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1686
1842
|
};
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1843
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1844
|
+
addPrivateKey?: boolean | undefined;
|
|
1845
|
+
openPopup?: boolean | undefined;
|
|
1846
|
+
openFullPage?: boolean | undefined;
|
|
1847
|
+
readAllAccounts?: boolean | undefined;
|
|
1848
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1849
|
+
readonly _types?: {
|
|
1850
|
+
readonly input: {
|
|
1851
|
+
addPrivateKey?: boolean | undefined;
|
|
1852
|
+
openPopup?: boolean | undefined;
|
|
1853
|
+
openFullPage?: boolean | undefined;
|
|
1854
|
+
readAllAccounts?: boolean | undefined;
|
|
1697
1855
|
};
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
addPrivateKey: boolean;
|
|
1704
|
-
openPopup: boolean;
|
|
1705
|
-
openFullPage: boolean;
|
|
1706
|
-
readAllAccounts: boolean;
|
|
1856
|
+
readonly output: {
|
|
1857
|
+
addPrivateKey?: boolean | undefined;
|
|
1858
|
+
openPopup?: boolean | undefined;
|
|
1859
|
+
openFullPage?: boolean | undefined;
|
|
1860
|
+
readAllAccounts?: boolean | undefined;
|
|
1707
1861
|
};
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1715
|
-
}, undefined>;
|
|
1862
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1863
|
+
} | undefined;
|
|
1864
|
+
};
|
|
1865
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1866
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1867
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1716
1868
|
}, undefined>, never>;
|
|
1717
1869
|
readonly id: v.StringSchema<undefined>;
|
|
1718
1870
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1719
1871
|
}, undefined>;
|
|
1720
|
-
type
|
|
1872
|
+
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1873
|
+
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1721
1874
|
|
|
1722
1875
|
declare const walletTypes: readonly ["software", "ledger"];
|
|
1723
1876
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
@@ -1728,7 +1881,7 @@ interface StxRequests {
|
|
|
1728
1881
|
stx_deployContract: StxDeployContract;
|
|
1729
1882
|
stx_getAccounts: StxGetAccounts;
|
|
1730
1883
|
stx_getAddresses: StxGetAddresses;
|
|
1731
|
-
stx_signMessage:
|
|
1884
|
+
stx_signMessage: StxSignMessage;
|
|
1732
1885
|
stx_signStructuredMessage: StxSignStructuredMessage;
|
|
1733
1886
|
stx_signTransaction: StxSignTransaction;
|
|
1734
1887
|
stx_transferStx: StxTransferStx;
|
|
@@ -1745,15 +1898,15 @@ interface BtcRequests {
|
|
|
1745
1898
|
}
|
|
1746
1899
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1747
1900
|
interface RunesRequests {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
runes_etch:
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
runes_transfer:
|
|
1901
|
+
runes_estimateEtch: RunesEstimateEtch;
|
|
1902
|
+
runes_estimateMint: RunesEstimateMint;
|
|
1903
|
+
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
1904
|
+
runes_etch: RunesEtch;
|
|
1905
|
+
runes_getBalance: RunesGetBalance;
|
|
1906
|
+
runes_getOrder: RunesGetOrder;
|
|
1907
|
+
runes_mint: RunesMint;
|
|
1908
|
+
runes_rbfOrder: RunesRbfOrder;
|
|
1909
|
+
runes_transfer: RunesTransfer;
|
|
1757
1910
|
}
|
|
1758
1911
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1759
1912
|
interface OrdinalsRequests {
|
|
@@ -1798,4 +1951,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1798
1951
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1799
1952
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1800
1953
|
|
|
1801
|
-
export { type AccountChangeEvent, type AddListener, type Address
|
|
1954
|
+
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 GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, 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 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, accountChangeEventName, accountChangeSchema, 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, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, 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, sendInscriptionsResultSchema, sendInscriptionsSchema, 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, walletEventSchema, walletTypeSchema, walletTypes };
|