@secretkeylabs/stacks-tools 0.4.0 → 0.5.0-94148cb
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.cjs +391 -194
- package/dist/index.d.cts +202 -127
- package/dist/index.d.ts +202 -127
- package/dist/index.js +389 -194
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,13 @@ type ApiRequestOptions = {
|
|
|
23
23
|
baseUrl: string;
|
|
24
24
|
apiKeyConfig?: ApiKeyConfig;
|
|
25
25
|
};
|
|
26
|
+
type ProofAndTip = {
|
|
27
|
+
/**
|
|
28
|
+
* Returns object without the proof field when set to 0.
|
|
29
|
+
*/
|
|
30
|
+
proof?: number;
|
|
31
|
+
tip?: "latest" | string;
|
|
32
|
+
};
|
|
26
33
|
type ApiPaginationOptions = {
|
|
27
34
|
/**
|
|
28
35
|
* The number of items to return. Each endpoint has its own maximum allowed
|
|
@@ -373,17 +380,17 @@ declare namespace schemas {
|
|
|
373
380
|
export { type schemas_ContractCallTransaction as ContractCallTransaction, type schemas_SmartContractTransaction as SmartContractTransaction, type schemas_Transaction as Transaction, schemas_baseTransactionSchema as baseTransactionSchema, schemas_contractCallTransactionSchema as contractCallTransactionSchema, schemas_smartContractTransactionSchema as smartContractTransactionSchema, schemas_tokenTransferSchema as tokenTransferSchema, schemas_transactionSchema as transactionSchema };
|
|
374
381
|
}
|
|
375
382
|
|
|
376
|
-
type Args$
|
|
383
|
+
type Args$f = {
|
|
377
384
|
transactionId: string;
|
|
378
385
|
} & ApiRequestOptions;
|
|
379
|
-
declare function getTransaction(args: Args$
|
|
386
|
+
declare function getTransaction(args: Args$f): Promise<Result$1<Transaction>>;
|
|
380
387
|
|
|
381
388
|
declare const getTransaction$1_getTransaction: typeof getTransaction;
|
|
382
389
|
declare namespace getTransaction$1 {
|
|
383
390
|
export { getTransaction$1_getTransaction as getTransaction };
|
|
384
391
|
}
|
|
385
392
|
|
|
386
|
-
type Args$
|
|
393
|
+
type Args$e = {
|
|
387
394
|
address: string;
|
|
388
395
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
389
396
|
declare const resultSchema: v.ObjectSchema<{
|
|
@@ -865,7 +872,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
865
872
|
readonly total: v.NumberSchema<undefined>;
|
|
866
873
|
}, undefined>;
|
|
867
874
|
type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
|
|
868
|
-
declare function addressTransactions(args: Args$
|
|
875
|
+
declare function addressTransactions(args: Args$e): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
869
876
|
|
|
870
877
|
type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
|
|
871
878
|
type addressTransactions$1_Result = Result;
|
|
@@ -874,13 +881,13 @@ declare namespace addressTransactions$1 {
|
|
|
874
881
|
export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
|
|
875
882
|
}
|
|
876
883
|
|
|
877
|
-
type
|
|
884
|
+
type Args$d = {
|
|
878
885
|
poolPrincipal: string;
|
|
879
886
|
afterBlock?: number;
|
|
880
887
|
unanchored?: boolean;
|
|
881
888
|
limit?: number;
|
|
882
889
|
offset?: number;
|
|
883
|
-
};
|
|
890
|
+
} & ApiRequestOptions & ApiPaginationOptions;
|
|
884
891
|
declare const memberSchema: v.ObjectSchema<{
|
|
885
892
|
readonly stacker: v.StringSchema<undefined>;
|
|
886
893
|
readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
@@ -904,7 +911,7 @@ declare const membersResponseSchema: v.ObjectSchema<{
|
|
|
904
911
|
}, undefined>, undefined>;
|
|
905
912
|
}, undefined>;
|
|
906
913
|
type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
|
|
907
|
-
declare function members(
|
|
914
|
+
declare function members(args: Args$d): Promise<Result$1<MembersResponse>>;
|
|
908
915
|
|
|
909
916
|
type members$1_Member = Member;
|
|
910
917
|
type members$1_MembersResponse = MembersResponse;
|
|
@@ -912,37 +919,10 @@ declare const members$1_memberSchema: typeof memberSchema;
|
|
|
912
919
|
declare const members$1_members: typeof members;
|
|
913
920
|
declare const members$1_membersResponseSchema: typeof membersResponseSchema;
|
|
914
921
|
declare namespace members$1 {
|
|
915
|
-
export { type
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
type Args$9 = {
|
|
919
|
-
sender: string;
|
|
920
|
-
arguments: string[];
|
|
921
|
-
contractAddress: string;
|
|
922
|
-
contractName: string;
|
|
923
|
-
functionName: string;
|
|
924
|
-
} & ApiRequestOptions;
|
|
925
|
-
declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
|
|
926
|
-
readonly okay: v.LiteralSchema<true, undefined>;
|
|
927
|
-
/**
|
|
928
|
-
* A Clarity value as a hex-encoded string.
|
|
929
|
-
*/
|
|
930
|
-
readonly result: v.StringSchema<undefined>;
|
|
931
|
-
}, undefined>, v.ObjectSchema<{
|
|
932
|
-
readonly okay: v.LiteralSchema<false, undefined>;
|
|
933
|
-
readonly cause: v.UnknownSchema;
|
|
934
|
-
}, undefined>], undefined>;
|
|
935
|
-
type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
|
|
936
|
-
declare function readOnly(args: Args$9): Promise<Result$1<ReadOnlyResponse>>;
|
|
937
|
-
|
|
938
|
-
type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
|
|
939
|
-
declare const readOnly$1_readOnly: typeof readOnly;
|
|
940
|
-
declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
|
|
941
|
-
declare namespace readOnly$1 {
|
|
942
|
-
export { type Args$9 as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
|
|
922
|
+
export { type Args$d as Args, type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
|
|
943
923
|
}
|
|
944
924
|
|
|
945
|
-
type Args$
|
|
925
|
+
type Args$c = {
|
|
946
926
|
cycleNumber: number;
|
|
947
927
|
signerPublicKey: string;
|
|
948
928
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
@@ -972,7 +952,7 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
972
952
|
readonly total: v.NumberSchema<undefined>;
|
|
973
953
|
}, undefined>;
|
|
974
954
|
type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
|
|
975
|
-
declare function stackersForSignerInCycle(opts: Args$
|
|
955
|
+
declare function stackersForSignerInCycle(opts: Args$c): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
976
956
|
|
|
977
957
|
type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
|
|
978
958
|
type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
|
|
@@ -980,10 +960,10 @@ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSc
|
|
|
980
960
|
declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
981
961
|
declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
|
|
982
962
|
declare namespace stackersForSignerInCycle$1 {
|
|
983
|
-
export { type Args$
|
|
963
|
+
export { type Args$c as Args, type Results$2 as Results, type stackersForSignerInCycle$1_StackerInfo as StackerInfo, type stackersForSignerInCycle$1_StackersForSignerInCycleResponse as StackersForSignerInCycleResponse, resultsSchema$2 as resultsSchema, stackersForSignerInCycle$1_stackerInfoSchema as stackerInfoSchema, stackersForSignerInCycle$1_stackersForSignerInCycle as stackersForSignerInCycle, stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema as stackersForSignerInCycleResponseSchema };
|
|
984
964
|
}
|
|
985
965
|
|
|
986
|
-
type Args$
|
|
966
|
+
type Args$b = {
|
|
987
967
|
cycleNumber: number;
|
|
988
968
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
989
969
|
declare const signerSchema: v.ObjectSchema<{
|
|
@@ -1024,7 +1004,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
|
|
|
1024
1004
|
readonly total: v.NumberSchema<undefined>;
|
|
1025
1005
|
}, undefined>;
|
|
1026
1006
|
type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
|
|
1027
|
-
declare function signersInCycle(args: Args$
|
|
1007
|
+
declare function signersInCycle(args: Args$b): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1028
1008
|
|
|
1029
1009
|
type signersInCycle$1_Signer = Signer;
|
|
1030
1010
|
type signersInCycle$1_SignersResponse = SignersResponse;
|
|
@@ -1032,10 +1012,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
|
|
|
1032
1012
|
declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
|
|
1033
1013
|
declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
|
|
1034
1014
|
declare namespace signersInCycle$1 {
|
|
1035
|
-
export { type Args$
|
|
1015
|
+
export { type Args$b as Args, type Results$1 as Results, type signersInCycle$1_Signer as Signer, type signersInCycle$1_SignersResponse as SignersResponse, resultsSchema$1 as resultsSchema, signersInCycle$1_signerSchema as signerSchema, signersInCycle$1_signersInCycle as signersInCycle, signersInCycle$1_signersResponseSchema as signersResponseSchema };
|
|
1036
1016
|
}
|
|
1037
1017
|
|
|
1038
|
-
type Args$
|
|
1018
|
+
type Args$a = {
|
|
1039
1019
|
/**
|
|
1040
1020
|
* The signers public key as a hex string, with or without a '0x' prefix.
|
|
1041
1021
|
*/
|
|
@@ -1053,16 +1033,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
1053
1033
|
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
1054
1034
|
}, undefined>;
|
|
1055
1035
|
type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
|
|
1056
|
-
declare function signerInCycle(args: Args$
|
|
1036
|
+
declare function signerInCycle(args: Args$a): Promise<Result$1<SignerInCycleResponse>>;
|
|
1057
1037
|
|
|
1058
1038
|
type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
|
|
1059
1039
|
declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
|
|
1060
1040
|
declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
|
|
1061
1041
|
declare namespace signerInCycle$1 {
|
|
1062
|
-
export { type Args$
|
|
1042
|
+
export { type Args$a as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
|
|
1063
1043
|
}
|
|
1064
1044
|
|
|
1065
|
-
type Args$
|
|
1045
|
+
type Args$9 = ApiRequestOptions & ApiPaginationOptions;
|
|
1066
1046
|
declare const cycleInfoSchema: v.ObjectSchema<{
|
|
1067
1047
|
readonly block_height: v.NumberSchema<undefined>;
|
|
1068
1048
|
readonly index_block_hash: v.StringSchema<undefined>;
|
|
@@ -1095,7 +1075,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
|
1095
1075
|
readonly total: v.NumberSchema<undefined>;
|
|
1096
1076
|
}, undefined>;
|
|
1097
1077
|
type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
|
|
1098
|
-
declare function cycles(args: Args$
|
|
1078
|
+
declare function cycles(args: Args$9): Promise<Result$1<CyclesResponse>>;
|
|
1099
1079
|
|
|
1100
1080
|
type cycles$1_CycleInfo = CycleInfo;
|
|
1101
1081
|
type cycles$1_CyclesResponse = CyclesResponse;
|
|
@@ -1105,10 +1085,10 @@ declare const cycles$1_cycles: typeof cycles;
|
|
|
1105
1085
|
declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
|
|
1106
1086
|
declare const cycles$1_resultsSchema: typeof resultsSchema;
|
|
1107
1087
|
declare namespace cycles$1 {
|
|
1108
|
-
export { type Args$
|
|
1088
|
+
export { type Args$9 as Args, type cycles$1_CycleInfo as CycleInfo, type cycles$1_CyclesResponse as CyclesResponse, type cycles$1_Results as Results, cycles$1_cycleInfoSchema as cycleInfoSchema, cycles$1_cycles as cycles, cycles$1_cyclesResponseSchema as cyclesResponseSchema, cycles$1_resultsSchema as resultsSchema };
|
|
1109
1089
|
}
|
|
1110
1090
|
|
|
1111
|
-
type Args$
|
|
1091
|
+
type Args$8 = {
|
|
1112
1092
|
cycleNumber: number;
|
|
1113
1093
|
} & ApiRequestOptions;
|
|
1114
1094
|
declare const responseSchema$3: v.ObjectSchema<{
|
|
@@ -1120,14 +1100,14 @@ declare const responseSchema$3: v.ObjectSchema<{
|
|
|
1120
1100
|
readonly total_signers: v.NumberSchema<undefined>;
|
|
1121
1101
|
}, undefined>;
|
|
1122
1102
|
type Response$3 = v.InferOutput<typeof responseSchema$3>;
|
|
1123
|
-
declare function cycle(opts: Args$
|
|
1103
|
+
declare function cycle(opts: Args$8): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1124
1104
|
|
|
1125
1105
|
declare const cycle$1_cycle: typeof cycle;
|
|
1126
1106
|
declare namespace cycle$1 {
|
|
1127
|
-
export { type Args$
|
|
1107
|
+
export { type Args$8 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
|
|
1128
1108
|
}
|
|
1129
1109
|
|
|
1130
|
-
type Args$
|
|
1110
|
+
type Args$7 = ApiRequestOptions;
|
|
1131
1111
|
declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
1132
1112
|
readonly contract_id: v.StringSchema<undefined>;
|
|
1133
1113
|
readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
|
|
@@ -1181,7 +1161,7 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
|
1181
1161
|
}, undefined>, undefined>;
|
|
1182
1162
|
}, undefined>;
|
|
1183
1163
|
type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
|
|
1184
|
-
declare function poxDetails(args: Args$
|
|
1164
|
+
declare function poxDetails(args: Args$7): Promise<Result$1<PoxDetailsResponse>>;
|
|
1185
1165
|
|
|
1186
1166
|
declare const poxDetails$1_poxDetails: typeof poxDetails;
|
|
1187
1167
|
declare namespace poxDetails$1 {
|
|
@@ -1213,7 +1193,18 @@ declare namespace coreApi$1 {
|
|
|
1213
1193
|
export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
|
|
1214
1194
|
}
|
|
1215
1195
|
|
|
1216
|
-
type Args$
|
|
1196
|
+
type Args$6 = {
|
|
1197
|
+
address: string;
|
|
1198
|
+
stacking?: boolean;
|
|
1199
|
+
} & ApiRequestOptions;
|
|
1200
|
+
declare function stx(opts: Args$6): Promise<Result$1<any>>;
|
|
1201
|
+
|
|
1202
|
+
declare const stx$1_stx: typeof stx;
|
|
1203
|
+
declare namespace stx$1 {
|
|
1204
|
+
export { type Args$6 as Args, stx$1_stx as stx };
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
type Args$5 = {
|
|
1217
1208
|
heightOrHash: string | number;
|
|
1218
1209
|
} & ApiRequestOptions;
|
|
1219
1210
|
declare const responseSchema$2: v.ObjectSchema<{
|
|
@@ -1238,14 +1229,14 @@ declare const responseSchema$2: v.ObjectSchema<{
|
|
|
1238
1229
|
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
1239
1230
|
}, undefined>;
|
|
1240
1231
|
type Response$2 = v.InferOutput<typeof responseSchema$2>;
|
|
1241
|
-
declare function getBlock(opts: Args$
|
|
1232
|
+
declare function getBlock(opts: Args$5): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1242
1233
|
|
|
1243
1234
|
declare const getBlock$1_getBlock: typeof getBlock;
|
|
1244
1235
|
declare namespace getBlock$1 {
|
|
1245
|
-
export { type Args$
|
|
1236
|
+
export { type Args$5 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
|
|
1246
1237
|
}
|
|
1247
1238
|
|
|
1248
|
-
type Args$
|
|
1239
|
+
type Args$4 = {
|
|
1249
1240
|
principal: string;
|
|
1250
1241
|
} & ApiRequestOptions;
|
|
1251
1242
|
declare const responseSchema$1: v.ObjectSchema<{
|
|
@@ -1256,14 +1247,14 @@ declare const responseSchema$1: v.ObjectSchema<{
|
|
|
1256
1247
|
readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1257
1248
|
}, undefined>;
|
|
1258
1249
|
type Response$1 = v.InferOutput<typeof responseSchema$1>;
|
|
1259
|
-
declare function latestNonce(opts: Args$
|
|
1250
|
+
declare function latestNonce(opts: Args$4): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1260
1251
|
|
|
1261
1252
|
declare const latestNonce$1_latestNonce: typeof latestNonce;
|
|
1262
1253
|
declare namespace latestNonce$1 {
|
|
1263
|
-
export { type Args$
|
|
1254
|
+
export { type Args$4 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
|
|
1264
1255
|
}
|
|
1265
1256
|
|
|
1266
|
-
type Args = {
|
|
1257
|
+
type Args$3 = {
|
|
1267
1258
|
principal: string;
|
|
1268
1259
|
unanchored?: boolean;
|
|
1269
1260
|
untilBlock?: number;
|
|
@@ -1293,56 +1284,13 @@ declare const responseSchema: v.ObjectSchema<{
|
|
|
1293
1284
|
}, undefined>, undefined>;
|
|
1294
1285
|
}, undefined>;
|
|
1295
1286
|
type Response = v.InferOutput<typeof responseSchema>;
|
|
1296
|
-
declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1287
|
+
declare function balances(opts: Args$3): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1297
1288
|
|
|
1298
|
-
type balances$1_Args = Args;
|
|
1299
1289
|
type balances$1_Response = Response;
|
|
1300
1290
|
declare const balances$1_balances: typeof balances;
|
|
1301
1291
|
declare const balances$1_responseSchema: typeof responseSchema;
|
|
1302
1292
|
declare namespace balances$1 {
|
|
1303
|
-
export { type
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
declare const index$7_balances: typeof balances;
|
|
1307
|
-
declare const index$7_latestNonce: typeof latestNonce;
|
|
1308
|
-
declare namespace index$7 {
|
|
1309
|
-
export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$7_balances as balances, index$7_latestNonce as latestNonce };
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
declare const index$6_getBlock: typeof getBlock;
|
|
1313
|
-
declare namespace index$6 {
|
|
1314
|
-
export { getBlock$1 as GetBlock, index$6_getBlock as getBlock };
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
declare const index$5_coreApi: typeof coreApi;
|
|
1318
|
-
declare const index$5_poxDetails: typeof poxDetails;
|
|
1319
|
-
declare namespace index$5 {
|
|
1320
|
-
export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$5_coreApi as coreApi, index$5_poxDetails as poxDetails };
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
declare const index$4_cycle: typeof cycle;
|
|
1324
|
-
declare const index$4_cycles: typeof cycles;
|
|
1325
|
-
declare const index$4_signerInCycle: typeof signerInCycle;
|
|
1326
|
-
declare const index$4_signersInCycle: typeof signersInCycle;
|
|
1327
|
-
declare const index$4_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1328
|
-
declare namespace index$4 {
|
|
1329
|
-
export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$4_cycle as cycle, index$4_cycles as cycles, index$4_signerInCycle as signerInCycle, index$4_signersInCycle as signersInCycle, index$4_stackersForSignerInCycle as stackersForSignerInCycle };
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
declare const index$3_readOnly: typeof readOnly;
|
|
1333
|
-
declare namespace index$3 {
|
|
1334
|
-
export { readOnly$1 as ReadOnly, index$3_readOnly as readOnly };
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
declare const index$2_members: typeof members;
|
|
1338
|
-
declare namespace index$2 {
|
|
1339
|
-
export { members$1 as Members, index$2_members as members };
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
declare const index$1_addressTransactions: typeof addressTransactions;
|
|
1343
|
-
declare const index$1_getTransaction: typeof getTransaction;
|
|
1344
|
-
declare namespace index$1 {
|
|
1345
|
-
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1293
|
+
export { type Args$3 as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
|
|
1346
1294
|
}
|
|
1347
1295
|
|
|
1348
1296
|
declare const accounts: {
|
|
@@ -1350,15 +1298,39 @@ declare const accounts: {
|
|
|
1350
1298
|
latestNonce: typeof latestNonce;
|
|
1351
1299
|
};
|
|
1352
1300
|
|
|
1301
|
+
declare const index$9_accounts: typeof accounts;
|
|
1302
|
+
declare namespace index$9 {
|
|
1303
|
+
export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$9_accounts as accounts };
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1353
1306
|
declare const blocks: {
|
|
1354
1307
|
getBlock: typeof getBlock;
|
|
1355
1308
|
};
|
|
1356
1309
|
|
|
1310
|
+
declare const index$8_blocks: typeof blocks;
|
|
1311
|
+
declare namespace index$8 {
|
|
1312
|
+
export { getBlock$1 as GetBlock, index$8_blocks as blocks };
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
declare const faucets: {
|
|
1316
|
+
stx: typeof stx;
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
declare const index$7_faucets: typeof faucets;
|
|
1320
|
+
declare namespace index$7 {
|
|
1321
|
+
export { stx$1 as Stx, index$7_faucets as faucets };
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1357
1324
|
declare const info: {
|
|
1358
1325
|
coreApi: typeof coreApi;
|
|
1359
1326
|
poxDetails: typeof poxDetails;
|
|
1360
1327
|
};
|
|
1361
1328
|
|
|
1329
|
+
declare const index$6_info: typeof info;
|
|
1330
|
+
declare namespace index$6 {
|
|
1331
|
+
export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$6_info as info };
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1362
1334
|
declare const proofOfTransfer: {
|
|
1363
1335
|
cycle: typeof cycle;
|
|
1364
1336
|
cycles: typeof cycles;
|
|
@@ -1367,37 +1339,30 @@ declare const proofOfTransfer: {
|
|
|
1367
1339
|
stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1368
1340
|
};
|
|
1369
1341
|
|
|
1370
|
-
declare const
|
|
1371
|
-
|
|
1372
|
-
};
|
|
1342
|
+
declare const index$5_proofOfTransfer: typeof proofOfTransfer;
|
|
1343
|
+
declare namespace index$5 {
|
|
1344
|
+
export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$5_proofOfTransfer as proofOfTransfer };
|
|
1345
|
+
}
|
|
1373
1346
|
|
|
1374
1347
|
declare const stackingPool: {
|
|
1375
1348
|
members: typeof members;
|
|
1376
1349
|
};
|
|
1377
1350
|
|
|
1351
|
+
declare const index$4_stackingPool: typeof stackingPool;
|
|
1352
|
+
declare namespace index$4 {
|
|
1353
|
+
export { members$1 as Members, index$4_stackingPool as stackingPool };
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1378
1356
|
declare const transactions: {
|
|
1379
1357
|
addressTransactions: typeof addressTransactions;
|
|
1380
1358
|
getTransaction: typeof getTransaction;
|
|
1381
1359
|
};
|
|
1382
1360
|
|
|
1383
|
-
declare const
|
|
1384
|
-
declare
|
|
1385
|
-
|
|
1386
|
-
declare const index_proofOfTransfer: typeof proofOfTransfer;
|
|
1387
|
-
declare const index_smartContracts: typeof smartContracts;
|
|
1388
|
-
declare const index_stackingPool: typeof stackingPool;
|
|
1389
|
-
declare const index_transactions: typeof transactions;
|
|
1390
|
-
declare namespace index {
|
|
1391
|
-
export { index$7 as Accounts, index$6 as Blocks, index$5 as Info, index$4 as ProofOfTransfer, index$3 as SmartContracts, index$2 as StackingPool, index$1 as Transactions, index_accounts as accounts, index_blocks as blocks, index_info as info, index_proofOfTransfer as proofOfTransfer, index_smartContracts as smartContracts, index_stackingPool as stackingPool, index_transactions as transactions };
|
|
1361
|
+
declare const index$3_transactions: typeof transactions;
|
|
1362
|
+
declare namespace index$3 {
|
|
1363
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$3_transactions as transactions };
|
|
1392
1364
|
}
|
|
1393
1365
|
|
|
1394
|
-
type Options = {
|
|
1395
|
-
startingDelay?: number;
|
|
1396
|
-
numOfAttempts?: number;
|
|
1397
|
-
};
|
|
1398
|
-
declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
|
|
1399
|
-
declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
|
|
1400
|
-
|
|
1401
1366
|
declare const stacksApi: {
|
|
1402
1367
|
accounts: {
|
|
1403
1368
|
balances: typeof balances;
|
|
@@ -1406,6 +1371,9 @@ declare const stacksApi: {
|
|
|
1406
1371
|
blocks: {
|
|
1407
1372
|
getBlock: typeof getBlock;
|
|
1408
1373
|
};
|
|
1374
|
+
faucets: {
|
|
1375
|
+
stx: typeof stx;
|
|
1376
|
+
};
|
|
1409
1377
|
info: {
|
|
1410
1378
|
coreApi: typeof coreApi;
|
|
1411
1379
|
poxDetails: typeof poxDetails;
|
|
@@ -1417,9 +1385,6 @@ declare const stacksApi: {
|
|
|
1417
1385
|
signersInCycle: typeof signersInCycle;
|
|
1418
1386
|
stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1419
1387
|
};
|
|
1420
|
-
smartContracts: {
|
|
1421
|
-
readOnly: typeof readOnly;
|
|
1422
|
-
};
|
|
1423
1388
|
stackingPool: {
|
|
1424
1389
|
members: typeof members;
|
|
1425
1390
|
};
|
|
@@ -1429,4 +1394,114 @@ declare const stacksApi: {
|
|
|
1429
1394
|
};
|
|
1430
1395
|
};
|
|
1431
1396
|
|
|
1432
|
-
|
|
1397
|
+
declare const index$2_stacksApi: typeof stacksApi;
|
|
1398
|
+
declare namespace index$2 {
|
|
1399
|
+
export { index$9 as Accounts, index$8 as Blocks, index$7 as Faucets, index$6 as Info, index$5 as ProofOfTransfer, index$4 as StackingPool, index$3 as Transactions, index$2_stacksApi as stacksApi };
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
type Args$2 = {
|
|
1403
|
+
sender: string;
|
|
1404
|
+
arguments: string[];
|
|
1405
|
+
contractAddress: string;
|
|
1406
|
+
contractName: string;
|
|
1407
|
+
functionName: string;
|
|
1408
|
+
} & ApiRequestOptions;
|
|
1409
|
+
declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
|
|
1410
|
+
readonly okay: v.LiteralSchema<true, undefined>;
|
|
1411
|
+
/**
|
|
1412
|
+
* A Clarity value as a hex-encoded string.
|
|
1413
|
+
*/
|
|
1414
|
+
readonly result: v.StringSchema<undefined>;
|
|
1415
|
+
}, undefined>, v.ObjectSchema<{
|
|
1416
|
+
readonly okay: v.LiteralSchema<false, undefined>;
|
|
1417
|
+
readonly cause: v.UnknownSchema;
|
|
1418
|
+
}, undefined>], undefined>;
|
|
1419
|
+
type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
|
|
1420
|
+
declare function readOnly(args: Args$2): Promise<Result$1<ReadOnlyResponse>>;
|
|
1421
|
+
|
|
1422
|
+
type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
|
|
1423
|
+
declare const readOnly$1_readOnly: typeof readOnly;
|
|
1424
|
+
declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
|
|
1425
|
+
declare namespace readOnly$1 {
|
|
1426
|
+
export { type Args$2 as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
type Args$1 = {
|
|
1430
|
+
contractAddress: string;
|
|
1431
|
+
contractName: string;
|
|
1432
|
+
mapName: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* Hex-encoded string of the map key Clarity value.
|
|
1435
|
+
*/
|
|
1436
|
+
mapKey: string;
|
|
1437
|
+
} & ApiRequestOptions & ProofAndTip;
|
|
1438
|
+
declare const mapEntryResponseSchema: v.ObjectSchema<{
|
|
1439
|
+
/**
|
|
1440
|
+
* Hex-encoded string of clarity value. It is always an optional tuple.
|
|
1441
|
+
*/
|
|
1442
|
+
readonly data: v.StringSchema<undefined>;
|
|
1443
|
+
/**
|
|
1444
|
+
* Hex-encoded string of the MARF proof for the data
|
|
1445
|
+
*/
|
|
1446
|
+
readonly proof: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1447
|
+
}, undefined>;
|
|
1448
|
+
type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
|
|
1449
|
+
declare function mapEntry(args: Args$1): Promise<Result$1<MapEntryResponse>>;
|
|
1450
|
+
|
|
1451
|
+
type mapEntry$1_MapEntryResponse = MapEntryResponse;
|
|
1452
|
+
declare const mapEntry$1_mapEntry: typeof mapEntry;
|
|
1453
|
+
declare namespace mapEntry$1 {
|
|
1454
|
+
export { type Args$1 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
declare const smartContracts: {
|
|
1458
|
+
mapEntry: typeof mapEntry;
|
|
1459
|
+
readOnly: typeof readOnly;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
declare const index$1_smartContracts: typeof smartContracts;
|
|
1463
|
+
declare namespace index$1 {
|
|
1464
|
+
export { mapEntry$1 as MapEntry, readOnly$1 as ReadOnly, index$1_smartContracts as smartContracts };
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
declare const stacksRpcApi: {
|
|
1468
|
+
smartContracts: {
|
|
1469
|
+
mapEntry: typeof mapEntry;
|
|
1470
|
+
readOnly: typeof readOnly;
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
declare const index_stacksRpcApi: typeof stacksRpcApi;
|
|
1475
|
+
declare namespace index {
|
|
1476
|
+
export { index$1 as SmartContracts, index_stacksRpcApi as stacksRpcApi };
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
type Identifier = {
|
|
1480
|
+
type: "address";
|
|
1481
|
+
signerAddress: string;
|
|
1482
|
+
} | {
|
|
1483
|
+
type: "publicKey";
|
|
1484
|
+
signerPublicKey: string;
|
|
1485
|
+
};
|
|
1486
|
+
type Args = {
|
|
1487
|
+
identifier: Identifier;
|
|
1488
|
+
} & {
|
|
1489
|
+
cycleNumber: number;
|
|
1490
|
+
} & ApiRequestOptions;
|
|
1491
|
+
/**
|
|
1492
|
+
* Return the total locked amount for a signer in a PoX cycle.
|
|
1493
|
+
*/
|
|
1494
|
+
declare function getSignerStackedAmount(args: Args): Promise<Result$1<bigint, SafeError<"SignerNotFound" | string>>>;
|
|
1495
|
+
|
|
1496
|
+
declare const queries: {
|
|
1497
|
+
getSignerStackedAmount: typeof getSignerStackedAmount;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
type Options = {
|
|
1501
|
+
startingDelay?: number;
|
|
1502
|
+
numOfAttempts?: number;
|
|
1503
|
+
};
|
|
1504
|
+
declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
|
|
1505
|
+
declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
|
|
1506
|
+
|
|
1507
|
+
export { type Result$1 as Result, type SafeError, index$2 as StacksApi, index as StacksRpcApi, callRateLimitedApi, error, queries, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, stacksRpcApi, success };
|