@sats-connect/core 0.4.0-e7d3e8d → 0.4.0-ff58e17
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 +584 -55
- package/dist/index.d.ts +1701 -0
- package/dist/index.js +1946 -0
- package/dist/index.mjs +239 -23
- package/package.json +10 -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$1 {
|
|
46
46
|
address: string;
|
|
47
47
|
amountSats: bigint;
|
|
48
48
|
}
|
|
49
|
-
type SerializedRecipient = Omit<Recipient$
|
|
49
|
+
type SerializedRecipient = Omit<Recipient$1, 'amountSats'> & {
|
|
50
50
|
amountSats: string;
|
|
51
51
|
};
|
|
52
52
|
interface SendBtcTransactionPayload extends RequestPayload {
|
|
53
|
-
recipients: Recipient$
|
|
53
|
+
recipients: Recipient$1[];
|
|
54
54
|
senderAddress: string;
|
|
55
55
|
message?: string;
|
|
56
56
|
}
|
|
@@ -455,61 +455,94 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
|
455
455
|
}, undefined>;
|
|
456
456
|
type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
|
|
457
457
|
type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
* The recipient's address.
|
|
461
|
-
**/
|
|
462
|
-
address: string;
|
|
463
|
-
/**
|
|
464
|
-
* The amount to send to the recipient in satoshis.
|
|
465
|
-
*/
|
|
466
|
-
amount: number;
|
|
467
|
-
};
|
|
468
|
-
type SendTransferParams = {
|
|
458
|
+
declare const sendTransferMethodName = "sendTransfer";
|
|
459
|
+
declare const sendTransferParamsSchema: v.ObjectSchema<{
|
|
469
460
|
/**
|
|
470
461
|
* Array of recipients to send to.
|
|
471
462
|
* The amount to send to each recipient is in satoshis.
|
|
472
463
|
*/
|
|
473
|
-
recipients:
|
|
474
|
-
|
|
475
|
-
|
|
464
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
465
|
+
readonly address: v.StringSchema<undefined>;
|
|
466
|
+
readonly amount: v.NumberSchema<undefined>;
|
|
467
|
+
}, undefined>, undefined>;
|
|
468
|
+
}, undefined>;
|
|
469
|
+
type SendTransferParams = v.InferOutput<typeof sendTransferParamsSchema>;
|
|
470
|
+
declare const sendTransferResultSchema: v.ObjectSchema<{
|
|
476
471
|
/**
|
|
477
472
|
* The transaction id as a hex-encoded string.
|
|
478
473
|
*/
|
|
479
|
-
txid:
|
|
480
|
-
}
|
|
474
|
+
readonly txid: v.StringSchema<undefined>;
|
|
475
|
+
}, undefined>;
|
|
476
|
+
type SendTransferResult = v.InferOutput<typeof sendTransferResultSchema>;
|
|
477
|
+
declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
|
|
478
|
+
readonly method: v.LiteralSchema<"sendTransfer", undefined>;
|
|
479
|
+
readonly params: v.ObjectSchema<{
|
|
480
|
+
/**
|
|
481
|
+
* Array of recipients to send to.
|
|
482
|
+
* The amount to send to each recipient is in satoshis.
|
|
483
|
+
*/
|
|
484
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
485
|
+
readonly address: v.StringSchema<undefined>;
|
|
486
|
+
readonly amount: v.NumberSchema<undefined>;
|
|
487
|
+
}, undefined>, undefined>;
|
|
488
|
+
}, undefined>;
|
|
489
|
+
readonly id: v.StringSchema<undefined>;
|
|
490
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
491
|
+
}, undefined>;
|
|
492
|
+
type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
|
|
481
493
|
type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
|
|
482
|
-
|
|
494
|
+
declare const signPsbtMethodName = "signPsbt";
|
|
495
|
+
declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
483
496
|
/**
|
|
484
497
|
* The base64 encoded PSBT to sign.
|
|
485
498
|
*/
|
|
486
|
-
psbt:
|
|
499
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
487
500
|
/**
|
|
488
501
|
* The inputs to sign.
|
|
489
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
490
503
|
*/
|
|
491
|
-
signInputs:
|
|
492
|
-
|
|
493
|
-
* the sigHash type to use for signing.
|
|
494
|
-
* will default to the sighash type of the input if not provided.
|
|
495
|
-
**/
|
|
496
|
-
allowedSignHash?: number;
|
|
504
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
505
|
+
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
497
506
|
/**
|
|
498
507
|
* Whether to broadcast the transaction after signing.
|
|
499
508
|
**/
|
|
500
|
-
broadcast
|
|
501
|
-
}
|
|
502
|
-
type
|
|
509
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
510
|
+
}, undefined>;
|
|
511
|
+
type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
|
|
512
|
+
declare const signPsbtResultSchema: v.ObjectSchema<{
|
|
503
513
|
/**
|
|
504
514
|
* The base64 encoded PSBT after signing.
|
|
505
515
|
*/
|
|
506
|
-
psbt:
|
|
516
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
507
517
|
/**
|
|
508
518
|
* The transaction id as a hex-encoded string.
|
|
509
519
|
* This is only returned if the transaction was broadcast.
|
|
510
520
|
**/
|
|
511
|
-
txid
|
|
512
|
-
}
|
|
521
|
+
readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
522
|
+
}, undefined>;
|
|
523
|
+
type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
|
|
524
|
+
declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
525
|
+
readonly method: v.LiteralSchema<"signPsbt", undefined>;
|
|
526
|
+
readonly params: v.ObjectSchema<{
|
|
527
|
+
/**
|
|
528
|
+
* The base64 encoded PSBT to sign.
|
|
529
|
+
*/
|
|
530
|
+
readonly psbt: v.StringSchema<undefined>;
|
|
531
|
+
/**
|
|
532
|
+
* The inputs to sign.
|
|
533
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
534
|
+
*/
|
|
535
|
+
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
536
|
+
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
537
|
+
/**
|
|
538
|
+
* Whether to broadcast the transaction after signing.
|
|
539
|
+
**/
|
|
540
|
+
readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
541
|
+
}, undefined>;
|
|
542
|
+
readonly id: v.StringSchema<undefined>;
|
|
543
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
544
|
+
}, undefined>;
|
|
545
|
+
type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
|
|
513
546
|
type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
|
|
514
547
|
declare const getAccountsMethodName = "getAccounts";
|
|
515
548
|
declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
@@ -554,6 +587,7 @@ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageS
|
|
|
554
587
|
type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
|
|
555
588
|
declare const getBalanceMethodName = "getBalance";
|
|
556
589
|
declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
590
|
+
type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
|
|
557
591
|
declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
558
592
|
/**
|
|
559
593
|
* The confirmed balance of the wallet in sats. Using a string due to chrome
|
|
@@ -574,13 +608,15 @@ declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
|
574
608
|
*/
|
|
575
609
|
readonly total: v.StringSchema<undefined>;
|
|
576
610
|
}, undefined>;
|
|
611
|
+
type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
|
|
577
612
|
declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
578
613
|
readonly method: v.LiteralSchema<"getBalance", undefined>;
|
|
579
614
|
readonly id: v.StringSchema<undefined>;
|
|
580
615
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
581
616
|
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
582
617
|
}, undefined>;
|
|
583
|
-
type
|
|
618
|
+
type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
|
|
619
|
+
type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
|
|
584
620
|
|
|
585
621
|
declare const getInscriptionsMethodName = "ord_getInscriptions";
|
|
586
622
|
declare const getInscriptionsParamsSchema: v.ObjectSchema<{
|
|
@@ -905,20 +941,21 @@ interface Domain {
|
|
|
905
941
|
*/
|
|
906
942
|
domain: string;
|
|
907
943
|
}
|
|
908
|
-
|
|
944
|
+
declare const stxCallContractMethodName = "stx_callContract";
|
|
945
|
+
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
909
946
|
/**
|
|
910
|
-
* The contract
|
|
947
|
+
* The contract principal.
|
|
911
948
|
*
|
|
912
949
|
* E.g. `"SPKE...GD5C.my-contract"`
|
|
913
950
|
*/
|
|
914
|
-
contract:
|
|
951
|
+
readonly contract: v.StringSchema<undefined>;
|
|
915
952
|
/**
|
|
916
953
|
* The name of the function to call.
|
|
917
954
|
*
|
|
918
955
|
* Note: spec changes ongoing,
|
|
919
956
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
920
957
|
*/
|
|
921
|
-
functionName:
|
|
958
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
922
959
|
/**
|
|
923
960
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
924
961
|
* strings of Clarity values.
|
|
@@ -933,10 +970,57 @@ interface CallContractParams {
|
|
|
933
970
|
* const hexArgs = functionArgs.map(cvToString);
|
|
934
971
|
* ```
|
|
935
972
|
*/
|
|
936
|
-
arguments
|
|
937
|
-
}
|
|
938
|
-
type
|
|
939
|
-
|
|
973
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
974
|
+
}, undefined>;
|
|
975
|
+
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
976
|
+
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
977
|
+
/**
|
|
978
|
+
* The ID of the transaction.
|
|
979
|
+
*/
|
|
980
|
+
readonly txid: v.StringSchema<undefined>;
|
|
981
|
+
/**
|
|
982
|
+
* A Stacks transaction as a hex-encoded string.
|
|
983
|
+
*/
|
|
984
|
+
readonly transaction: v.StringSchema<undefined>;
|
|
985
|
+
}, undefined>;
|
|
986
|
+
type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
|
|
987
|
+
declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
988
|
+
readonly method: v.LiteralSchema<"stx_callContract", undefined>;
|
|
989
|
+
readonly params: v.ObjectSchema<{
|
|
990
|
+
/**
|
|
991
|
+
* The contract principal.
|
|
992
|
+
*
|
|
993
|
+
* E.g. `"SPKE...GD5C.my-contract"`
|
|
994
|
+
*/
|
|
995
|
+
readonly contract: v.StringSchema<undefined>;
|
|
996
|
+
/**
|
|
997
|
+
* The name of the function to call.
|
|
998
|
+
*
|
|
999
|
+
* Note: spec changes ongoing,
|
|
1000
|
+
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
1001
|
+
*/
|
|
1002
|
+
readonly functionName: v.StringSchema<undefined>;
|
|
1003
|
+
/**
|
|
1004
|
+
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1005
|
+
* strings of Clarity values.
|
|
1006
|
+
*
|
|
1007
|
+
* To convert Clarity values to their hex representation, the `cvToString`
|
|
1008
|
+
* helper from the `@stacks/transactions` package may be helpful.
|
|
1009
|
+
*
|
|
1010
|
+
* ```js
|
|
1011
|
+
* import { cvToString } from '@stacks/transactions';
|
|
1012
|
+
*
|
|
1013
|
+
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
1014
|
+
* const hexArgs = functionArgs.map(cvToString);
|
|
1015
|
+
* ```
|
|
1016
|
+
*/
|
|
1017
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1018
|
+
}, undefined>;
|
|
1019
|
+
readonly id: v.StringSchema<undefined>;
|
|
1020
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1021
|
+
}, undefined>;
|
|
1022
|
+
type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
|
|
1023
|
+
type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
|
|
940
1024
|
type TransferStxParams = Amount & Recipient & Partial<Memo> & Partial<ParameterFormatVersion> & Partial<PostConditionMode> & Partial<PostConditions> & Partial<Pubkey>;
|
|
941
1025
|
type TransferStxResult = TxId & Transaction;
|
|
942
1026
|
type StxTransferStx = MethodParamsAndResult<TransferStxParams, TransferStxResult>;
|
|
@@ -1049,46 +1133,491 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
|
|
|
1049
1133
|
type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
|
|
1050
1134
|
type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
|
|
1051
1135
|
|
|
1136
|
+
/**
|
|
1137
|
+
* Permissions with the clientId field omitted and optional actions. Used for
|
|
1138
|
+
* permission requests, since the wallet performs authentication based on the
|
|
1139
|
+
* client's tab origin and should not rely on the client authenticating
|
|
1140
|
+
* themselves.
|
|
1141
|
+
*/
|
|
1142
|
+
declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1143
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1144
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1145
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1146
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1147
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1148
|
+
readonly entries: {
|
|
1149
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1150
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1151
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1152
|
+
};
|
|
1153
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1154
|
+
read?: boolean | undefined;
|
|
1155
|
+
autoSign?: boolean | undefined;
|
|
1156
|
+
rename?: boolean | undefined;
|
|
1157
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1158
|
+
readonly _types?: {
|
|
1159
|
+
readonly input: {
|
|
1160
|
+
read?: boolean | undefined;
|
|
1161
|
+
autoSign?: boolean | undefined;
|
|
1162
|
+
rename?: boolean | undefined;
|
|
1163
|
+
};
|
|
1164
|
+
readonly output: {
|
|
1165
|
+
read?: boolean | undefined;
|
|
1166
|
+
autoSign?: boolean | undefined;
|
|
1167
|
+
rename?: boolean | undefined;
|
|
1168
|
+
};
|
|
1169
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1170
|
+
} | undefined;
|
|
1171
|
+
};
|
|
1172
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1173
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1174
|
+
}, undefined>, v.ObjectSchema<{
|
|
1175
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1176
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1177
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1178
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1179
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1180
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1181
|
+
readonly entries: {
|
|
1182
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1183
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1184
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1185
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1186
|
+
};
|
|
1187
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1188
|
+
addPrivateKey?: boolean | undefined;
|
|
1189
|
+
openPopup?: boolean | undefined;
|
|
1190
|
+
openFullPage?: boolean | undefined;
|
|
1191
|
+
readAllAccounts?: boolean | undefined;
|
|
1192
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1193
|
+
readonly _types?: {
|
|
1194
|
+
readonly input: {
|
|
1195
|
+
addPrivateKey?: boolean | undefined;
|
|
1196
|
+
openPopup?: boolean | undefined;
|
|
1197
|
+
openFullPage?: boolean | undefined;
|
|
1198
|
+
readAllAccounts?: boolean | undefined;
|
|
1199
|
+
};
|
|
1200
|
+
readonly output: {
|
|
1201
|
+
addPrivateKey?: boolean | undefined;
|
|
1202
|
+
openPopup?: boolean | undefined;
|
|
1203
|
+
openFullPage?: boolean | undefined;
|
|
1204
|
+
readAllAccounts?: boolean | undefined;
|
|
1205
|
+
};
|
|
1206
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1210
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1211
|
+
}, undefined>], undefined>;
|
|
1212
|
+
type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
|
|
1052
1213
|
declare const requestPermissionsMethodName = "wallet_requestPermissions";
|
|
1053
|
-
declare const requestPermissionsParamsSchema: v.
|
|
1214
|
+
declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1215
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1216
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1217
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1218
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1219
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1220
|
+
readonly entries: {
|
|
1221
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1222
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1223
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1224
|
+
};
|
|
1225
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1226
|
+
read?: boolean | undefined;
|
|
1227
|
+
autoSign?: boolean | undefined;
|
|
1228
|
+
rename?: boolean | undefined;
|
|
1229
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1230
|
+
readonly _types?: {
|
|
1231
|
+
readonly input: {
|
|
1232
|
+
read?: boolean | undefined;
|
|
1233
|
+
autoSign?: boolean | undefined;
|
|
1234
|
+
rename?: boolean | undefined;
|
|
1235
|
+
};
|
|
1236
|
+
readonly output: {
|
|
1237
|
+
read?: boolean | undefined;
|
|
1238
|
+
autoSign?: boolean | undefined;
|
|
1239
|
+
rename?: boolean | undefined;
|
|
1240
|
+
};
|
|
1241
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1242
|
+
} | undefined;
|
|
1243
|
+
};
|
|
1244
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1245
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1246
|
+
}, undefined>, v.ObjectSchema<{
|
|
1247
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1248
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1249
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1250
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1251
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1252
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1253
|
+
readonly entries: {
|
|
1254
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1255
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1256
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1257
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1258
|
+
};
|
|
1259
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1260
|
+
addPrivateKey?: boolean | undefined;
|
|
1261
|
+
openPopup?: boolean | undefined;
|
|
1262
|
+
openFullPage?: boolean | undefined;
|
|
1263
|
+
readAllAccounts?: boolean | undefined;
|
|
1264
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1265
|
+
readonly _types?: {
|
|
1266
|
+
readonly input: {
|
|
1267
|
+
addPrivateKey?: boolean | undefined;
|
|
1268
|
+
openPopup?: boolean | undefined;
|
|
1269
|
+
openFullPage?: boolean | undefined;
|
|
1270
|
+
readAllAccounts?: boolean | undefined;
|
|
1271
|
+
};
|
|
1272
|
+
readonly output: {
|
|
1273
|
+
addPrivateKey?: boolean | undefined;
|
|
1274
|
+
openPopup?: boolean | undefined;
|
|
1275
|
+
openFullPage?: boolean | undefined;
|
|
1276
|
+
readAllAccounts?: boolean | undefined;
|
|
1277
|
+
};
|
|
1278
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1279
|
+
} | undefined;
|
|
1280
|
+
};
|
|
1281
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1282
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1283
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1284
|
+
type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
|
|
1054
1285
|
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
1286
|
+
type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
|
|
1055
1287
|
declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1056
1288
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
1057
|
-
readonly params: v.
|
|
1289
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1290
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1291
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1292
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1293
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1294
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1295
|
+
readonly entries: {
|
|
1296
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1297
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1298
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1299
|
+
};
|
|
1300
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1301
|
+
read?: boolean | undefined;
|
|
1302
|
+
autoSign?: boolean | undefined;
|
|
1303
|
+
rename?: boolean | undefined;
|
|
1304
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1305
|
+
readonly _types?: {
|
|
1306
|
+
readonly input: {
|
|
1307
|
+
read?: boolean | undefined;
|
|
1308
|
+
autoSign?: boolean | undefined;
|
|
1309
|
+
rename?: boolean | undefined;
|
|
1310
|
+
};
|
|
1311
|
+
readonly output: {
|
|
1312
|
+
read?: boolean | undefined;
|
|
1313
|
+
autoSign?: boolean | undefined;
|
|
1314
|
+
rename?: boolean | undefined;
|
|
1315
|
+
};
|
|
1316
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
};
|
|
1319
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1320
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1321
|
+
}, undefined>, v.ObjectSchema<{
|
|
1322
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1323
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1324
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1325
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1326
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1327
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1328
|
+
readonly entries: {
|
|
1329
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1330
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1331
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1332
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1333
|
+
};
|
|
1334
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1335
|
+
addPrivateKey?: boolean | undefined;
|
|
1336
|
+
openPopup?: boolean | undefined;
|
|
1337
|
+
openFullPage?: boolean | undefined;
|
|
1338
|
+
readAllAccounts?: boolean | undefined;
|
|
1339
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1340
|
+
readonly _types?: {
|
|
1341
|
+
readonly input: {
|
|
1342
|
+
addPrivateKey?: boolean | undefined;
|
|
1343
|
+
openPopup?: boolean | undefined;
|
|
1344
|
+
openFullPage?: boolean | undefined;
|
|
1345
|
+
readAllAccounts?: boolean | undefined;
|
|
1346
|
+
};
|
|
1347
|
+
readonly output: {
|
|
1348
|
+
addPrivateKey?: boolean | undefined;
|
|
1349
|
+
openPopup?: boolean | undefined;
|
|
1350
|
+
openFullPage?: boolean | undefined;
|
|
1351
|
+
readAllAccounts?: boolean | undefined;
|
|
1352
|
+
};
|
|
1353
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1354
|
+
} | undefined;
|
|
1355
|
+
};
|
|
1356
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1357
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1358
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1058
1359
|
readonly id: v.StringSchema<undefined>;
|
|
1059
1360
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1060
1361
|
}, undefined>;
|
|
1061
|
-
type
|
|
1362
|
+
type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
|
|
1363
|
+
type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
|
|
1062
1364
|
declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
1063
|
-
declare const renouncePermissionsParamsSchema: v.
|
|
1064
|
-
|
|
1365
|
+
declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1366
|
+
type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
|
|
1367
|
+
declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1368
|
+
type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
|
|
1065
1369
|
declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1066
1370
|
readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
|
|
1067
|
-
readonly params: v.
|
|
1371
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1372
|
+
readonly id: v.StringSchema<undefined>;
|
|
1373
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1374
|
+
}, undefined>;
|
|
1375
|
+
type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
|
|
1376
|
+
type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
|
|
1377
|
+
declare const disconnectMethodName = "wallet_disconnect";
|
|
1378
|
+
declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1379
|
+
type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
|
|
1380
|
+
declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1381
|
+
type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
|
|
1382
|
+
declare const disconnectRequestMessageSchema: v.ObjectSchema<{
|
|
1383
|
+
readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
|
|
1384
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1068
1385
|
readonly id: v.StringSchema<undefined>;
|
|
1069
1386
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1070
1387
|
}, undefined>;
|
|
1071
|
-
type
|
|
1388
|
+
type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
|
|
1389
|
+
type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
1072
1390
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1073
1391
|
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1392
|
+
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1074
1393
|
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1394
|
+
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1075
1395
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1076
1396
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
1397
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1077
1398
|
readonly id: v.StringSchema<undefined>;
|
|
1078
1399
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1079
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
1080
1400
|
}, undefined>;
|
|
1081
|
-
type
|
|
1401
|
+
type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
|
|
1402
|
+
type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
|
|
1082
1403
|
declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
1083
1404
|
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1084
|
-
|
|
1405
|
+
type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
|
|
1406
|
+
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1407
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1408
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1409
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1410
|
+
readonly actions: v.ObjectSchema<{
|
|
1411
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1412
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1413
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1414
|
+
}, undefined>;
|
|
1415
|
+
}, undefined>, v.ObjectSchema<{
|
|
1416
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1417
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1418
|
+
readonly clientId: v.StringSchema<undefined>;
|
|
1419
|
+
readonly actions: v.ObjectSchema<{
|
|
1420
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1421
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1422
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1423
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1424
|
+
}, undefined>;
|
|
1425
|
+
}, undefined>], undefined>, undefined>;
|
|
1426
|
+
type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
|
|
1085
1427
|
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1086
1428
|
readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
|
|
1429
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1430
|
+
readonly id: v.StringSchema<undefined>;
|
|
1431
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1432
|
+
}, undefined>;
|
|
1433
|
+
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1434
|
+
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1435
|
+
declare const getAccountMethodName = "wallet_getAccount";
|
|
1436
|
+
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1437
|
+
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
1438
|
+
declare const getAccountResultSchema: v.ObjectSchema<{
|
|
1439
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1440
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1441
|
+
readonly address: v.StringSchema<undefined>;
|
|
1442
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1443
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1444
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1445
|
+
}, undefined>, undefined>;
|
|
1446
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1447
|
+
}, undefined>;
|
|
1448
|
+
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1449
|
+
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
1450
|
+
readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
|
|
1451
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1452
|
+
readonly id: v.StringSchema<undefined>;
|
|
1453
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1454
|
+
}, undefined>;
|
|
1455
|
+
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1456
|
+
type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
1457
|
+
declare const connectMethodName = "wallet_connect";
|
|
1458
|
+
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1459
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1460
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1461
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1462
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1463
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1464
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1465
|
+
readonly entries: {
|
|
1466
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1467
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1468
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1469
|
+
};
|
|
1470
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1471
|
+
read?: boolean | undefined;
|
|
1472
|
+
autoSign?: boolean | undefined;
|
|
1473
|
+
rename?: boolean | undefined;
|
|
1474
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1475
|
+
readonly _types?: {
|
|
1476
|
+
readonly input: {
|
|
1477
|
+
read?: boolean | undefined;
|
|
1478
|
+
autoSign?: boolean | undefined;
|
|
1479
|
+
rename?: boolean | undefined;
|
|
1480
|
+
};
|
|
1481
|
+
readonly output: {
|
|
1482
|
+
read?: boolean | undefined;
|
|
1483
|
+
autoSign?: boolean | undefined;
|
|
1484
|
+
rename?: boolean | undefined;
|
|
1485
|
+
};
|
|
1486
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1487
|
+
} | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1490
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1491
|
+
}, undefined>, v.ObjectSchema<{
|
|
1492
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1493
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1494
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1495
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1496
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1497
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1498
|
+
readonly entries: {
|
|
1499
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1500
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1501
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1502
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1503
|
+
};
|
|
1504
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1505
|
+
addPrivateKey?: boolean | undefined;
|
|
1506
|
+
openPopup?: boolean | undefined;
|
|
1507
|
+
openFullPage?: boolean | undefined;
|
|
1508
|
+
readAllAccounts?: boolean | undefined;
|
|
1509
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1510
|
+
readonly _types?: {
|
|
1511
|
+
readonly input: {
|
|
1512
|
+
addPrivateKey?: boolean | undefined;
|
|
1513
|
+
openPopup?: boolean | undefined;
|
|
1514
|
+
openFullPage?: boolean | undefined;
|
|
1515
|
+
readAllAccounts?: boolean | undefined;
|
|
1516
|
+
};
|
|
1517
|
+
readonly output: {
|
|
1518
|
+
addPrivateKey?: boolean | undefined;
|
|
1519
|
+
openPopup?: boolean | undefined;
|
|
1520
|
+
openFullPage?: boolean | undefined;
|
|
1521
|
+
readAllAccounts?: boolean | undefined;
|
|
1522
|
+
};
|
|
1523
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
};
|
|
1526
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1527
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1528
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1529
|
+
}, undefined>, never>;
|
|
1530
|
+
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1531
|
+
declare const connectResultSchema: v.ObjectSchema<{
|
|
1532
|
+
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
|
|
1533
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1534
|
+
readonly address: v.StringSchema<undefined>;
|
|
1535
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1536
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1537
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1538
|
+
}, undefined>, undefined>;
|
|
1539
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1540
|
+
}, undefined>;
|
|
1541
|
+
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1542
|
+
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
1543
|
+
readonly method: v.LiteralSchema<"wallet_connect", undefined>;
|
|
1544
|
+
readonly params: v.NullishSchema<v.ObjectSchema<{
|
|
1545
|
+
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1546
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1547
|
+
readonly read: v.BooleanSchema<undefined>;
|
|
1548
|
+
readonly autoSign: v.BooleanSchema<undefined>;
|
|
1549
|
+
readonly rename: v.BooleanSchema<undefined>;
|
|
1550
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1551
|
+
readonly entries: {
|
|
1552
|
+
readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1553
|
+
readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1554
|
+
readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1555
|
+
};
|
|
1556
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1557
|
+
read?: boolean | undefined;
|
|
1558
|
+
autoSign?: boolean | undefined;
|
|
1559
|
+
rename?: boolean | undefined;
|
|
1560
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1561
|
+
readonly _types?: {
|
|
1562
|
+
readonly input: {
|
|
1563
|
+
read?: boolean | undefined;
|
|
1564
|
+
autoSign?: boolean | undefined;
|
|
1565
|
+
rename?: boolean | undefined;
|
|
1566
|
+
};
|
|
1567
|
+
readonly output: {
|
|
1568
|
+
read?: boolean | undefined;
|
|
1569
|
+
autoSign?: boolean | undefined;
|
|
1570
|
+
rename?: boolean | undefined;
|
|
1571
|
+
};
|
|
1572
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1573
|
+
} | undefined;
|
|
1574
|
+
};
|
|
1575
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1576
|
+
readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
|
|
1577
|
+
}, undefined>, v.ObjectSchema<{
|
|
1578
|
+
readonly actions: Omit<v.ObjectSchema<{
|
|
1579
|
+
readonly addPrivateKey: v.BooleanSchema<undefined>;
|
|
1580
|
+
readonly openPopup: v.BooleanSchema<undefined>;
|
|
1581
|
+
readonly openFullPage: v.BooleanSchema<undefined>;
|
|
1582
|
+
readonly readAllAccounts: v.BooleanSchema<undefined>;
|
|
1583
|
+
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
1584
|
+
readonly entries: {
|
|
1585
|
+
readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1586
|
+
readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1587
|
+
readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1588
|
+
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1589
|
+
};
|
|
1590
|
+
readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
|
|
1591
|
+
addPrivateKey?: boolean | undefined;
|
|
1592
|
+
openPopup?: boolean | undefined;
|
|
1593
|
+
openFullPage?: boolean | undefined;
|
|
1594
|
+
readAllAccounts?: boolean | undefined;
|
|
1595
|
+
}, v.ObjectIssue | v.BooleanIssue>;
|
|
1596
|
+
readonly _types?: {
|
|
1597
|
+
readonly input: {
|
|
1598
|
+
addPrivateKey?: boolean | undefined;
|
|
1599
|
+
openPopup?: boolean | undefined;
|
|
1600
|
+
openFullPage?: boolean | undefined;
|
|
1601
|
+
readAllAccounts?: boolean | undefined;
|
|
1602
|
+
};
|
|
1603
|
+
readonly output: {
|
|
1604
|
+
addPrivateKey?: boolean | undefined;
|
|
1605
|
+
openPopup?: boolean | undefined;
|
|
1606
|
+
openFullPage?: boolean | undefined;
|
|
1607
|
+
readAllAccounts?: boolean | undefined;
|
|
1608
|
+
};
|
|
1609
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue;
|
|
1610
|
+
} | undefined;
|
|
1611
|
+
};
|
|
1612
|
+
readonly type: v.LiteralSchema<"wallet", undefined>;
|
|
1613
|
+
readonly resourceId: v.LiteralSchema<"wallet", undefined>;
|
|
1614
|
+
}, undefined>], undefined>, undefined>, never>;
|
|
1615
|
+
}, undefined>, never>;
|
|
1087
1616
|
readonly id: v.StringSchema<undefined>;
|
|
1088
1617
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1089
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
1090
1618
|
}, undefined>;
|
|
1091
|
-
type
|
|
1619
|
+
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1620
|
+
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1092
1621
|
|
|
1093
1622
|
declare const walletTypes: readonly ["software", "ledger"];
|
|
1094
1623
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
@@ -1169,4 +1698,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1169
1698
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1170
1699
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1171
1700
|
|
|
1172
|
-
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type
|
|
1701
|
+
export { type AccountChangeEvent, type AddListener, type Address$1 as 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 DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, 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 GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as 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 RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, 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, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|