@sats-connect/core 0.7.0-c70c343 → 0.7.0-d838b5c
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 +156 -156
- package/dist/index.d.ts +156 -156
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -138,7 +138,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
138
138
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
139
139
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
140
140
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
141
|
-
}, undefined>, undefined>,
|
|
141
|
+
}, undefined>, undefined>, undefined>;
|
|
142
142
|
}, undefined>;
|
|
143
143
|
type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
|
|
144
144
|
declare const networkChangeEventName = "networkChange";
|
|
@@ -156,7 +156,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
156
156
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
157
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
158
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
159
|
-
}, undefined>, undefined>,
|
|
159
|
+
}, undefined>, undefined>, undefined>;
|
|
160
160
|
}, undefined>;
|
|
161
161
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
162
162
|
declare const disconnectEventName = "disconnect";
|
|
@@ -172,7 +172,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
172
172
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
173
173
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
174
174
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
175
|
-
}, undefined>, undefined>,
|
|
175
|
+
}, undefined>, undefined>, undefined>;
|
|
176
176
|
}, undefined>, v.ObjectSchema<{
|
|
177
177
|
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
178
178
|
readonly bitcoin: v.ObjectSchema<{
|
|
@@ -187,7 +187,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
187
187
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
188
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
189
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
190
|
-
}, undefined>, undefined>,
|
|
190
|
+
}, undefined>, undefined>, undefined>;
|
|
191
191
|
}, undefined>, v.ObjectSchema<{
|
|
192
192
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
193
193
|
}, undefined>], undefined>;
|
|
@@ -272,12 +272,12 @@ interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
|
272
272
|
payload: Payload;
|
|
273
273
|
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
274
274
|
}
|
|
275
|
-
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>,
|
|
275
|
+
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
276
276
|
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
277
277
|
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
278
278
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
279
279
|
readonly method: v.StringSchema<undefined>;
|
|
280
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>,
|
|
280
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
281
281
|
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
282
282
|
}, undefined>;
|
|
283
283
|
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
@@ -336,23 +336,23 @@ declare enum RpcErrorCode {
|
|
|
336
336
|
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
337
337
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
338
338
|
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
339
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>,
|
|
339
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
340
340
|
}, undefined>;
|
|
341
341
|
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
342
342
|
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
343
343
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
344
344
|
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
345
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>,
|
|
345
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
346
346
|
}, undefined>;
|
|
347
347
|
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
348
348
|
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
349
349
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
350
350
|
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
351
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>,
|
|
351
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
352
352
|
}, undefined>, v.ObjectSchema<{
|
|
353
353
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
354
354
|
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
355
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>,
|
|
355
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
356
356
|
}, undefined>], undefined>;
|
|
357
357
|
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
358
358
|
interface RpcError {
|
|
@@ -376,7 +376,7 @@ type RpcResult<Method extends keyof Requests> = {
|
|
|
376
376
|
};
|
|
377
377
|
|
|
378
378
|
declare const getInfoMethodName = "getInfo";
|
|
379
|
-
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
379
|
+
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
380
380
|
type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
|
|
381
381
|
declare const getInfoResultSchema: v.ObjectSchema<{
|
|
382
382
|
/**
|
|
@@ -386,7 +386,7 @@ declare const getInfoResultSchema: v.ObjectSchema<{
|
|
|
386
386
|
/**
|
|
387
387
|
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
388
388
|
*/
|
|
389
|
-
readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
389
|
+
readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
390
390
|
/**
|
|
391
391
|
* List of WBIP standards supported by the wallet. Not currently used.
|
|
392
392
|
*/
|
|
@@ -395,7 +395,7 @@ declare const getInfoResultSchema: v.ObjectSchema<{
|
|
|
395
395
|
type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;
|
|
396
396
|
declare const getInfoRequestMessageSchema: v.ObjectSchema<{
|
|
397
397
|
readonly method: v.LiteralSchema<"getInfo", undefined>;
|
|
398
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
398
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
399
399
|
readonly id: v.StringSchema<undefined>;
|
|
400
400
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
401
401
|
}, undefined>;
|
|
@@ -411,7 +411,7 @@ declare const getAddressesParamsSchema: v.ObjectSchema<{
|
|
|
411
411
|
/**
|
|
412
412
|
* A message to be displayed to the user in the request prompt.
|
|
413
413
|
*/
|
|
414
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
414
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
415
415
|
}, undefined>;
|
|
416
416
|
type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;
|
|
417
417
|
declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
@@ -451,7 +451,7 @@ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
451
451
|
/**
|
|
452
452
|
* A message to be displayed to the user in the request prompt.
|
|
453
453
|
*/
|
|
454
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
454
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
455
455
|
}, undefined>;
|
|
456
456
|
readonly id: v.StringSchema<undefined>;
|
|
457
457
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -475,7 +475,7 @@ declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
|
475
475
|
/**
|
|
476
476
|
* The protocol to use for signing the message.
|
|
477
477
|
*/
|
|
478
|
-
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>,
|
|
478
|
+
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
|
|
479
479
|
}, undefined>;
|
|
480
480
|
type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
|
|
481
481
|
declare const signMessageResultSchema: v.ObjectSchema<{
|
|
@@ -511,7 +511,7 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
511
511
|
/**
|
|
512
512
|
* The protocol to use for signing the message.
|
|
513
513
|
*/
|
|
514
|
-
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>,
|
|
514
|
+
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
|
|
515
515
|
}, undefined>;
|
|
516
516
|
readonly id: v.StringSchema<undefined>;
|
|
517
517
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -564,11 +564,11 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
564
564
|
* The inputs to sign.
|
|
565
565
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
566
566
|
*/
|
|
567
|
-
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>,
|
|
567
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
|
|
568
568
|
/**
|
|
569
569
|
* Whether to broadcast the transaction after signing.
|
|
570
570
|
**/
|
|
571
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
571
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
572
572
|
}, undefined>;
|
|
573
573
|
type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
|
|
574
574
|
declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
@@ -580,7 +580,7 @@ declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
|
580
580
|
* The transaction id as a hex-encoded string.
|
|
581
581
|
* This is only returned if the transaction was broadcast.
|
|
582
582
|
**/
|
|
583
|
-
readonly txid: v.OptionalSchema<v.StringSchema<undefined>,
|
|
583
|
+
readonly txid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
584
584
|
}, undefined>;
|
|
585
585
|
type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
|
|
586
586
|
declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -594,11 +594,11 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
594
594
|
* The inputs to sign.
|
|
595
595
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
596
596
|
*/
|
|
597
|
-
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>,
|
|
597
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
|
|
598
598
|
/**
|
|
599
599
|
* Whether to broadcast the transaction after signing.
|
|
600
600
|
**/
|
|
601
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
601
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
602
602
|
}, undefined>;
|
|
603
603
|
readonly id: v.StringSchema<undefined>;
|
|
604
604
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -615,7 +615,7 @@ declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
|
615
615
|
/**
|
|
616
616
|
* A message to be displayed to the user in the request prompt.
|
|
617
617
|
*/
|
|
618
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
618
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
619
619
|
}, undefined>;
|
|
620
620
|
type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
621
621
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -639,7 +639,7 @@ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
|
639
639
|
/**
|
|
640
640
|
* A message to be displayed to the user in the request prompt.
|
|
641
641
|
*/
|
|
642
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
642
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
643
643
|
}, undefined>;
|
|
644
644
|
readonly id: v.StringSchema<undefined>;
|
|
645
645
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -647,7 +647,7 @@ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
|
647
647
|
type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
|
|
648
648
|
type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
|
|
649
649
|
declare const getBalanceMethodName = "getBalance";
|
|
650
|
-
declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
650
|
+
declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
651
651
|
type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
|
|
652
652
|
declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
653
653
|
/**
|
|
@@ -674,7 +674,7 @@ declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
|
674
674
|
readonly method: v.LiteralSchema<"getBalance", undefined>;
|
|
675
675
|
readonly id: v.StringSchema<undefined>;
|
|
676
676
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
677
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>,
|
|
677
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
678
678
|
}, undefined>;
|
|
679
679
|
type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
|
|
680
680
|
type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
|
|
@@ -693,7 +693,7 @@ declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
|
693
693
|
readonly inscriptionId: v.StringSchema<undefined>;
|
|
694
694
|
readonly inscriptionNumber: v.StringSchema<undefined>;
|
|
695
695
|
readonly address: v.StringSchema<undefined>;
|
|
696
|
-
readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>,
|
|
696
|
+
readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
697
697
|
readonly postage: v.StringSchema<undefined>;
|
|
698
698
|
readonly contentLength: v.StringSchema<undefined>;
|
|
699
699
|
readonly contentType: v.StringSchema<undefined>;
|
|
@@ -827,29 +827,29 @@ type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams,
|
|
|
827
827
|
declare const runesEtchMethodName = "runes_etch";
|
|
828
828
|
declare const runesEtchParamsSchema: v.ObjectSchema<{
|
|
829
829
|
readonly runeName: v.StringSchema<undefined>;
|
|
830
|
-
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
831
|
-
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>,
|
|
832
|
-
readonly premine: v.OptionalSchema<v.StringSchema<undefined>,
|
|
830
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
831
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
832
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
833
833
|
readonly isMintable: v.BooleanSchema<undefined>;
|
|
834
|
-
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
834
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
835
835
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
836
836
|
readonly refundAddress: v.StringSchema<undefined>;
|
|
837
837
|
readonly feeRate: v.NumberSchema<undefined>;
|
|
838
|
-
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
839
|
-
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>,
|
|
838
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
839
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
840
840
|
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
841
841
|
readonly amount: v.StringSchema<undefined>;
|
|
842
842
|
readonly cap: v.StringSchema<undefined>;
|
|
843
|
-
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>,
|
|
844
|
-
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>,
|
|
845
|
-
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>,
|
|
846
|
-
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>,
|
|
847
|
-
}, undefined>,
|
|
843
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
844
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
845
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
846
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
847
|
+
}, undefined>, undefined>;
|
|
848
848
|
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
849
849
|
readonly contentType: v.StringSchema<undefined>;
|
|
850
850
|
readonly contentBase64: v.StringSchema<undefined>;
|
|
851
|
-
}, undefined>,
|
|
852
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
851
|
+
}, undefined>, undefined>;
|
|
852
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
853
853
|
}, undefined>;
|
|
854
854
|
type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
|
|
855
855
|
declare const runesEtchResultSchema: v.ObjectSchema<{
|
|
@@ -862,29 +862,29 @@ declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
|
|
|
862
862
|
readonly method: v.LiteralSchema<"runes_etch", undefined>;
|
|
863
863
|
readonly params: v.ObjectSchema<{
|
|
864
864
|
readonly runeName: v.StringSchema<undefined>;
|
|
865
|
-
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
866
|
-
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>,
|
|
867
|
-
readonly premine: v.OptionalSchema<v.StringSchema<undefined>,
|
|
865
|
+
readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
866
|
+
readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
867
|
+
readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
868
868
|
readonly isMintable: v.BooleanSchema<undefined>;
|
|
869
|
-
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
869
|
+
readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
870
870
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
871
871
|
readonly refundAddress: v.StringSchema<undefined>;
|
|
872
872
|
readonly feeRate: v.NumberSchema<undefined>;
|
|
873
|
-
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
874
|
-
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>,
|
|
873
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
874
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
875
875
|
readonly terms: v.OptionalSchema<v.ObjectSchema<{
|
|
876
876
|
readonly amount: v.StringSchema<undefined>;
|
|
877
877
|
readonly cap: v.StringSchema<undefined>;
|
|
878
|
-
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>,
|
|
879
|
-
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>,
|
|
880
|
-
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>,
|
|
881
|
-
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>,
|
|
882
|
-
}, undefined>,
|
|
878
|
+
readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
879
|
+
readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
880
|
+
readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
881
|
+
readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
882
|
+
}, undefined>, undefined>;
|
|
883
883
|
readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
|
|
884
884
|
readonly contentType: v.StringSchema<undefined>;
|
|
885
885
|
readonly contentBase64: v.StringSchema<undefined>;
|
|
886
|
-
}, undefined>,
|
|
887
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
886
|
+
}, undefined>, undefined>;
|
|
887
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
888
888
|
}, undefined>;
|
|
889
889
|
readonly id: v.StringSchema<undefined>;
|
|
890
890
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -893,7 +893,7 @@ type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchem
|
|
|
893
893
|
type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
|
|
894
894
|
|
|
895
895
|
declare const runesGetBalanceMethodName = "runes_getBalance";
|
|
896
|
-
declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
896
|
+
declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
897
897
|
type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
|
|
898
898
|
declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
899
899
|
readonly balances: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -901,14 +901,14 @@ declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
|
901
901
|
readonly amount: v.StringSchema<undefined>;
|
|
902
902
|
readonly divisibility: v.NumberSchema<undefined>;
|
|
903
903
|
readonly symbol: v.StringSchema<undefined>;
|
|
904
|
-
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>,
|
|
904
|
+
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
905
905
|
readonly spendableBalance: v.StringSchema<undefined>;
|
|
906
906
|
}, undefined>, undefined>;
|
|
907
907
|
}, undefined>;
|
|
908
908
|
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
909
909
|
declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
910
910
|
readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
|
|
911
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
911
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
912
912
|
readonly id: v.StringSchema<undefined>;
|
|
913
913
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
914
914
|
}, undefined>;
|
|
@@ -922,14 +922,14 @@ type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse
|
|
|
922
922
|
|
|
923
923
|
declare const runesMintMethodName = "runes_mint";
|
|
924
924
|
declare const runesMintParamsSchema: v.ObjectSchema<{
|
|
925
|
-
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
926
|
-
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>,
|
|
925
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
926
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
927
927
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
928
928
|
readonly feeRate: v.NumberSchema<undefined>;
|
|
929
929
|
readonly refundAddress: v.StringSchema<undefined>;
|
|
930
930
|
readonly repeats: v.NumberSchema<undefined>;
|
|
931
931
|
readonly runeName: v.StringSchema<undefined>;
|
|
932
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
932
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
933
933
|
}, undefined>;
|
|
934
934
|
type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
|
|
935
935
|
declare const runesMintResultSchema: v.ObjectSchema<{
|
|
@@ -941,14 +941,14 @@ type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
|
|
|
941
941
|
declare const runesMintRequestMessageSchema: v.ObjectSchema<{
|
|
942
942
|
readonly method: v.LiteralSchema<"runes_mint", undefined>;
|
|
943
943
|
readonly params: v.ObjectSchema<{
|
|
944
|
-
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
945
|
-
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>,
|
|
944
|
+
readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
945
|
+
readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
946
946
|
readonly destinationAddress: v.StringSchema<undefined>;
|
|
947
947
|
readonly feeRate: v.NumberSchema<undefined>;
|
|
948
948
|
readonly refundAddress: v.StringSchema<undefined>;
|
|
949
949
|
readonly repeats: v.NumberSchema<undefined>;
|
|
950
950
|
readonly runeName: v.StringSchema<undefined>;
|
|
951
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
951
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
952
952
|
}, undefined>;
|
|
953
953
|
readonly id: v.StringSchema<undefined>;
|
|
954
954
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1012,7 +1012,7 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
1012
1012
|
/**
|
|
1013
1013
|
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
1014
1014
|
*/
|
|
1015
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1015
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1016
1016
|
/**
|
|
1017
1017
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1018
1018
|
* strings of Clarity values.
|
|
@@ -1027,15 +1027,15 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
1027
1027
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
1028
1028
|
* ```
|
|
1029
1029
|
*/
|
|
1030
|
-
readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1030
|
+
readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1031
1031
|
/**
|
|
1032
1032
|
* The post conditions to apply to the contract call.
|
|
1033
1033
|
*/
|
|
1034
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1034
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1035
1035
|
/**
|
|
1036
1036
|
* The mode to apply to the post conditions.
|
|
1037
1037
|
*/
|
|
1038
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>,
|
|
1038
|
+
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
|
|
1039
1039
|
}, undefined>;
|
|
1040
1040
|
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
1041
1041
|
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
@@ -1068,7 +1068,7 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1068
1068
|
/**
|
|
1069
1069
|
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
1070
1070
|
*/
|
|
1071
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1071
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1074
1074
|
* strings of Clarity values.
|
|
@@ -1083,15 +1083,15 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1083
1083
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
1084
1084
|
* ```
|
|
1085
1085
|
*/
|
|
1086
|
-
readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1086
|
+
readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* The post conditions to apply to the contract call.
|
|
1089
1089
|
*/
|
|
1090
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1090
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1091
1091
|
/**
|
|
1092
1092
|
* The mode to apply to the post conditions.
|
|
1093
1093
|
*/
|
|
1094
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>,
|
|
1094
|
+
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
|
|
1095
1095
|
}, undefined>;
|
|
1096
1096
|
readonly id: v.StringSchema<undefined>;
|
|
1097
1097
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1112,15 +1112,15 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* The version of the Clarity contract.
|
|
1114
1114
|
*/
|
|
1115
|
-
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
1115
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1116
1116
|
/**
|
|
1117
1117
|
* The post conditions to apply to the contract call.
|
|
1118
1118
|
*/
|
|
1119
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1119
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1120
1120
|
/**
|
|
1121
1121
|
* The mode to apply to the post conditions.
|
|
1122
1122
|
*/
|
|
1123
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>,
|
|
1123
|
+
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
|
|
1124
1124
|
}, undefined>;
|
|
1125
1125
|
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1126
1126
|
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
@@ -1148,15 +1148,15 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1148
1148
|
/**
|
|
1149
1149
|
* The version of the Clarity contract.
|
|
1150
1150
|
*/
|
|
1151
|
-
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
1151
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1152
1152
|
/**
|
|
1153
1153
|
* The post conditions to apply to the contract call.
|
|
1154
1154
|
*/
|
|
1155
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1155
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1156
1156
|
/**
|
|
1157
1157
|
* The mode to apply to the post conditions.
|
|
1158
1158
|
*/
|
|
1159
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>,
|
|
1159
|
+
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
|
|
1160
1160
|
}, undefined>;
|
|
1161
1161
|
readonly id: v.StringSchema<undefined>;
|
|
1162
1162
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1165,7 +1165,7 @@ type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractReq
|
|
|
1165
1165
|
type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
|
|
1166
1166
|
|
|
1167
1167
|
declare const stxGetAccountsMethodName = "stx_getAccounts";
|
|
1168
|
-
declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1168
|
+
declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1169
1169
|
type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
|
|
1170
1170
|
declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
1171
1171
|
/**
|
|
@@ -1189,7 +1189,7 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1189
1189
|
type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
|
|
1190
1190
|
declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
1191
1191
|
readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
|
|
1192
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1192
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1193
1193
|
readonly id: v.StringSchema<undefined>;
|
|
1194
1194
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1195
1195
|
}, undefined>;
|
|
@@ -1201,8 +1201,8 @@ declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
|
1201
1201
|
/**
|
|
1202
1202
|
* A message to be displayed to the user in the request prompt.
|
|
1203
1203
|
*/
|
|
1204
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1205
|
-
}, undefined>,
|
|
1204
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1205
|
+
}, undefined>, undefined>;
|
|
1206
1206
|
type StxGetAddressesParams = v.InferOutput<typeof stxGetAddressesParamsSchema>;
|
|
1207
1207
|
declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
1208
1208
|
/**
|
|
@@ -1231,8 +1231,8 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
|
1231
1231
|
/**
|
|
1232
1232
|
* A message to be displayed to the user in the request prompt.
|
|
1233
1233
|
*/
|
|
1234
|
-
readonly message: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1235
|
-
}, undefined>,
|
|
1234
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1235
|
+
}, undefined>, undefined>;
|
|
1236
1236
|
readonly id: v.StringSchema<undefined>;
|
|
1237
1237
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1238
1238
|
}, undefined>;
|
|
@@ -1285,7 +1285,7 @@ declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
|
|
|
1285
1285
|
/**
|
|
1286
1286
|
* The public key to sign the message with.
|
|
1287
1287
|
*/
|
|
1288
|
-
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1288
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1289
1289
|
}, undefined>;
|
|
1290
1290
|
type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
|
|
1291
1291
|
declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
|
|
@@ -1313,7 +1313,7 @@ declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
1313
1313
|
/**
|
|
1314
1314
|
* The public key to sign the message with.
|
|
1315
1315
|
*/
|
|
1316
|
-
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1316
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1317
1317
|
}, undefined>;
|
|
1318
1318
|
readonly id: v.StringSchema<undefined>;
|
|
1319
1319
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1331,11 +1331,11 @@ declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
|
|
|
1331
1331
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1332
1332
|
* when not provided.
|
|
1333
1333
|
*/
|
|
1334
|
-
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1334
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Whether to broadcast the transaction after signing. Defaults to `true`.
|
|
1337
1337
|
*/
|
|
1338
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1338
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1339
1339
|
}, undefined>;
|
|
1340
1340
|
type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
|
|
1341
1341
|
declare const stxSignTransactionResultSchema: v.ObjectSchema<{
|
|
@@ -1356,11 +1356,11 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
|
1356
1356
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1357
1357
|
* when not provided.
|
|
1358
1358
|
*/
|
|
1359
|
-
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1359
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Whether to broadcast the transaction after signing. Defaults to `true`.
|
|
1362
1362
|
*/
|
|
1363
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1363
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1364
1364
|
}, undefined>;
|
|
1365
1365
|
readonly id: v.StringSchema<undefined>;
|
|
1366
1366
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1373,12 +1373,12 @@ declare const stxSignTransactionsParamsSchema: v.ObjectSchema<{
|
|
|
1373
1373
|
/**
|
|
1374
1374
|
* The transactions to sign as hex-encoded strings.
|
|
1375
1375
|
*/
|
|
1376
|
-
readonly transactions: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
1376
|
+
readonly transactions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Whether the signed transactions should be broadcast after signing. Defaults
|
|
1379
1379
|
* to `true`.
|
|
1380
1380
|
*/
|
|
1381
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1381
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1382
1382
|
}, undefined>;
|
|
1383
1383
|
type StxSignTransactionsParams = v.InferOutput<typeof stxSignTransactionsParamsSchema>;
|
|
1384
1384
|
declare const stxSignTransactionsResultSchema: v.ObjectSchema<{
|
|
@@ -1395,12 +1395,12 @@ declare const stxSignTransactionsRequestMessageSchema: v.ObjectSchema<{
|
|
|
1395
1395
|
/**
|
|
1396
1396
|
* The transactions to sign as hex-encoded strings.
|
|
1397
1397
|
*/
|
|
1398
|
-
readonly transactions: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
1398
|
+
readonly transactions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Whether the signed transactions should be broadcast after signing. Defaults
|
|
1401
1401
|
* to `true`.
|
|
1402
1402
|
*/
|
|
1403
|
-
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1403
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1404
1404
|
}, undefined>;
|
|
1405
1405
|
readonly id: v.StringSchema<undefined>;
|
|
1406
1406
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1430,15 +1430,15 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
|
1430
1430
|
/**
|
|
1431
1431
|
* A string representing the memo.
|
|
1432
1432
|
*/
|
|
1433
|
-
readonly memo: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1433
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Version of parameter format.
|
|
1436
1436
|
*/
|
|
1437
|
-
readonly version: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1437
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1438
1438
|
/**
|
|
1439
1439
|
* The mode of the post conditions.
|
|
1440
1440
|
*/
|
|
1441
|
-
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
1441
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1442
1442
|
/**
|
|
1443
1443
|
* A hex-encoded string representing the post conditions.
|
|
1444
1444
|
*
|
|
@@ -1451,12 +1451,12 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
|
1451
1451
|
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1452
1452
|
* ```
|
|
1453
1453
|
*/
|
|
1454
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1454
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1455
1455
|
/**
|
|
1456
1456
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1457
1457
|
* when not provided.
|
|
1458
1458
|
*/
|
|
1459
|
-
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1459
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1460
1460
|
}, undefined>;
|
|
1461
1461
|
type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
|
|
1462
1462
|
declare const stxTransferStxResultSchema: v.ObjectSchema<{
|
|
@@ -1493,15 +1493,15 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
|
1493
1493
|
/**
|
|
1494
1494
|
* A string representing the memo.
|
|
1495
1495
|
*/
|
|
1496
|
-
readonly memo: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1496
|
+
readonly memo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Version of parameter format.
|
|
1499
1499
|
*/
|
|
1500
|
-
readonly version: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1500
|
+
readonly version: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1501
1501
|
/**
|
|
1502
1502
|
* The mode of the post conditions.
|
|
1503
1503
|
*/
|
|
1504
|
-
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>,
|
|
1504
|
+
readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1505
1505
|
/**
|
|
1506
1506
|
* A hex-encoded string representing the post conditions.
|
|
1507
1507
|
*
|
|
@@ -1514,12 +1514,12 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
|
1514
1514
|
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1515
1515
|
* ```
|
|
1516
1516
|
*/
|
|
1517
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
|
1517
|
+
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1518
1518
|
/**
|
|
1519
1519
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1520
1520
|
* when not provided.
|
|
1521
1521
|
*/
|
|
1522
|
-
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1522
|
+
readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1523
1523
|
}, undefined>;
|
|
1524
1524
|
readonly id: v.StringSchema<undefined>;
|
|
1525
1525
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1528,17 +1528,17 @@ type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMe
|
|
|
1528
1528
|
type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
|
|
1529
1529
|
|
|
1530
1530
|
declare const accountActionsSchema: v.ObjectSchema<{
|
|
1531
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1531
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1532
1532
|
}, undefined>;
|
|
1533
1533
|
declare const walletActionsSchema: v.ObjectSchema<{
|
|
1534
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1534
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1535
1535
|
}, undefined>;
|
|
1536
1536
|
declare const accountPermissionSchema: v.ObjectSchema<{
|
|
1537
1537
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1538
1538
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1539
1539
|
readonly clientId: v.StringSchema<undefined>;
|
|
1540
1540
|
readonly actions: v.ObjectSchema<{
|
|
1541
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1541
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1542
1542
|
}, undefined>;
|
|
1543
1543
|
}, undefined>;
|
|
1544
1544
|
declare const walletPermissionSchema: v.ObjectSchema<{
|
|
@@ -1546,7 +1546,7 @@ declare const walletPermissionSchema: v.ObjectSchema<{
|
|
|
1546
1546
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1547
1547
|
readonly clientId: v.StringSchema<undefined>;
|
|
1548
1548
|
readonly actions: v.ObjectSchema<{
|
|
1549
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1549
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1550
1550
|
}, undefined>;
|
|
1551
1551
|
}, undefined>;
|
|
1552
1552
|
/**
|
|
@@ -1559,13 +1559,13 @@ declare const PermissionRequestParams: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
1559
1559
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1560
1560
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1561
1561
|
readonly actions: v.ObjectSchema<{
|
|
1562
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1562
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1563
1563
|
}, undefined>;
|
|
1564
1564
|
}, undefined>, v.ObjectSchema<{
|
|
1565
1565
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1566
1566
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1567
1567
|
readonly actions: v.ObjectSchema<{
|
|
1568
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1568
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1569
1569
|
}, undefined>;
|
|
1570
1570
|
}, undefined>], undefined>;
|
|
1571
1571
|
declare const permission: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1573,14 +1573,14 @@ declare const permission: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
1573
1573
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1574
1574
|
readonly clientId: v.StringSchema<undefined>;
|
|
1575
1575
|
readonly actions: v.ObjectSchema<{
|
|
1576
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1576
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1577
1577
|
}, undefined>;
|
|
1578
1578
|
}, undefined>, v.ObjectSchema<{
|
|
1579
1579
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1580
1580
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1581
1581
|
readonly clientId: v.StringSchema<undefined>;
|
|
1582
1582
|
readonly actions: v.ObjectSchema<{
|
|
1583
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1583
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1584
1584
|
}, undefined>;
|
|
1585
1585
|
}, undefined>], undefined>;
|
|
1586
1586
|
type PermissionWithoutClientId = v.InferOutput<typeof PermissionRequestParams>;
|
|
@@ -1589,15 +1589,15 @@ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.Va
|
|
|
1589
1589
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1590
1590
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1591
1591
|
readonly actions: v.ObjectSchema<{
|
|
1592
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1592
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1593
1593
|
}, undefined>;
|
|
1594
1594
|
}, undefined>, v.ObjectSchema<{
|
|
1595
1595
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1596
1596
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1597
1597
|
readonly actions: v.ObjectSchema<{
|
|
1598
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1598
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1599
1599
|
}, undefined>;
|
|
1600
|
-
}, undefined>], undefined>, undefined>,
|
|
1600
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
1601
1601
|
type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
|
|
1602
1602
|
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
1603
1603
|
type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
|
|
@@ -1607,88 +1607,88 @@ declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
|
1607
1607
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1608
1608
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1609
1609
|
readonly actions: v.ObjectSchema<{
|
|
1610
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1610
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1611
1611
|
}, undefined>;
|
|
1612
1612
|
}, undefined>, v.ObjectSchema<{
|
|
1613
1613
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1614
1614
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1615
1615
|
readonly actions: v.ObjectSchema<{
|
|
1616
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1616
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1617
1617
|
}, undefined>;
|
|
1618
|
-
}, undefined>], undefined>, undefined>,
|
|
1618
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
1619
1619
|
readonly id: v.StringSchema<undefined>;
|
|
1620
1620
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1621
1621
|
}, undefined>;
|
|
1622
1622
|
type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
|
|
1623
1623
|
type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
|
|
1624
1624
|
declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
1625
|
-
declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1625
|
+
declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1626
1626
|
type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
|
|
1627
|
-
declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1627
|
+
declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1628
1628
|
type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
|
|
1629
1629
|
declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1630
1630
|
readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
|
|
1631
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1631
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1632
1632
|
readonly id: v.StringSchema<undefined>;
|
|
1633
1633
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1634
1634
|
}, undefined>;
|
|
1635
1635
|
type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
|
|
1636
1636
|
type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
|
|
1637
1637
|
declare const disconnectMethodName = "wallet_disconnect";
|
|
1638
|
-
declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1638
|
+
declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1639
1639
|
type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
|
|
1640
|
-
declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1640
|
+
declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1641
1641
|
type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
|
|
1642
1642
|
declare const disconnectRequestMessageSchema: v.ObjectSchema<{
|
|
1643
1643
|
readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
|
|
1644
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1644
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1645
1645
|
readonly id: v.StringSchema<undefined>;
|
|
1646
1646
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1647
1647
|
}, undefined>;
|
|
1648
1648
|
type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
|
|
1649
1649
|
type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
1650
1650
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1651
|
-
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1651
|
+
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1652
1652
|
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1653
1653
|
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1654
1654
|
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1655
1655
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1656
1656
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
1657
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1657
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1658
1658
|
readonly id: v.StringSchema<undefined>;
|
|
1659
1659
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1660
1660
|
}, undefined>;
|
|
1661
1661
|
type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
|
|
1662
1662
|
type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
|
|
1663
1663
|
declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
1664
|
-
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1664
|
+
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1665
1665
|
type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
|
|
1666
1666
|
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1667
1667
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1668
1668
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1669
1669
|
readonly clientId: v.StringSchema<undefined>;
|
|
1670
1670
|
readonly actions: v.ObjectSchema<{
|
|
1671
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1671
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1672
1672
|
}, undefined>;
|
|
1673
1673
|
}, undefined>, v.ObjectSchema<{
|
|
1674
1674
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1675
1675
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1676
1676
|
readonly clientId: v.StringSchema<undefined>;
|
|
1677
1677
|
readonly actions: v.ObjectSchema<{
|
|
1678
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1678
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1679
1679
|
}, undefined>;
|
|
1680
1680
|
}, undefined>], undefined>, undefined>;
|
|
1681
1681
|
type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
|
|
1682
1682
|
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1683
1683
|
readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
|
|
1684
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1684
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1685
1685
|
readonly id: v.StringSchema<undefined>;
|
|
1686
1686
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1687
1687
|
}, undefined>;
|
|
1688
1688
|
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1689
1689
|
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1690
1690
|
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1691
|
-
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1691
|
+
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1692
1692
|
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1693
1693
|
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1694
1694
|
readonly bitcoin: v.ObjectSchema<{
|
|
@@ -1701,7 +1701,7 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1701
1701
|
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1702
1702
|
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1703
1703
|
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1704
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1704
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1705
1705
|
readonly id: v.StringSchema<undefined>;
|
|
1706
1706
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1707
1707
|
}, undefined>;
|
|
@@ -1712,7 +1712,7 @@ declare const changeNetworkParamsSchema: v.ObjectSchema<{
|
|
|
1712
1712
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1713
1713
|
}, undefined>;
|
|
1714
1714
|
type ChangeNetworkParams = v.InferOutput<typeof changeNetworkParamsSchema>;
|
|
1715
|
-
declare const changeNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1715
|
+
declare const changeNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1716
1716
|
type ChangeNetworkResult = v.InferOutput<typeof changeNetworkResultSchema>;
|
|
1717
1717
|
declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1718
1718
|
readonly method: v.LiteralSchema<"wallet_changeNetwork", undefined>;
|
|
@@ -1725,7 +1725,7 @@ declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
|
1725
1725
|
type ChangeNetworkRequestMessage = v.InferOutput<typeof changeNetworkRequestMessageSchema>;
|
|
1726
1726
|
type ChangeNetwork = MethodParamsAndResult<ChangeNetworkParams, ChangeNetworkResult>;
|
|
1727
1727
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1728
|
-
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1728
|
+
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1729
1729
|
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
1730
1730
|
declare const getAccountResultSchema: v.ObjectSchema<{
|
|
1731
1731
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1749,7 +1749,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1749
1749
|
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1750
1750
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
1751
1751
|
readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
|
|
1752
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>,
|
|
1752
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1753
1753
|
readonly id: v.StringSchema<undefined>;
|
|
1754
1754
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1755
1755
|
}, undefined>;
|
|
@@ -1761,19 +1761,19 @@ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
|
1761
1761
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1762
1762
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1763
1763
|
readonly actions: v.ObjectSchema<{
|
|
1764
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1764
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1765
1765
|
}, undefined>;
|
|
1766
1766
|
}, undefined>, v.ObjectSchema<{
|
|
1767
1767
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1768
1768
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1769
1769
|
readonly actions: v.ObjectSchema<{
|
|
1770
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1770
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1771
1771
|
}, undefined>;
|
|
1772
|
-
}, undefined>], undefined>, undefined>,
|
|
1773
|
-
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>,
|
|
1774
|
-
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>,
|
|
1775
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
1776
|
-
}, undefined>,
|
|
1772
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
1773
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
|
|
1774
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
|
|
1775
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
1776
|
+
}, undefined>, undefined>;
|
|
1777
1777
|
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1778
1778
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
1779
1779
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1802,19 +1802,19 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1802
1802
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1803
1803
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1804
1804
|
readonly actions: v.ObjectSchema<{
|
|
1805
|
-
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1805
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1806
1806
|
}, undefined>;
|
|
1807
1807
|
}, undefined>, v.ObjectSchema<{
|
|
1808
1808
|
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1809
1809
|
readonly resourceId: v.StringSchema<undefined>;
|
|
1810
1810
|
readonly actions: v.ObjectSchema<{
|
|
1811
|
-
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
1811
|
+
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1812
1812
|
}, undefined>;
|
|
1813
|
-
}, undefined>], undefined>, undefined>,
|
|
1814
|
-
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>,
|
|
1815
|
-
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>,
|
|
1816
|
-
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>,
|
|
1817
|
-
}, undefined>,
|
|
1813
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
1814
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
|
|
1815
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
|
|
1816
|
+
readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
|
|
1817
|
+
}, undefined>, undefined>;
|
|
1818
1818
|
readonly id: v.StringSchema<undefined>;
|
|
1819
1819
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1820
1820
|
}, undefined>;
|
|
@@ -1826,21 +1826,21 @@ declare const addNetworkParamsSchema: v.VariantSchema<"chain", [v.ObjectSchema<{
|
|
|
1826
1826
|
readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1827
1827
|
readonly name: v.StringSchema<undefined>;
|
|
1828
1828
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1829
|
-
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1829
|
+
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1830
1830
|
readonly indexerUrl: v.StringSchema<undefined>;
|
|
1831
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1831
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1832
1832
|
}, undefined>, v.ObjectSchema<{
|
|
1833
1833
|
readonly chain: v.LiteralSchema<"stacks", undefined>;
|
|
1834
1834
|
readonly name: v.StringSchema<undefined>;
|
|
1835
1835
|
readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1836
1836
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1837
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1837
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1838
1838
|
}, undefined>, v.ObjectSchema<{
|
|
1839
1839
|
readonly chain: v.LiteralSchema<"starknet", undefined>;
|
|
1840
1840
|
readonly name: v.StringSchema<undefined>;
|
|
1841
1841
|
readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
|
|
1842
1842
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1843
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1843
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1844
1844
|
}, undefined>], undefined>;
|
|
1845
1845
|
type AddNetworkParams = v.InferOutput<typeof addNetworkParamsSchema>;
|
|
1846
1846
|
declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1850,27 +1850,27 @@ declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
|
1850
1850
|
readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1851
1851
|
readonly name: v.StringSchema<undefined>;
|
|
1852
1852
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1853
|
-
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1853
|
+
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1854
1854
|
readonly indexerUrl: v.StringSchema<undefined>;
|
|
1855
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1855
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1856
1856
|
}, undefined>, v.ObjectSchema<{
|
|
1857
1857
|
readonly chain: v.LiteralSchema<"stacks", undefined>;
|
|
1858
1858
|
readonly name: v.StringSchema<undefined>;
|
|
1859
1859
|
readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1860
1860
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1861
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1861
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1862
1862
|
}, undefined>, v.ObjectSchema<{
|
|
1863
1863
|
readonly chain: v.LiteralSchema<"starknet", undefined>;
|
|
1864
1864
|
readonly name: v.StringSchema<undefined>;
|
|
1865
1865
|
readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
|
|
1866
1866
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1867
|
-
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>,
|
|
1867
|
+
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1868
1868
|
}, undefined>], undefined>;
|
|
1869
1869
|
readonly id: v.StringSchema<undefined>;
|
|
1870
1870
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1871
1871
|
}, undefined>;
|
|
1872
1872
|
type AddNetworkRequestMessage = v.InferOutput<typeof addNetworkRequestMessageSchema>;
|
|
1873
|
-
declare const addNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>,
|
|
1873
|
+
declare const addNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1874
1874
|
type AddNetworkResult = v.InferOutput<typeof addNetworkResultSchema>;
|
|
1875
1875
|
type AddNetwork = MethodParamsAndResult<AddNetworkParams, AddNetworkResult>;
|
|
1876
1876
|
|