@sats-connect/core 0.4.0-7721c7c → 0.4.0-898b947
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 +920 -761
- package/dist/index.d.ts +1960 -0
- package/dist/index.js +2287 -0
- package/dist/index.mjs +701 -254
- 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,19 +608,22 @@ 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<{
|
|
587
623
|
readonly offset: v.NumberSchema<undefined>;
|
|
588
624
|
readonly limit: v.NumberSchema<undefined>;
|
|
589
625
|
}, undefined>;
|
|
626
|
+
type GetInscriptionsParams = v.InferOutput<typeof getInscriptionsParamsSchema>;
|
|
590
627
|
declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
591
628
|
readonly total: v.NumberSchema<undefined>;
|
|
592
629
|
readonly limit: v.NumberSchema<undefined>;
|
|
@@ -605,7 +642,8 @@ declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
|
605
642
|
readonly output: v.StringSchema<undefined>;
|
|
606
643
|
}, undefined>, undefined>;
|
|
607
644
|
}, undefined>;
|
|
608
|
-
|
|
645
|
+
type GetInscriptionsResult = v.InferOutput<typeof getInscriptionsResultSchema>;
|
|
646
|
+
declare const getInscriptionsRequestMessageSchema: v.ObjectSchema<{
|
|
609
647
|
readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
|
|
610
648
|
readonly params: v.ObjectSchema<{
|
|
611
649
|
readonly offset: v.NumberSchema<undefined>;
|
|
@@ -614,7 +652,8 @@ declare const getInscriptionsSchema: v.ObjectSchema<{
|
|
|
614
652
|
readonly id: v.StringSchema<undefined>;
|
|
615
653
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
616
654
|
}, undefined>;
|
|
617
|
-
type
|
|
655
|
+
type GetInscriptionsRequestMessage = v.InferOutput<typeof getInscriptionsRequestMessageSchema>;
|
|
656
|
+
type GetInscriptions = MethodParamsAndResult<GetInscriptionsParams, GetInscriptionsResult>;
|
|
618
657
|
declare const sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
619
658
|
declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
620
659
|
readonly transfers: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -622,9 +661,11 @@ declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
|
|
|
622
661
|
readonly inscriptionId: v.StringSchema<undefined>;
|
|
623
662
|
}, undefined>, undefined>;
|
|
624
663
|
}, undefined>;
|
|
664
|
+
type SendInscriptionsParams = v.InferOutput<typeof sendInscriptionsParamsSchema>;
|
|
625
665
|
declare const sendInscriptionsResultSchema: v.ObjectSchema<{
|
|
626
666
|
readonly txid: v.StringSchema<undefined>;
|
|
627
667
|
}, undefined>;
|
|
668
|
+
type SendInscriptionsResult = v.InferOutput<typeof sendInscriptionsResultSchema>;
|
|
628
669
|
declare const sendInscriptionsSchema: v.ObjectSchema<{
|
|
629
670
|
readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
|
|
630
671
|
readonly params: v.ObjectSchema<{
|
|
@@ -636,7 +677,8 @@ declare const sendInscriptionsSchema: v.ObjectSchema<{
|
|
|
636
677
|
readonly id: v.StringSchema<undefined>;
|
|
637
678
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
638
679
|
}, undefined>;
|
|
639
|
-
type
|
|
680
|
+
type SendInscriptionsRequestMessage = v.InferOutput<typeof sendInscriptionsSchema>;
|
|
681
|
+
type SendInscriptions = MethodParamsAndResult<SendInscriptionsParams, SendInscriptionsResult>;
|
|
640
682
|
|
|
641
683
|
type CreateMintOrderRequest = {
|
|
642
684
|
runeName: string;
|
|
@@ -704,55 +746,95 @@ type RBFOrderResponse = {
|
|
|
704
746
|
fundingAddress: string;
|
|
705
747
|
};
|
|
706
748
|
|
|
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 {
|
|
749
|
+
interface RunesEstimateEtchParams extends EstimateEtchOrderRequest {
|
|
736
750
|
network?: BitcoinNetworkType;
|
|
737
751
|
}
|
|
738
|
-
type
|
|
739
|
-
|
|
752
|
+
type RunesEstimateEtchResult = EstimateOrderResponse;
|
|
753
|
+
type RunesEstimateEtch = MethodParamsAndResult<RunesEstimateEtchParams, RunesEstimateEtchResult>;
|
|
754
|
+
|
|
755
|
+
interface runesEstimateMintParams extends EstimateMintOrderRequest {
|
|
740
756
|
network?: BitcoinNetworkType;
|
|
741
757
|
}
|
|
742
|
-
type
|
|
743
|
-
|
|
758
|
+
type runesEstimateMintResult = EstimateOrderResponse;
|
|
759
|
+
type RunesEstimateMint = MethodParamsAndResult<runesEstimateMintParams, runesEstimateMintResult>;
|
|
760
|
+
|
|
761
|
+
interface RunesEstimateRbfOrderParams extends RBFOrderRequest {
|
|
744
762
|
network?: BitcoinNetworkType;
|
|
745
763
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
764
|
+
type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams, RBFOrderResponse>;
|
|
765
|
+
|
|
766
|
+
declare const runesEtchMethodName = "runes_etch";
|
|
767
|
+
declare const runesEtchParamsSchema: v.ObjectSchema<{
|
|
768
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
769
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
770
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
771
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
772
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
773
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
774
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
775
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
776
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
777
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
778
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
779
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
780
|
+
readonly amount: v.StringSchema<undefined>;
|
|
781
|
+
readonly cap: v.StringSchema<undefined>;
|
|
782
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
783
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
784
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
785
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
786
|
+
}, undefined>, never>;
|
|
787
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
788
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
789
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
790
|
+
}, undefined>, never>;
|
|
791
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
792
|
+
}, undefined>;
|
|
793
|
+
type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
|
|
794
|
+
declare const runesEtchResultSchema: v.ObjectSchema<{
|
|
795
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
796
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
797
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
798
|
+
}, undefined>;
|
|
799
|
+
type RunesEtchResult = v.InferOutput<typeof runesEtchResultSchema>;
|
|
800
|
+
declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
|
|
801
|
+
readonly method: v.LiteralSchema<"runes_etch", undefined>;
|
|
802
|
+
readonly params: v.ObjectSchema<{
|
|
803
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
804
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
805
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
806
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
807
|
+
readonly isMintable: v.BooleanSchema<undefined>;
|
|
808
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
809
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
810
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
811
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
812
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
813
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
814
|
+
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
815
|
+
readonly amount: v.StringSchema<undefined>;
|
|
816
|
+
readonly cap: v.StringSchema<undefined>;
|
|
817
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
818
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
819
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
820
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
821
|
+
}, undefined>, never>;
|
|
822
|
+
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
823
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
824
|
+
readonly contentBase64: v.StringSchema<undefined>;
|
|
825
|
+
}, undefined>, never>;
|
|
826
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
827
|
+
}, undefined>;
|
|
828
|
+
readonly id: v.StringSchema<undefined>;
|
|
829
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
830
|
+
}, undefined>;
|
|
831
|
+
type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchema>;
|
|
832
|
+
type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
|
|
833
|
+
|
|
834
|
+
declare const runesGetBalanceMethodName = "runes_getBalance";
|
|
835
|
+
declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
836
|
+
type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
|
|
837
|
+
declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
756
838
|
readonly balances: v.ArraySchema<v.ObjectSchema<{
|
|
757
839
|
readonly runeName: v.StringSchema<undefined>;
|
|
758
840
|
readonly amount: v.StringSchema<undefined>;
|
|
@@ -761,25 +843,81 @@ declare const getRunesBalanceResultSchema: v.ObjectSchema<{
|
|
|
761
843
|
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
|
|
762
844
|
}, undefined>, undefined>;
|
|
763
845
|
}, undefined>;
|
|
764
|
-
type
|
|
765
|
-
declare const
|
|
846
|
+
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
847
|
+
declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
766
848
|
readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
|
|
767
849
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
768
850
|
readonly id: v.StringSchema<undefined>;
|
|
769
851
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
770
852
|
}, undefined>;
|
|
771
|
-
type
|
|
772
|
-
type
|
|
773
|
-
|
|
774
|
-
|
|
853
|
+
type runesGetBalanceRequestMessage = v.InferOutput<typeof runesGetBalanceRequestMessageSchema>;
|
|
854
|
+
type RunesGetBalance = MethodParamsAndResult<RunesGetBalanceParams, RunesGetBalanceResult>;
|
|
855
|
+
|
|
856
|
+
interface RunesGetOrderParams extends GetOrderRequest {
|
|
857
|
+
network?: BitcoinNetworkType;
|
|
858
|
+
}
|
|
859
|
+
type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse>;
|
|
860
|
+
|
|
861
|
+
declare const runesMintMethodName = "runes_mint";
|
|
862
|
+
declare const runesMintParamsSchema: v.ObjectSchema<{
|
|
863
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
864
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
865
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
866
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
867
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
868
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
869
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
870
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
871
|
+
}, undefined>;
|
|
872
|
+
type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
|
|
873
|
+
declare const runesMintResultSchema: v.ObjectSchema<{
|
|
874
|
+
readonly orderId: v.StringSchema<undefined>;
|
|
875
|
+
readonly fundTransactionId: v.StringSchema<undefined>;
|
|
876
|
+
readonly fundingAddress: v.StringSchema<undefined>;
|
|
877
|
+
}, undefined>;
|
|
878
|
+
type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
|
|
879
|
+
declare const runesMintRequestMessageSchema: v.ObjectSchema<{
|
|
880
|
+
readonly method: v.LiteralSchema<"runes_mint", undefined>;
|
|
881
|
+
readonly params: v.ObjectSchema<{
|
|
882
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
883
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
884
|
+
readonly destinationAddress: v.StringSchema<undefined>;
|
|
885
|
+
readonly feeRate: v.NumberSchema<undefined>;
|
|
886
|
+
readonly refundAddress: v.StringSchema<undefined>;
|
|
887
|
+
readonly repeats: v.NumberSchema<undefined>;
|
|
888
|
+
readonly runeName: v.StringSchema<undefined>;
|
|
889
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
|
|
890
|
+
}, undefined>;
|
|
891
|
+
readonly id: v.StringSchema<undefined>;
|
|
892
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
893
|
+
}, undefined>;
|
|
894
|
+
type RunesMintRequestMessage = v.InferOutput<typeof runesMintRequestMessageSchema>;
|
|
895
|
+
type RunesMint = MethodParamsAndResult<v.InferOutput<typeof runesMintParamsSchema>, v.InferOutput<typeof runesMintResultSchema>>;
|
|
896
|
+
|
|
897
|
+
interface RunesRbfOrderParams extends RBFOrderRequest {
|
|
898
|
+
network?: BitcoinNetworkType;
|
|
899
|
+
}
|
|
900
|
+
interface RunesRbfOrderResult {
|
|
901
|
+
orderId: string;
|
|
902
|
+
fundRBFTransactionId: string;
|
|
903
|
+
fundingAddress: string;
|
|
904
|
+
}
|
|
905
|
+
type RunesRbfOrder = MethodParamsAndResult<RunesRbfOrderParams, RunesRbfOrderResult>;
|
|
906
|
+
|
|
907
|
+
declare const runesTransferMethodName = "runes_transfer";
|
|
908
|
+
declare const runesTransferParamsSchema: v.ObjectSchema<{
|
|
775
909
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
776
910
|
readonly runeName: v.StringSchema<undefined>;
|
|
777
911
|
readonly amount: v.StringSchema<undefined>;
|
|
778
912
|
readonly address: v.StringSchema<undefined>;
|
|
779
913
|
}, undefined>, undefined>;
|
|
780
914
|
}, undefined>;
|
|
781
|
-
type TransferRunesParams = v.InferOutput<typeof
|
|
782
|
-
declare const
|
|
915
|
+
type TransferRunesParams = v.InferOutput<typeof runesTransferParamsSchema>;
|
|
916
|
+
declare const runesTransferResultSchema: v.ObjectSchema<{
|
|
917
|
+
readonly txid: v.StringSchema<undefined>;
|
|
918
|
+
}, undefined>;
|
|
919
|
+
type RunesTransferResult = v.InferOutput<typeof runesTransferResultSchema>;
|
|
920
|
+
declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
|
|
783
921
|
readonly method: v.LiteralSchema<"runes_transfer", undefined>;
|
|
784
922
|
readonly params: v.ObjectSchema<{
|
|
785
923
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -791,134 +929,24 @@ declare const transferRunesRequestSchema: v.ObjectSchema<{
|
|
|
791
929
|
readonly id: v.StringSchema<undefined>;
|
|
792
930
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
793
931
|
}, 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>;
|
|
932
|
+
type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
|
|
933
|
+
type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
|
|
800
934
|
|
|
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 {
|
|
935
|
+
declare const stxCallContractMethodName = "stx_callContract";
|
|
936
|
+
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
885
937
|
/**
|
|
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.
|
|
938
|
+
* The contract principal.
|
|
911
939
|
*
|
|
912
940
|
* E.g. `"SPKE...GD5C.my-contract"`
|
|
913
941
|
*/
|
|
914
|
-
contract:
|
|
942
|
+
readonly contract: v.StringSchema<undefined>;
|
|
915
943
|
/**
|
|
916
944
|
* The name of the function to call.
|
|
917
945
|
*
|
|
918
946
|
* Note: spec changes ongoing,
|
|
919
947
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
920
948
|
*/
|
|
921
|
-
functionName:
|
|
949
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
922
950
|
/**
|
|
923
951
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
924
952
|
* strings of Clarity values.
|
|
@@ -933,42 +961,131 @@ interface CallContractParams {
|
|
|
933
961
|
* const hexArgs = functionArgs.map(cvToString);
|
|
934
962
|
* ```
|
|
935
963
|
*/
|
|
936
|
-
arguments
|
|
937
|
-
}
|
|
938
|
-
type
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
964
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
965
|
+
}, undefined>;
|
|
966
|
+
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
967
|
+
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
968
|
+
/**
|
|
969
|
+
* The ID of the transaction.
|
|
970
|
+
*/
|
|
971
|
+
readonly txid: v.StringSchema<undefined>;
|
|
972
|
+
/**
|
|
973
|
+
* A Stacks transaction as a hex-encoded string.
|
|
974
|
+
*/
|
|
975
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
976
|
+
}, undefined>;
|
|
977
|
+
type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
|
|
978
|
+
declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
979
|
+
readonly method: v.LiteralSchema<"stx_callContract", undefined>;
|
|
980
|
+
readonly params: v.ObjectSchema<{
|
|
981
|
+
/**
|
|
982
|
+
* The contract principal.
|
|
983
|
+
*
|
|
984
|
+
* E.g. `"SPKE...GD5C.my-contract"`
|
|
985
|
+
*/
|
|
986
|
+
readonly contract: v.StringSchema<undefined>;
|
|
987
|
+
/**
|
|
988
|
+
* The name of the function to call.
|
|
989
|
+
*
|
|
990
|
+
* Note: spec changes ongoing,
|
|
991
|
+
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
992
|
+
*/
|
|
993
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
994
|
+
/**
|
|
995
|
+
* The function's arguments. The arguments are expected to be hex-encoded
|
|
996
|
+
* strings of Clarity values.
|
|
997
|
+
*
|
|
998
|
+
* To convert Clarity values to their hex representation, the `cvToString`
|
|
999
|
+
* helper from the `@stacks/transactions` package may be helpful.
|
|
1000
|
+
*
|
|
1001
|
+
* ```js
|
|
1002
|
+
* import { cvToString } from '@stacks/transactions';
|
|
1003
|
+
*
|
|
1004
|
+
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
1005
|
+
* const hexArgs = functionArgs.map(cvToString);
|
|
1006
|
+
* ```
|
|
1007
|
+
*/
|
|
1008
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1009
|
+
}, undefined>;
|
|
1010
|
+
readonly id: v.StringSchema<undefined>;
|
|
1011
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1012
|
+
}, undefined>;
|
|
1013
|
+
type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
|
|
1014
|
+
type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
|
|
1015
|
+
|
|
1016
|
+
declare const stxDeployContractMethodName = "stx_deployContract";
|
|
1017
|
+
declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
950
1018
|
/**
|
|
951
1019
|
* Name of the contract.
|
|
952
1020
|
*/
|
|
953
|
-
name:
|
|
1021
|
+
readonly name: v.StringSchema<undefined>;
|
|
954
1022
|
/**
|
|
955
|
-
* The code of the Clarity contract.
|
|
1023
|
+
* The source code of the Clarity contract.
|
|
956
1024
|
*/
|
|
957
|
-
clarityCode:
|
|
1025
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
958
1026
|
/**
|
|
959
1027
|
* The version of the Clarity contract.
|
|
960
1028
|
*/
|
|
961
|
-
clarityVersion
|
|
962
|
-
}
|
|
963
|
-
type
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1029
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1030
|
+
}, undefined>;
|
|
1031
|
+
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1032
|
+
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
1033
|
+
/**
|
|
1034
|
+
* The ID of the transaction.
|
|
1035
|
+
*/
|
|
1036
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1037
|
+
/**
|
|
1038
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1039
|
+
*/
|
|
1040
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1041
|
+
}, undefined>;
|
|
1042
|
+
type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
|
|
1043
|
+
declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
1044
|
+
readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
|
|
1045
|
+
readonly params: v.ObjectSchema<{
|
|
1046
|
+
/**
|
|
1047
|
+
* Name of the contract.
|
|
1048
|
+
*/
|
|
1049
|
+
readonly name: v.StringSchema<undefined>;
|
|
1050
|
+
/**
|
|
1051
|
+
* The source code of the Clarity contract.
|
|
1052
|
+
*/
|
|
1053
|
+
readonly clarityCode: v.StringSchema<undefined>;
|
|
1054
|
+
/**
|
|
1055
|
+
* The version of the Clarity contract.
|
|
1056
|
+
*/
|
|
1057
|
+
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1058
|
+
}, undefined>;
|
|
1059
|
+
readonly id: v.StringSchema<undefined>;
|
|
1060
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1061
|
+
}, undefined>;
|
|
1062
|
+
type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
|
|
1063
|
+
type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
|
|
1064
|
+
|
|
1065
|
+
declare const stxGetAccountsMethodName = "stx_getAccounts";
|
|
1066
|
+
declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1067
|
+
type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
|
|
1068
|
+
declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
1069
|
+
/**
|
|
1070
|
+
* The addresses generated for the given purposes.
|
|
1071
|
+
*/
|
|
1072
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1073
|
+
readonly address: v.StringSchema<undefined>;
|
|
1074
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1075
|
+
readonly gaiaHubUrl: v.StringSchema<undefined>;
|
|
1076
|
+
readonly gaiaAppKey: v.StringSchema<undefined>;
|
|
1077
|
+
}, undefined>, undefined>;
|
|
1078
|
+
}, undefined>;
|
|
1079
|
+
type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
|
|
1080
|
+
declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
1081
|
+
readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
|
|
1082
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1083
|
+
readonly id: v.StringSchema<undefined>;
|
|
1084
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1085
|
+
}, undefined>;
|
|
1086
|
+
type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
|
|
1087
|
+
type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
|
|
1088
|
+
|
|
972
1089
|
declare const stxGetAddressesMethodName = "stx_getAddresses";
|
|
973
1090
|
declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
974
1091
|
/**
|
|
@@ -1002,28 +1119,135 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
1002
1119
|
}, undefined>;
|
|
1003
1120
|
type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
|
|
1004
1121
|
type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
|
|
1005
|
-
|
|
1006
|
-
declare const
|
|
1122
|
+
|
|
1123
|
+
declare const stxSignMessageMethodName = "stx_signMessage";
|
|
1124
|
+
declare const stxSignMessageParamsSchema: v.ObjectSchema<{
|
|
1007
1125
|
/**
|
|
1008
|
-
* The
|
|
1126
|
+
* The message to sign.
|
|
1009
1127
|
*/
|
|
1010
|
-
readonly
|
|
1128
|
+
readonly message: v.StringSchema<undefined>;
|
|
1011
1129
|
/**
|
|
1012
|
-
* The public key to sign the
|
|
1013
|
-
* when not provided.
|
|
1130
|
+
* The public key to sign the message with.
|
|
1014
1131
|
*/
|
|
1015
|
-
readonly
|
|
1132
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1016
1133
|
/**
|
|
1017
|
-
*
|
|
1134
|
+
* The format version of the parameter.
|
|
1018
1135
|
*/
|
|
1019
|
-
readonly
|
|
1136
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1020
1137
|
}, undefined>;
|
|
1021
|
-
type
|
|
1022
|
-
declare const
|
|
1138
|
+
type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
|
|
1139
|
+
declare const stxSignMessageResultSchema: v.ObjectSchema<{
|
|
1023
1140
|
/**
|
|
1024
|
-
* The
|
|
1141
|
+
* The signature of the message.
|
|
1025
1142
|
*/
|
|
1026
|
-
readonly
|
|
1143
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1144
|
+
/**
|
|
1145
|
+
* The public key used to sign the message.
|
|
1146
|
+
*/
|
|
1147
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1148
|
+
}, undefined>;
|
|
1149
|
+
type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
|
|
1150
|
+
declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1151
|
+
readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
|
|
1152
|
+
readonly params: v.ObjectSchema<{
|
|
1153
|
+
/**
|
|
1154
|
+
* The message to sign.
|
|
1155
|
+
*/
|
|
1156
|
+
readonly message: v.StringSchema<undefined>;
|
|
1157
|
+
/**
|
|
1158
|
+
* The public key to sign the message with.
|
|
1159
|
+
*/
|
|
1160
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1161
|
+
/**
|
|
1162
|
+
* The format version of the parameter.
|
|
1163
|
+
*/
|
|
1164
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1165
|
+
}, undefined>;
|
|
1166
|
+
readonly id: v.StringSchema<undefined>;
|
|
1167
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1168
|
+
}, undefined>;
|
|
1169
|
+
type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
|
|
1170
|
+
type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
|
|
1171
|
+
|
|
1172
|
+
declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
|
|
1173
|
+
declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
|
|
1174
|
+
/**
|
|
1175
|
+
* The domain to be signed.
|
|
1176
|
+
*/
|
|
1177
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Message payload to be signed.
|
|
1180
|
+
*/
|
|
1181
|
+
readonly message: v.StringSchema<undefined>;
|
|
1182
|
+
/**
|
|
1183
|
+
* The format version of the parameter.
|
|
1184
|
+
*/
|
|
1185
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1186
|
+
/**
|
|
1187
|
+
* The public key to sign the message with.
|
|
1188
|
+
*/
|
|
1189
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1190
|
+
}, undefined>;
|
|
1191
|
+
type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
|
|
1192
|
+
declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
|
|
1193
|
+
/**
|
|
1194
|
+
* Signature of the message.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly signature: v.StringSchema<undefined>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Public key as hex-encoded string.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1201
|
+
}, undefined>;
|
|
1202
|
+
type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
|
|
1203
|
+
declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
|
|
1204
|
+
readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
|
|
1205
|
+
readonly params: v.ObjectSchema<{
|
|
1206
|
+
/**
|
|
1207
|
+
* The domain to be signed.
|
|
1208
|
+
*/
|
|
1209
|
+
readonly domain: v.StringSchema<undefined>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Message payload to be signed.
|
|
1212
|
+
*/
|
|
1213
|
+
readonly message: v.StringSchema<undefined>;
|
|
1214
|
+
/**
|
|
1215
|
+
* The format version of the parameter.
|
|
1216
|
+
*/
|
|
1217
|
+
readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1218
|
+
/**
|
|
1219
|
+
* The public key to sign the message with.
|
|
1220
|
+
*/
|
|
1221
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1222
|
+
}, undefined>;
|
|
1223
|
+
readonly id: v.StringSchema<undefined>;
|
|
1224
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1225
|
+
}, undefined>;
|
|
1226
|
+
type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
|
|
1227
|
+
type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
|
|
1228
|
+
|
|
1229
|
+
declare const stxSignTransactionMethodName = "stx_signTransaction";
|
|
1230
|
+
declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
|
|
1231
|
+
/**
|
|
1232
|
+
* The transaction to sign as a hex-encoded string.
|
|
1233
|
+
*/
|
|
1234
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1235
|
+
/**
|
|
1236
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1237
|
+
* when not provided.
|
|
1238
|
+
*/
|
|
1239
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Whether to broadcast the transaction after signing. Defaults to `true`.
|
|
1242
|
+
*/
|
|
1243
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1244
|
+
}, undefined>;
|
|
1245
|
+
type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
|
|
1246
|
+
declare const stxSignTransactionResultSchema: v.ObjectSchema<{
|
|
1247
|
+
/**
|
|
1248
|
+
* The signed transaction as a hex-encoded string.
|
|
1249
|
+
*/
|
|
1250
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1027
1251
|
}, undefined>;
|
|
1028
1252
|
type StxSignTransactionResult = v.InferOutput<typeof stxSignTransactionResultSchema>;
|
|
1029
1253
|
declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1049,370 +1273,395 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
|
1049
1273
|
type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
|
|
1050
1274
|
type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
|
|
1051
1275
|
|
|
1276
|
+
declare const stxTransferStxMethodName = "stx_transferStx";
|
|
1277
|
+
declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
1278
|
+
/**
|
|
1279
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1280
|
+
* parseable by `BigInt` is acceptable.
|
|
1281
|
+
*
|
|
1282
|
+
* Example,
|
|
1283
|
+
*
|
|
1284
|
+
* ```js
|
|
1285
|
+
* const amount1 = 1234;
|
|
1286
|
+
* const amount2 = 1234n;
|
|
1287
|
+
* const amount3 = '1234';
|
|
1288
|
+
* ```
|
|
1289
|
+
*/
|
|
1290
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1291
|
+
/**
|
|
1292
|
+
* The recipeint's principal.
|
|
1293
|
+
*/
|
|
1294
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1295
|
+
/**
|
|
1296
|
+
* A string representing the memo.
|
|
1297
|
+
*/
|
|
1298
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Version of parameter format.
|
|
1301
|
+
*/
|
|
1302
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1303
|
+
/**
|
|
1304
|
+
* The mode of the post conditions.
|
|
1305
|
+
*/
|
|
1306
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1307
|
+
/**
|
|
1308
|
+
* A hex-encoded string representing the post conditions.
|
|
1309
|
+
*
|
|
1310
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1311
|
+
*
|
|
1312
|
+
* ```js
|
|
1313
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1314
|
+
*
|
|
1315
|
+
* const postCondition = somePostCondition;
|
|
1316
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1317
|
+
* ```
|
|
1318
|
+
*/
|
|
1319
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1320
|
+
/**
|
|
1321
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1322
|
+
* when not provided.
|
|
1323
|
+
*/
|
|
1324
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1325
|
+
}, undefined>;
|
|
1326
|
+
type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
|
|
1327
|
+
declare const stxTransferStxResultSchema: v.ObjectSchema<{
|
|
1328
|
+
/**
|
|
1329
|
+
* The ID of the transaction.
|
|
1330
|
+
*/
|
|
1331
|
+
readonly txid: v.StringSchema<undefined>;
|
|
1332
|
+
/**
|
|
1333
|
+
* A Stacks transaction as a hex-encoded string.
|
|
1334
|
+
*/
|
|
1335
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
1336
|
+
}, undefined>;
|
|
1337
|
+
type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
|
|
1338
|
+
declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
1339
|
+
readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
|
|
1340
|
+
readonly params: v.ObjectSchema<{
|
|
1341
|
+
/**
|
|
1342
|
+
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1343
|
+
* parseable by `BigInt` is acceptable.
|
|
1344
|
+
*
|
|
1345
|
+
* Example,
|
|
1346
|
+
*
|
|
1347
|
+
* ```js
|
|
1348
|
+
* const amount1 = 1234;
|
|
1349
|
+
* const amount2 = 1234n;
|
|
1350
|
+
* const amount3 = '1234';
|
|
1351
|
+
* ```
|
|
1352
|
+
*/
|
|
1353
|
+
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1354
|
+
/**
|
|
1355
|
+
* The recipeint's principal.
|
|
1356
|
+
*/
|
|
1357
|
+
readonly recipient: v.StringSchema<undefined>;
|
|
1358
|
+
/**
|
|
1359
|
+
* A string representing the memo.
|
|
1360
|
+
*/
|
|
1361
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Version of parameter format.
|
|
1364
|
+
*/
|
|
1365
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1366
|
+
/**
|
|
1367
|
+
* The mode of the post conditions.
|
|
1368
|
+
*/
|
|
1369
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1370
|
+
/**
|
|
1371
|
+
* A hex-encoded string representing the post conditions.
|
|
1372
|
+
*
|
|
1373
|
+
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
1374
|
+
*
|
|
1375
|
+
* ```js
|
|
1376
|
+
* import { serializePostCondition } from '@stacks/transactions';
|
|
1377
|
+
*
|
|
1378
|
+
* const postCondition = somePostCondition;
|
|
1379
|
+
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1380
|
+
* ```
|
|
1381
|
+
*/
|
|
1382
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1383
|
+
/**
|
|
1384
|
+
* The public key to sign the transaction with. The wallet may use any key
|
|
1385
|
+
* when not provided.
|
|
1386
|
+
*/
|
|
1387
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1388
|
+
}, undefined>;
|
|
1389
|
+
readonly id: v.StringSchema<undefined>;
|
|
1390
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1391
|
+
}, undefined>;
|
|
1392
|
+
type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
|
|
1393
|
+
type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
|
|
1394
|
+
|
|
1052
1395
|
/**
|
|
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
|
|
1396
|
+
* Permissions with the clientId field omitted and optional actions. Used for
|
|
1397
|
+
* permission requests, since the wallet performs authentication based on the
|
|
1398
|
+
* client's tab origin and should not rely on the client authenticating
|
|
1399
|
+
* themselves.
|
|
1056
1400
|
*/
|
|
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<{
|
|
1401
|
+
declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1402
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1062
1403
|
readonly read: v.BooleanSchema<undefined>;
|
|
1063
1404
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1064
1405
|
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;
|
|
1406
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1407
|
+
readonly entries: {
|
|
1408
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1409
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1410
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1084
1411
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1412
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1413
|
+
read?: boolean | undefined;
|
|
1414
|
+
autoSign?: boolean | undefined;
|
|
1415
|
+
rename?: boolean | undefined;
|
|
1416
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1417
|
+
readonly _types?: {
|
|
1418
|
+
readonly input: {
|
|
1419
|
+
read?: boolean | undefined;
|
|
1420
|
+
autoSign?: boolean | undefined;
|
|
1421
|
+
rename?: boolean | undefined;
|
|
1094
1422
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
actions: {
|
|
1100
|
-
read: boolean;
|
|
1101
|
-
autoSign: boolean;
|
|
1102
|
-
rename: boolean;
|
|
1423
|
+
readonly output: {
|
|
1424
|
+
read?: boolean | undefined;
|
|
1425
|
+
autoSign?: boolean | undefined;
|
|
1426
|
+
rename?: boolean | undefined;
|
|
1103
1427
|
};
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
readonly
|
|
1109
|
-
|
|
1110
|
-
readonly
|
|
1111
|
-
readonly actions: v.ObjectSchema<{
|
|
1428
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1429
|
+
} | undefined;
|
|
1430
|
+
};
|
|
1431
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1432
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1433
|
+
}, undefined>, v.ObjectSchema<{
|
|
1434
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1112
1435
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1113
1436
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1114
1437
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1115
1438
|
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;
|
|
1439
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1440
|
+
readonly entries: {
|
|
1441
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1442
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1443
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1444
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1137
1445
|
};
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1446
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1447
|
+
addPrivateKey?: boolean | undefined;
|
|
1448
|
+
openPopup?: boolean | undefined;
|
|
1449
|
+
openFullPage?: boolean | undefined;
|
|
1450
|
+
readAllAccounts?: boolean | undefined;
|
|
1451
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1452
|
+
readonly _types?: {
|
|
1453
|
+
readonly input: {
|
|
1454
|
+
addPrivateKey?: boolean | undefined;
|
|
1455
|
+
openPopup?: boolean | undefined;
|
|
1456
|
+
openFullPage?: boolean | undefined;
|
|
1457
|
+
readAllAccounts?: boolean | undefined;
|
|
1148
1458
|
};
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
addPrivateKey: boolean;
|
|
1155
|
-
openPopup: boolean;
|
|
1156
|
-
openFullPage: boolean;
|
|
1157
|
-
readAllAccounts: boolean;
|
|
1459
|
+
readonly output: {
|
|
1460
|
+
addPrivateKey?: boolean | undefined;
|
|
1461
|
+
openPopup?: boolean | undefined;
|
|
1462
|
+
openFullPage?: boolean | undefined;
|
|
1463
|
+
readAllAccounts?: boolean | undefined;
|
|
1158
1464
|
};
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1465
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1466
|
+
} | undefined;
|
|
1467
|
+
};
|
|
1468
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1469
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1470
|
+
}, undefined>], undefined>;
|
|
1471
|
+
type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
|
|
1164
1472
|
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<{
|
|
1473
|
+
declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1474
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1170
1475
|
readonly read: v.BooleanSchema<undefined>;
|
|
1171
1476
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1172
1477
|
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;
|
|
1478
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1479
|
+
readonly entries: {
|
|
1480
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1481
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1482
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1192
1483
|
};
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1484
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1485
|
+
read?: boolean | undefined;
|
|
1486
|
+
autoSign?: boolean | undefined;
|
|
1487
|
+
rename?: boolean | undefined;
|
|
1488
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1489
|
+
readonly _types?: {
|
|
1490
|
+
readonly input: {
|
|
1491
|
+
read?: boolean | undefined;
|
|
1492
|
+
autoSign?: boolean | undefined;
|
|
1493
|
+
rename?: boolean | undefined;
|
|
1202
1494
|
};
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
actions: {
|
|
1208
|
-
read: boolean;
|
|
1209
|
-
autoSign: boolean;
|
|
1210
|
-
rename: boolean;
|
|
1495
|
+
readonly output: {
|
|
1496
|
+
read?: boolean | undefined;
|
|
1497
|
+
autoSign?: boolean | undefined;
|
|
1498
|
+
rename?: boolean | undefined;
|
|
1211
1499
|
};
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
readonly
|
|
1217
|
-
|
|
1218
|
-
readonly
|
|
1219
|
-
readonly actions: v.ObjectSchema<{
|
|
1500
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1501
|
+
} | undefined;
|
|
1502
|
+
};
|
|
1503
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1504
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1505
|
+
}, undefined>, v.ObjectSchema<{
|
|
1506
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1220
1507
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1221
1508
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1222
1509
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1223
1510
|
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;
|
|
1511
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1512
|
+
readonly entries: {
|
|
1513
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1514
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1515
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1516
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1245
1517
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1518
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1519
|
+
addPrivateKey?: boolean | undefined;
|
|
1520
|
+
openPopup?: boolean | undefined;
|
|
1521
|
+
openFullPage?: boolean | undefined;
|
|
1522
|
+
readAllAccounts?: boolean | undefined;
|
|
1523
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1524
|
+
readonly _types?: {
|
|
1525
|
+
readonly input: {
|
|
1526
|
+
addPrivateKey?: boolean | undefined;
|
|
1527
|
+
openPopup?: boolean | undefined;
|
|
1528
|
+
openFullPage?: boolean | undefined;
|
|
1529
|
+
readAllAccounts?: boolean | undefined;
|
|
1256
1530
|
};
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
addPrivateKey: boolean;
|
|
1263
|
-
openPopup: boolean;
|
|
1264
|
-
openFullPage: boolean;
|
|
1265
|
-
readAllAccounts: boolean;
|
|
1531
|
+
readonly output: {
|
|
1532
|
+
addPrivateKey?: boolean | undefined;
|
|
1533
|
+
openPopup?: boolean | undefined;
|
|
1534
|
+
openFullPage?: boolean | undefined;
|
|
1535
|
+
readAllAccounts?: boolean | undefined;
|
|
1266
1536
|
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1537
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1538
|
+
} | undefined;
|
|
1539
|
+
};
|
|
1540
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1541
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1542
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1543
|
+
type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
|
|
1271
1544
|
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
1545
|
+
type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
|
|
1272
1546
|
declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1273
1547
|
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<{
|
|
1548
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1549
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1279
1550
|
readonly read: v.BooleanSchema<undefined>;
|
|
1280
1551
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1281
1552
|
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;
|
|
1553
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1554
|
+
readonly entries: {
|
|
1555
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1556
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1557
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1301
1558
|
};
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1559
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1560
|
+
read?: boolean | undefined;
|
|
1561
|
+
autoSign?: boolean | undefined;
|
|
1562
|
+
rename?: boolean | undefined;
|
|
1563
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1564
|
+
readonly _types?: {
|
|
1565
|
+
readonly input: {
|
|
1566
|
+
read?: boolean | undefined;
|
|
1567
|
+
autoSign?: boolean | undefined;
|
|
1568
|
+
rename?: boolean | undefined;
|
|
1311
1569
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
actions: {
|
|
1317
|
-
read: boolean;
|
|
1318
|
-
autoSign: boolean;
|
|
1319
|
-
rename: boolean;
|
|
1570
|
+
readonly output: {
|
|
1571
|
+
read?: boolean | undefined;
|
|
1572
|
+
autoSign?: boolean | undefined;
|
|
1573
|
+
rename?: boolean | undefined;
|
|
1320
1574
|
};
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
readonly
|
|
1326
|
-
|
|
1327
|
-
readonly
|
|
1328
|
-
readonly actions: v.ObjectSchema<{
|
|
1575
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1576
|
+
} | undefined;
|
|
1577
|
+
};
|
|
1578
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1579
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1580
|
+
}, undefined>, v.ObjectSchema<{
|
|
1581
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1329
1582
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1330
1583
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1331
1584
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1332
1585
|
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;
|
|
1586
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1587
|
+
readonly entries: {
|
|
1588
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1589
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1590
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1591
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1354
1592
|
};
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1593
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1594
|
+
addPrivateKey?: boolean | undefined;
|
|
1595
|
+
openPopup?: boolean | undefined;
|
|
1596
|
+
openFullPage?: boolean | undefined;
|
|
1597
|
+
readAllAccounts?: boolean | undefined;
|
|
1598
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1599
|
+
readonly _types?: {
|
|
1600
|
+
readonly input: {
|
|
1601
|
+
addPrivateKey?: boolean | undefined;
|
|
1602
|
+
openPopup?: boolean | undefined;
|
|
1603
|
+
openFullPage?: boolean | undefined;
|
|
1604
|
+
readAllAccounts?: boolean | undefined;
|
|
1365
1605
|
};
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
addPrivateKey: boolean;
|
|
1372
|
-
openPopup: boolean;
|
|
1373
|
-
openFullPage: boolean;
|
|
1374
|
-
readAllAccounts: boolean;
|
|
1606
|
+
readonly output: {
|
|
1607
|
+
addPrivateKey?: boolean | undefined;
|
|
1608
|
+
openPopup?: boolean | undefined;
|
|
1609
|
+
openFullPage?: boolean | undefined;
|
|
1610
|
+
readAllAccounts?: boolean | undefined;
|
|
1375
1611
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1612
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1613
|
+
} | undefined;
|
|
1614
|
+
};
|
|
1615
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1616
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1617
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1380
1618
|
readonly id: v.StringSchema<undefined>;
|
|
1381
1619
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1382
1620
|
}, undefined>;
|
|
1383
|
-
type
|
|
1621
|
+
type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
|
|
1622
|
+
type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
|
|
1384
1623
|
declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
1385
1624
|
declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1625
|
+
type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
|
|
1386
1626
|
declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1627
|
+
type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
|
|
1387
1628
|
declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1388
1629
|
readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
|
|
1389
1630
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1390
1631
|
readonly id: v.StringSchema<undefined>;
|
|
1391
1632
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1392
1633
|
}, undefined>;
|
|
1393
|
-
type
|
|
1634
|
+
type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
|
|
1635
|
+
type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
|
|
1394
1636
|
declare const disconnectMethodName = "wallet_disconnect";
|
|
1395
1637
|
declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1638
|
+
type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
|
|
1396
1639
|
declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1640
|
+
type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
|
|
1397
1641
|
declare const disconnectRequestMessageSchema: v.ObjectSchema<{
|
|
1398
1642
|
readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
|
|
1399
1643
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1400
1644
|
readonly id: v.StringSchema<undefined>;
|
|
1401
1645
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1402
1646
|
}, undefined>;
|
|
1403
|
-
type
|
|
1647
|
+
type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
|
|
1648
|
+
type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
1404
1649
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1405
1650
|
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1651
|
+
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1406
1652
|
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1653
|
+
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1407
1654
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1408
1655
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
1409
1656
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1410
1657
|
readonly id: v.StringSchema<undefined>;
|
|
1411
1658
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1412
1659
|
}, undefined>;
|
|
1413
|
-
type
|
|
1660
|
+
type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
|
|
1661
|
+
type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
|
|
1414
1662
|
declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
1415
1663
|
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1664
|
+
type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
|
|
1416
1665
|
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1417
1666
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1418
1667
|
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
@@ -1433,15 +1682,18 @@ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"
|
|
|
1433
1682
|
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1434
1683
|
}, undefined>;
|
|
1435
1684
|
}, undefined>], undefined>, undefined>;
|
|
1685
|
+
type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
|
|
1436
1686
|
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1437
1687
|
readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
|
|
1438
1688
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1439
1689
|
readonly id: v.StringSchema<undefined>;
|
|
1440
1690
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1441
1691
|
}, undefined>;
|
|
1442
|
-
type
|
|
1692
|
+
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1693
|
+
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1443
1694
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1444
1695
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1696
|
+
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
1445
1697
|
declare const getAccountResultSchema: v.ObjectSchema<{
|
|
1446
1698
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1447
1699
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1452,144 +1704,89 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1452
1704
|
}, undefined>, undefined>;
|
|
1453
1705
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1454
1706
|
}, undefined>;
|
|
1707
|
+
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1455
1708
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
1456
1709
|
readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
|
|
1457
1710
|
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1458
1711
|
readonly id: v.StringSchema<undefined>;
|
|
1459
1712
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1460
1713
|
}, 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>>;
|
|
1714
|
+
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1715
|
+
type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
1480
1716
|
declare const connectMethodName = "wallet_connect";
|
|
1481
1717
|
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<{
|
|
1718
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1719
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1487
1720
|
readonly read: v.BooleanSchema<undefined>;
|
|
1488
1721
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1489
1722
|
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;
|
|
1723
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1724
|
+
readonly entries: {
|
|
1725
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1726
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1727
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1509
1728
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1729
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1730
|
+
read?: boolean | undefined;
|
|
1731
|
+
autoSign?: boolean | undefined;
|
|
1732
|
+
rename?: boolean | undefined;
|
|
1733
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1734
|
+
readonly _types?: {
|
|
1735
|
+
readonly input: {
|
|
1736
|
+
read?: boolean | undefined;
|
|
1737
|
+
autoSign?: boolean | undefined;
|
|
1738
|
+
rename?: boolean | undefined;
|
|
1519
1739
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
actions: {
|
|
1525
|
-
read: boolean;
|
|
1526
|
-
autoSign: boolean;
|
|
1527
|
-
rename: boolean;
|
|
1740
|
+
readonly output: {
|
|
1741
|
+
read?: boolean | undefined;
|
|
1742
|
+
autoSign?: boolean | undefined;
|
|
1743
|
+
rename?: boolean | undefined;
|
|
1528
1744
|
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
readonly
|
|
1534
|
-
|
|
1535
|
-
readonly
|
|
1536
|
-
readonly actions: v.ObjectSchema<{
|
|
1745
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1746
|
+
} | undefined;
|
|
1747
|
+
};
|
|
1748
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1749
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1750
|
+
}, undefined>, v.ObjectSchema<{
|
|
1751
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1537
1752
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1538
1753
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1539
1754
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1540
1755
|
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;
|
|
1756
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1757
|
+
readonly entries: {
|
|
1758
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1759
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1760
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1761
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1562
1762
|
};
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1763
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1764
|
+
addPrivateKey?: boolean | undefined;
|
|
1765
|
+
openPopup?: boolean | undefined;
|
|
1766
|
+
openFullPage?: boolean | undefined;
|
|
1767
|
+
readAllAccounts?: boolean | undefined;
|
|
1768
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1769
|
+
readonly _types?: {
|
|
1770
|
+
readonly input: {
|
|
1771
|
+
addPrivateKey?: boolean | undefined;
|
|
1772
|
+
openPopup?: boolean | undefined;
|
|
1773
|
+
openFullPage?: boolean | undefined;
|
|
1774
|
+
readAllAccounts?: boolean | undefined;
|
|
1573
1775
|
};
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
addPrivateKey: boolean;
|
|
1580
|
-
openPopup: boolean;
|
|
1581
|
-
openFullPage: boolean;
|
|
1582
|
-
readAllAccounts: boolean;
|
|
1776
|
+
readonly output: {
|
|
1777
|
+
addPrivateKey?: boolean | undefined;
|
|
1778
|
+
openPopup?: boolean | undefined;
|
|
1779
|
+
openFullPage?: boolean | undefined;
|
|
1780
|
+
readAllAccounts?: boolean | undefined;
|
|
1583
1781
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1591
|
-
}, undefined>;
|
|
1782
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
};
|
|
1785
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1786
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1787
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1592
1788
|
}, undefined>, never>;
|
|
1789
|
+
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1593
1790
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
1594
1791
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1595
1792
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1600,124 +1797,86 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1600
1797
|
}, undefined>, undefined>;
|
|
1601
1798
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1602
1799
|
}, undefined>;
|
|
1800
|
+
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1603
1801
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
1604
1802
|
readonly method: v.LiteralSchema<"wallet_connect", undefined>;
|
|
1605
1803
|
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<{
|
|
1804
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1805
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1611
1806
|
readonly read: v.BooleanSchema<undefined>;
|
|
1612
1807
|
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1613
1808
|
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;
|
|
1809
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1810
|
+
readonly entries: {
|
|
1811
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1812
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1813
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1633
1814
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1815
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1816
|
+
read?: boolean | undefined;
|
|
1817
|
+
autoSign?: boolean | undefined;
|
|
1818
|
+
rename?: boolean | undefined;
|
|
1819
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1820
|
+
readonly _types?: {
|
|
1821
|
+
readonly input: {
|
|
1822
|
+
read?: boolean | undefined;
|
|
1823
|
+
autoSign?: boolean | undefined;
|
|
1824
|
+
rename?: boolean | undefined;
|
|
1643
1825
|
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
actions: {
|
|
1649
|
-
read: boolean;
|
|
1650
|
-
autoSign: boolean;
|
|
1651
|
-
rename: boolean;
|
|
1826
|
+
readonly output: {
|
|
1827
|
+
read?: boolean | undefined;
|
|
1828
|
+
autoSign?: boolean | undefined;
|
|
1829
|
+
rename?: boolean | undefined;
|
|
1652
1830
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
readonly
|
|
1658
|
-
|
|
1659
|
-
readonly
|
|
1660
|
-
readonly actions: v.ObjectSchema<{
|
|
1831
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
};
|
|
1834
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1835
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1836
|
+
}, undefined>, v.ObjectSchema<{
|
|
1837
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1661
1838
|
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1662
1839
|
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1663
1840
|
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1664
1841
|
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;
|
|
1842
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1843
|
+
readonly entries: {
|
|
1844
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1845
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1846
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1847
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1686
1848
|
};
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1849
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1850
|
+
addPrivateKey?: boolean | undefined;
|
|
1851
|
+
openPopup?: boolean | undefined;
|
|
1852
|
+
openFullPage?: boolean | undefined;
|
|
1853
|
+
readAllAccounts?: boolean | undefined;
|
|
1854
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1855
|
+
readonly _types?: {
|
|
1856
|
+
readonly input: {
|
|
1857
|
+
addPrivateKey?: boolean | undefined;
|
|
1858
|
+
openPopup?: boolean | undefined;
|
|
1859
|
+
openFullPage?: boolean | undefined;
|
|
1860
|
+
readAllAccounts?: boolean | undefined;
|
|
1697
1861
|
};
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
addPrivateKey: boolean;
|
|
1704
|
-
openPopup: boolean;
|
|
1705
|
-
openFullPage: boolean;
|
|
1706
|
-
readAllAccounts: boolean;
|
|
1862
|
+
readonly output: {
|
|
1863
|
+
addPrivateKey?: boolean | undefined;
|
|
1864
|
+
openPopup?: boolean | undefined;
|
|
1865
|
+
openFullPage?: boolean | undefined;
|
|
1866
|
+
readAllAccounts?: boolean | undefined;
|
|
1707
1867
|
};
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1715
|
-
}, undefined>;
|
|
1868
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
};
|
|
1871
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1872
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1873
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1716
1874
|
}, undefined>, never>;
|
|
1717
1875
|
readonly id: v.StringSchema<undefined>;
|
|
1718
1876
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1719
1877
|
}, undefined>;
|
|
1720
|
-
type
|
|
1878
|
+
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1879
|
+
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1721
1880
|
|
|
1722
1881
|
declare const walletTypes: readonly ["software", "ledger"];
|
|
1723
1882
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
@@ -1728,7 +1887,7 @@ interface StxRequests {
|
|
|
1728
1887
|
stx_deployContract: StxDeployContract;
|
|
1729
1888
|
stx_getAccounts: StxGetAccounts;
|
|
1730
1889
|
stx_getAddresses: StxGetAddresses;
|
|
1731
|
-
stx_signMessage:
|
|
1890
|
+
stx_signMessage: StxSignMessage;
|
|
1732
1891
|
stx_signStructuredMessage: StxSignStructuredMessage;
|
|
1733
1892
|
stx_signTransaction: StxSignTransaction;
|
|
1734
1893
|
stx_transferStx: StxTransferStx;
|
|
@@ -1745,15 +1904,15 @@ interface BtcRequests {
|
|
|
1745
1904
|
}
|
|
1746
1905
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1747
1906
|
interface RunesRequests {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
runes_etch:
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
runes_transfer:
|
|
1907
|
+
runes_estimateEtch: RunesEstimateEtch;
|
|
1908
|
+
runes_estimateMint: RunesEstimateMint;
|
|
1909
|
+
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
1910
|
+
runes_etch: RunesEtch;
|
|
1911
|
+
runes_getBalance: RunesGetBalance;
|
|
1912
|
+
runes_getOrder: RunesGetOrder;
|
|
1913
|
+
runes_mint: RunesMint;
|
|
1914
|
+
runes_rbfOrder: RunesRbfOrder;
|
|
1915
|
+
runes_transfer: RunesTransfer;
|
|
1757
1916
|
}
|
|
1758
1917
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1759
1918
|
interface OrdinalsRequests {
|
|
@@ -1798,4 +1957,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1798
1957
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1799
1958
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1800
1959
|
|
|
1801
|
-
export { type AccountChangeEvent, type AddListener, type Address
|
|
1960
|
+
export { type AccountChangeEvent, type AddListener, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, 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, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, 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 };
|