@secretkeylabs/stacks-tools 0.4.0-98de979 → 0.4.0-da5eb9d
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 +229 -32
- package/dist/index.d.cts +182 -98
- package/dist/index.d.ts +182 -98
- package/dist/index.js +227 -32
- package/package.json +1 -1
package/dist/index.d.cts
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,10 +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
|
|
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 };
|
|
916
923
|
}
|
|
917
924
|
|
|
918
|
-
type Args$
|
|
925
|
+
type Args$c = {
|
|
919
926
|
sender: string;
|
|
920
927
|
arguments: string[];
|
|
921
928
|
contractAddress: string;
|
|
@@ -933,16 +940,16 @@ declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
|
|
|
933
940
|
readonly cause: v.UnknownSchema;
|
|
934
941
|
}, undefined>], undefined>;
|
|
935
942
|
type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
|
|
936
|
-
declare function readOnly(args: Args$
|
|
943
|
+
declare function readOnly(args: Args$c): Promise<Result$1<ReadOnlyResponse>>;
|
|
937
944
|
|
|
938
945
|
type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
|
|
939
946
|
declare const readOnly$1_readOnly: typeof readOnly;
|
|
940
947
|
declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
|
|
941
948
|
declare namespace readOnly$1 {
|
|
942
|
-
export { type Args$
|
|
949
|
+
export { type Args$c as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
|
|
943
950
|
}
|
|
944
951
|
|
|
945
|
-
type Args$
|
|
952
|
+
type Args$b = {
|
|
946
953
|
cycleNumber: number;
|
|
947
954
|
signerPublicKey: string;
|
|
948
955
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
@@ -972,7 +979,7 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
972
979
|
readonly total: v.NumberSchema<undefined>;
|
|
973
980
|
}, undefined>;
|
|
974
981
|
type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
|
|
975
|
-
declare function stackersForSignerInCycle(opts: Args$
|
|
982
|
+
declare function stackersForSignerInCycle(opts: Args$b): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
976
983
|
|
|
977
984
|
type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
|
|
978
985
|
type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
|
|
@@ -980,10 +987,10 @@ declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSc
|
|
|
980
987
|
declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
981
988
|
declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
|
|
982
989
|
declare namespace stackersForSignerInCycle$1 {
|
|
983
|
-
export { type Args$
|
|
990
|
+
export { type Args$b 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
991
|
}
|
|
985
992
|
|
|
986
|
-
type Args$
|
|
993
|
+
type Args$a = {
|
|
987
994
|
cycleNumber: number;
|
|
988
995
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
989
996
|
declare const signerSchema: v.ObjectSchema<{
|
|
@@ -1024,7 +1031,7 @@ declare const signersResponseSchema: v.ObjectSchema<{
|
|
|
1024
1031
|
readonly total: v.NumberSchema<undefined>;
|
|
1025
1032
|
}, undefined>;
|
|
1026
1033
|
type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
|
|
1027
|
-
declare function signersInCycle(args: Args$
|
|
1034
|
+
declare function signersInCycle(args: Args$a): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1028
1035
|
|
|
1029
1036
|
type signersInCycle$1_Signer = Signer;
|
|
1030
1037
|
type signersInCycle$1_SignersResponse = SignersResponse;
|
|
@@ -1032,10 +1039,10 @@ declare const signersInCycle$1_signerSchema: typeof signerSchema;
|
|
|
1032
1039
|
declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
|
|
1033
1040
|
declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
|
|
1034
1041
|
declare namespace signersInCycle$1 {
|
|
1035
|
-
export { type Args$
|
|
1042
|
+
export { type Args$a 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
1043
|
}
|
|
1037
1044
|
|
|
1038
|
-
type Args$
|
|
1045
|
+
type Args$9 = {
|
|
1039
1046
|
/**
|
|
1040
1047
|
* The signers public key as a hex string, with or without a '0x' prefix.
|
|
1041
1048
|
*/
|
|
@@ -1053,16 +1060,16 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
1053
1060
|
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
1054
1061
|
}, undefined>;
|
|
1055
1062
|
type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
|
|
1056
|
-
declare function signerInCycle(args: Args$
|
|
1063
|
+
declare function signerInCycle(args: Args$9): Promise<Result$1<SignerInCycleResponse>>;
|
|
1057
1064
|
|
|
1058
1065
|
type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
|
|
1059
1066
|
declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
|
|
1060
1067
|
declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
|
|
1061
1068
|
declare namespace signerInCycle$1 {
|
|
1062
|
-
export { type Args$
|
|
1069
|
+
export { type Args$9 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
|
|
1063
1070
|
}
|
|
1064
1071
|
|
|
1065
|
-
type Args$
|
|
1072
|
+
type Args$8 = ApiRequestOptions & ApiPaginationOptions;
|
|
1066
1073
|
declare const cycleInfoSchema: v.ObjectSchema<{
|
|
1067
1074
|
readonly block_height: v.NumberSchema<undefined>;
|
|
1068
1075
|
readonly index_block_hash: v.StringSchema<undefined>;
|
|
@@ -1095,7 +1102,7 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
|
1095
1102
|
readonly total: v.NumberSchema<undefined>;
|
|
1096
1103
|
}, undefined>;
|
|
1097
1104
|
type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
|
|
1098
|
-
declare function cycles(args: Args$
|
|
1105
|
+
declare function cycles(args: Args$8): Promise<Result$1<CyclesResponse>>;
|
|
1099
1106
|
|
|
1100
1107
|
type cycles$1_CycleInfo = CycleInfo;
|
|
1101
1108
|
type cycles$1_CyclesResponse = CyclesResponse;
|
|
@@ -1105,10 +1112,10 @@ declare const cycles$1_cycles: typeof cycles;
|
|
|
1105
1112
|
declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
|
|
1106
1113
|
declare const cycles$1_resultsSchema: typeof resultsSchema;
|
|
1107
1114
|
declare namespace cycles$1 {
|
|
1108
|
-
export { type Args$
|
|
1115
|
+
export { type Args$8 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
1116
|
}
|
|
1110
1117
|
|
|
1111
|
-
type Args$
|
|
1118
|
+
type Args$7 = {
|
|
1112
1119
|
cycleNumber: number;
|
|
1113
1120
|
} & ApiRequestOptions;
|
|
1114
1121
|
declare const responseSchema$3: v.ObjectSchema<{
|
|
@@ -1120,14 +1127,14 @@ declare const responseSchema$3: v.ObjectSchema<{
|
|
|
1120
1127
|
readonly total_signers: v.NumberSchema<undefined>;
|
|
1121
1128
|
}, undefined>;
|
|
1122
1129
|
type Response$3 = v.InferOutput<typeof responseSchema$3>;
|
|
1123
|
-
declare function cycle(opts: Args$
|
|
1130
|
+
declare function cycle(opts: Args$7): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1124
1131
|
|
|
1125
1132
|
declare const cycle$1_cycle: typeof cycle;
|
|
1126
1133
|
declare namespace cycle$1 {
|
|
1127
|
-
export { type Args$
|
|
1134
|
+
export { type Args$7 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
|
|
1128
1135
|
}
|
|
1129
1136
|
|
|
1130
|
-
type Args$
|
|
1137
|
+
type Args$6 = ApiRequestOptions;
|
|
1131
1138
|
declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
1132
1139
|
readonly contract_id: v.StringSchema<undefined>;
|
|
1133
1140
|
readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
|
|
@@ -1181,7 +1188,7 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
|
1181
1188
|
}, undefined>, undefined>;
|
|
1182
1189
|
}, undefined>;
|
|
1183
1190
|
type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
|
|
1184
|
-
declare function poxDetails(args: Args$
|
|
1191
|
+
declare function poxDetails(args: Args$6): Promise<Result$1<PoxDetailsResponse>>;
|
|
1185
1192
|
|
|
1186
1193
|
declare const poxDetails$1_poxDetails: typeof poxDetails;
|
|
1187
1194
|
declare namespace poxDetails$1 {
|
|
@@ -1213,7 +1220,18 @@ declare namespace coreApi$1 {
|
|
|
1213
1220
|
export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
|
|
1214
1221
|
}
|
|
1215
1222
|
|
|
1216
|
-
type Args$
|
|
1223
|
+
type Args$5 = {
|
|
1224
|
+
address: string;
|
|
1225
|
+
stacking?: boolean;
|
|
1226
|
+
} & ApiRequestOptions;
|
|
1227
|
+
declare function stx(opts: Args$5): Promise<Result$1<any>>;
|
|
1228
|
+
|
|
1229
|
+
declare const stx$1_stx: typeof stx;
|
|
1230
|
+
declare namespace stx$1 {
|
|
1231
|
+
export { type Args$5 as Args, stx$1_stx as stx };
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
type Args$4 = {
|
|
1217
1235
|
heightOrHash: string | number;
|
|
1218
1236
|
} & ApiRequestOptions;
|
|
1219
1237
|
declare const responseSchema$2: v.ObjectSchema<{
|
|
@@ -1238,14 +1256,14 @@ declare const responseSchema$2: v.ObjectSchema<{
|
|
|
1238
1256
|
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
1239
1257
|
}, undefined>;
|
|
1240
1258
|
type Response$2 = v.InferOutput<typeof responseSchema$2>;
|
|
1241
|
-
declare function getBlock(opts: Args$
|
|
1259
|
+
declare function getBlock(opts: Args$4): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1242
1260
|
|
|
1243
1261
|
declare const getBlock$1_getBlock: typeof getBlock;
|
|
1244
1262
|
declare namespace getBlock$1 {
|
|
1245
|
-
export { type Args$
|
|
1263
|
+
export { type Args$4 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
|
|
1246
1264
|
}
|
|
1247
1265
|
|
|
1248
|
-
type Args$
|
|
1266
|
+
type Args$3 = {
|
|
1249
1267
|
principal: string;
|
|
1250
1268
|
} & ApiRequestOptions;
|
|
1251
1269
|
declare const responseSchema$1: v.ObjectSchema<{
|
|
@@ -1256,14 +1274,14 @@ declare const responseSchema$1: v.ObjectSchema<{
|
|
|
1256
1274
|
readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1257
1275
|
}, undefined>;
|
|
1258
1276
|
type Response$1 = v.InferOutput<typeof responseSchema$1>;
|
|
1259
|
-
declare function latestNonce(opts: Args$
|
|
1277
|
+
declare function latestNonce(opts: Args$3): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1260
1278
|
|
|
1261
1279
|
declare const latestNonce$1_latestNonce: typeof latestNonce;
|
|
1262
1280
|
declare namespace latestNonce$1 {
|
|
1263
|
-
export { type Args$
|
|
1281
|
+
export { type Args$3 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
|
|
1264
1282
|
}
|
|
1265
1283
|
|
|
1266
|
-
type Args = {
|
|
1284
|
+
type Args$2 = {
|
|
1267
1285
|
principal: string;
|
|
1268
1286
|
unanchored?: boolean;
|
|
1269
1287
|
untilBlock?: number;
|
|
@@ -1293,56 +1311,13 @@ declare const responseSchema: v.ObjectSchema<{
|
|
|
1293
1311
|
}, undefined>, undefined>;
|
|
1294
1312
|
}, undefined>;
|
|
1295
1313
|
type Response = v.InferOutput<typeof responseSchema>;
|
|
1296
|
-
declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1314
|
+
declare function balances(opts: Args$2): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1297
1315
|
|
|
1298
|
-
type balances$1_Args = Args;
|
|
1299
1316
|
type balances$1_Response = Response;
|
|
1300
1317
|
declare const balances$1_balances: typeof balances;
|
|
1301
1318
|
declare const balances$1_responseSchema: typeof responseSchema;
|
|
1302
1319
|
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 };
|
|
1320
|
+
export { type Args$2 as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
|
|
1346
1321
|
}
|
|
1347
1322
|
|
|
1348
1323
|
declare const accounts: {
|
|
@@ -1350,15 +1325,39 @@ declare const accounts: {
|
|
|
1350
1325
|
latestNonce: typeof latestNonce;
|
|
1351
1326
|
};
|
|
1352
1327
|
|
|
1328
|
+
declare const index$a_accounts: typeof accounts;
|
|
1329
|
+
declare namespace index$a {
|
|
1330
|
+
export { balances$1 as Balances, latestNonce$1 as LatestNonce, index$a_accounts as accounts };
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1353
1333
|
declare const blocks: {
|
|
1354
1334
|
getBlock: typeof getBlock;
|
|
1355
1335
|
};
|
|
1356
1336
|
|
|
1337
|
+
declare const index$9_blocks: typeof blocks;
|
|
1338
|
+
declare namespace index$9 {
|
|
1339
|
+
export { getBlock$1 as GetBlock, index$9_blocks as blocks };
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
declare const faucets: {
|
|
1343
|
+
stx: typeof stx;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
declare const index$8_faucets: typeof faucets;
|
|
1347
|
+
declare namespace index$8 {
|
|
1348
|
+
export { stx$1 as Stx, index$8_faucets as faucets };
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1357
1351
|
declare const info: {
|
|
1358
1352
|
coreApi: typeof coreApi;
|
|
1359
1353
|
poxDetails: typeof poxDetails;
|
|
1360
1354
|
};
|
|
1361
1355
|
|
|
1356
|
+
declare const index$7_info: typeof info;
|
|
1357
|
+
declare namespace index$7 {
|
|
1358
|
+
export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$7_info as info };
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1362
1361
|
declare const proofOfTransfer: {
|
|
1363
1362
|
cycle: typeof cycle;
|
|
1364
1363
|
cycles: typeof cycles;
|
|
@@ -1367,37 +1366,38 @@ declare const proofOfTransfer: {
|
|
|
1367
1366
|
stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1368
1367
|
};
|
|
1369
1368
|
|
|
1370
|
-
declare const
|
|
1369
|
+
declare const index$6_proofOfTransfer: typeof proofOfTransfer;
|
|
1370
|
+
declare namespace index$6 {
|
|
1371
|
+
export { cycle$1 as Cycle, cycles$1 as Cycles, signerInCycle$1 as SignerInCycle, signersInCycle$1 as SignersInCycle, stackersForSignerInCycle$1 as StackersForSignerInCycle, index$6_proofOfTransfer as proofOfTransfer };
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
declare const smartContracts$1: {
|
|
1371
1375
|
readOnly: typeof readOnly;
|
|
1372
1376
|
};
|
|
1373
1377
|
|
|
1378
|
+
declare namespace index$5 {
|
|
1379
|
+
export { readOnly$1 as ReadOnly, smartContracts$1 as smartContracts };
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1374
1382
|
declare const stackingPool: {
|
|
1375
1383
|
members: typeof members;
|
|
1376
1384
|
};
|
|
1377
1385
|
|
|
1386
|
+
declare const index$4_stackingPool: typeof stackingPool;
|
|
1387
|
+
declare namespace index$4 {
|
|
1388
|
+
export { members$1 as Members, index$4_stackingPool as stackingPool };
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1378
1391
|
declare const transactions: {
|
|
1379
1392
|
addressTransactions: typeof addressTransactions;
|
|
1380
1393
|
getTransaction: typeof getTransaction;
|
|
1381
1394
|
};
|
|
1382
1395
|
|
|
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 };
|
|
1396
|
+
declare const index$3_transactions: typeof transactions;
|
|
1397
|
+
declare namespace index$3 {
|
|
1398
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$3_transactions as transactions };
|
|
1392
1399
|
}
|
|
1393
1400
|
|
|
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
1401
|
declare const stacksApi: {
|
|
1402
1402
|
accounts: {
|
|
1403
1403
|
balances: typeof balances;
|
|
@@ -1406,6 +1406,9 @@ declare const stacksApi: {
|
|
|
1406
1406
|
blocks: {
|
|
1407
1407
|
getBlock: typeof getBlock;
|
|
1408
1408
|
};
|
|
1409
|
+
faucets: {
|
|
1410
|
+
stx: typeof stx;
|
|
1411
|
+
};
|
|
1409
1412
|
info: {
|
|
1410
1413
|
coreApi: typeof coreApi;
|
|
1411
1414
|
poxDetails: typeof poxDetails;
|
|
@@ -1429,4 +1432,85 @@ declare const stacksApi: {
|
|
|
1429
1432
|
};
|
|
1430
1433
|
};
|
|
1431
1434
|
|
|
1432
|
-
|
|
1435
|
+
declare const index$2_stacksApi: typeof stacksApi;
|
|
1436
|
+
declare namespace index$2 {
|
|
1437
|
+
export { index$a as Accounts, index$9 as Blocks, index$8 as Faucets, index$7 as Info, index$6 as ProofOfTransfer, index$5 as SmartContracts, index$4 as StackingPool, index$3 as Transactions, index$2_stacksApi as stacksApi };
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
type Args$1 = {
|
|
1441
|
+
contractAddress: string;
|
|
1442
|
+
contractName: string;
|
|
1443
|
+
mapName: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* Hex-encoded string of the map key Clarity value.
|
|
1446
|
+
*/
|
|
1447
|
+
mapKey: string;
|
|
1448
|
+
} & ApiRequestOptions & ProofAndTip;
|
|
1449
|
+
declare const mapEntryResponseSchema: v.ObjectSchema<{
|
|
1450
|
+
/**
|
|
1451
|
+
* Hex-encoded string of clarity value. It is always an optional tuple.
|
|
1452
|
+
*/
|
|
1453
|
+
readonly data: v.StringSchema<undefined>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Hex-encoded string of the MARF proof for the data
|
|
1456
|
+
*/
|
|
1457
|
+
readonly proof: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1458
|
+
}, undefined>;
|
|
1459
|
+
type MapEntryResponse = v.InferOutput<typeof mapEntryResponseSchema>;
|
|
1460
|
+
declare function mapEntry(args: Args$1): Promise<Result$1<MapEntryResponse>>;
|
|
1461
|
+
|
|
1462
|
+
type mapEntry$1_MapEntryResponse = MapEntryResponse;
|
|
1463
|
+
declare const mapEntry$1_mapEntry: typeof mapEntry;
|
|
1464
|
+
declare namespace mapEntry$1 {
|
|
1465
|
+
export { type Args$1 as Args, type mapEntry$1_MapEntryResponse as MapEntryResponse, mapEntry$1_mapEntry as mapEntry };
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
declare const smartContracts: {
|
|
1469
|
+
mapEntry: typeof mapEntry;
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
declare const index$1_smartContracts: typeof smartContracts;
|
|
1473
|
+
declare namespace index$1 {
|
|
1474
|
+
export { mapEntry$1 as MapEntry, index$1_smartContracts as smartContracts };
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
declare const stacksRpcApi: {
|
|
1478
|
+
smartContracts: {
|
|
1479
|
+
mapEntry: typeof mapEntry;
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
declare const index_stacksRpcApi: typeof stacksRpcApi;
|
|
1484
|
+
declare namespace index {
|
|
1485
|
+
export { index$1 as SmartContracts, index_stacksRpcApi as stacksRpcApi };
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
type Identifier = {
|
|
1489
|
+
type: "address";
|
|
1490
|
+
signerAddress: string;
|
|
1491
|
+
} | {
|
|
1492
|
+
type: "publicKey";
|
|
1493
|
+
signerPublicKey: string;
|
|
1494
|
+
};
|
|
1495
|
+
type Args = {
|
|
1496
|
+
identifier: Identifier;
|
|
1497
|
+
} & {
|
|
1498
|
+
cycleNumber: number;
|
|
1499
|
+
} & ApiRequestOptions;
|
|
1500
|
+
/**
|
|
1501
|
+
* Return the total locked amount for a signer in a PoX cycle.
|
|
1502
|
+
*/
|
|
1503
|
+
declare function getSignerStackedAmount(args: Args): Promise<Result$1<bigint, SafeError<"SignerNotFound" | string>>>;
|
|
1504
|
+
|
|
1505
|
+
declare const queries: {
|
|
1506
|
+
getSignerStackedAmount: typeof getSignerStackedAmount;
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
type Options = {
|
|
1510
|
+
startingDelay?: number;
|
|
1511
|
+
numOfAttempts?: number;
|
|
1512
|
+
};
|
|
1513
|
+
declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
|
|
1514
|
+
declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
|
|
1515
|
+
|
|
1516
|
+
export { type Result$1 as Result, type SafeError, index$2 as StacksApi, index as StacksRpcApi, callRateLimitedApi, error, queries, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, stacksRpcApi, success };
|