@secretkeylabs/stacks-tools 0.3.0 → 0.4.0-0fe567d
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 +395 -379
- package/dist/index.d.cts +823 -52
- package/dist/index.d.ts +823 -52
- package/dist/index.js +388 -377
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,10 +5,18 @@ type SafeError<TName extends string = string, TData = unknown> = {
|
|
|
5
5
|
readonly message: string;
|
|
6
6
|
readonly data?: TData;
|
|
7
7
|
};
|
|
8
|
-
type Result<TData = unknown, E extends SafeError = SafeError> = [E, null] | [null, TData];
|
|
8
|
+
type Result$1<TData = unknown, E extends SafeError = SafeError> = [E, null] | [null, TData];
|
|
9
|
+
declare function success<D>(data: D): Result$1<D, never>;
|
|
10
|
+
declare function error<const E extends SafeError>(error: E): Result$1<never, E>;
|
|
11
|
+
declare function safePromise<TData>(promise: Promise<TData>): Promise<Result$1<TData, SafeError<"SafePromiseError">>>;
|
|
12
|
+
declare function safeCall<Return>(fn: () => Return): Result$1<Return, SafeError<"SafeCallError">>;
|
|
9
13
|
|
|
10
14
|
type ApiKeyConfig = {
|
|
11
15
|
key: string;
|
|
16
|
+
/**
|
|
17
|
+
* The header to use for the API key. For example, the Hiro API uses the
|
|
18
|
+
* header `x-api-key`.
|
|
19
|
+
*/
|
|
12
20
|
header: string;
|
|
13
21
|
};
|
|
14
22
|
type ApiRequestOptions = {
|
|
@@ -26,6 +34,188 @@ type ApiPaginationOptions = {
|
|
|
26
34
|
offset?: number;
|
|
27
35
|
};
|
|
28
36
|
|
|
37
|
+
declare const baseTransactionSchema: v.ObjectSchema<{
|
|
38
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
39
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
40
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
41
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
42
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
43
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
44
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
45
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
46
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
47
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
48
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
49
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
50
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
51
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
52
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
53
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
54
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
55
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
56
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
57
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
58
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
59
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
60
|
+
readonly tx_result: v.ObjectSchema<{
|
|
61
|
+
readonly hex: v.StringSchema<undefined>;
|
|
62
|
+
readonly repr: v.StringSchema<undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
65
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
66
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
67
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
68
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
69
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
70
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
71
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
72
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
73
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
74
|
+
}, undefined>;
|
|
75
|
+
declare const contractCallTransactionSchema: v.ObjectSchema<{
|
|
76
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
77
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
78
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
79
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
80
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
81
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
82
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
83
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
84
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
85
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
86
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
87
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
88
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
89
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
90
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
91
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
92
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
93
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
94
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
95
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
96
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
97
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
98
|
+
readonly tx_result: v.ObjectSchema<{
|
|
99
|
+
readonly hex: v.StringSchema<undefined>;
|
|
100
|
+
readonly repr: v.StringSchema<undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
103
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
104
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
105
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
106
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
107
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
108
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
109
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
110
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
111
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
112
|
+
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
113
|
+
readonly contract_call: v.ObjectSchema<{
|
|
114
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
115
|
+
readonly function_name: v.StringSchema<undefined>;
|
|
116
|
+
readonly function_signature: v.StringSchema<undefined>;
|
|
117
|
+
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
118
|
+
readonly hex: v.StringSchema<undefined>;
|
|
119
|
+
readonly repr: v.StringSchema<undefined>;
|
|
120
|
+
readonly name: v.StringSchema<undefined>;
|
|
121
|
+
readonly type: v.StringSchema<undefined>;
|
|
122
|
+
}, undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
|
|
126
|
+
declare const smartContractTransactionSchema: v.ObjectSchema<{
|
|
127
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
128
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
129
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
130
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
131
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
132
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
133
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
134
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
135
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
136
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
137
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
138
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
139
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
140
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
141
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
142
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
143
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
144
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
145
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
146
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
147
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
148
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
149
|
+
readonly tx_result: v.ObjectSchema<{
|
|
150
|
+
readonly hex: v.StringSchema<undefined>;
|
|
151
|
+
readonly repr: v.StringSchema<undefined>;
|
|
152
|
+
}, undefined>;
|
|
153
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
154
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
155
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
156
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
157
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
158
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
159
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
160
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
161
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
162
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
163
|
+
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
164
|
+
readonly smart_contract: v.ObjectSchema<{
|
|
165
|
+
/**
|
|
166
|
+
* NOTE: The types may be wrong, not sure what type of value is used when
|
|
167
|
+
* the version is not `null`.
|
|
168
|
+
*/
|
|
169
|
+
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
170
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
171
|
+
readonly source_code: v.StringSchema<undefined>;
|
|
172
|
+
}, undefined>;
|
|
173
|
+
}, undefined>;
|
|
174
|
+
type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
|
|
175
|
+
declare const tokenTransferSchema: v.ObjectSchema<{
|
|
176
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
177
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
178
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
179
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
180
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
181
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
182
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
183
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
184
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
185
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
186
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
187
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
188
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
189
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
190
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
191
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
192
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
193
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
194
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
195
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
196
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
197
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
198
|
+
readonly tx_result: v.ObjectSchema<{
|
|
199
|
+
readonly hex: v.StringSchema<undefined>;
|
|
200
|
+
readonly repr: v.StringSchema<undefined>;
|
|
201
|
+
}, undefined>;
|
|
202
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
203
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
204
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
205
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
206
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
207
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
208
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
209
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
210
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
211
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
212
|
+
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
213
|
+
readonly token_transfer: v.ObjectSchema<{
|
|
214
|
+
readonly recipient_address: v.StringSchema<undefined>;
|
|
215
|
+
readonly amount: v.StringSchema<undefined>;
|
|
216
|
+
readonly memo: v.StringSchema<undefined>;
|
|
217
|
+
}, undefined>;
|
|
218
|
+
}, undefined>;
|
|
29
219
|
/**
|
|
30
220
|
* Incomplete schema of some transaction types.
|
|
31
221
|
*/
|
|
@@ -51,7 +241,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
51
241
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
52
242
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
53
243
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
54
|
-
readonly tx_status: v.
|
|
244
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
55
245
|
readonly tx_result: v.ObjectSchema<{
|
|
56
246
|
readonly hex: v.StringSchema<undefined>;
|
|
57
247
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -100,7 +290,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
100
290
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
101
291
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
102
292
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
103
|
-
readonly tx_status: v.
|
|
293
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
104
294
|
readonly tx_result: v.ObjectSchema<{
|
|
105
295
|
readonly hex: v.StringSchema<undefined>;
|
|
106
296
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -147,7 +337,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
147
337
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
148
338
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
149
339
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
150
|
-
readonly tx_status: v.
|
|
340
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
151
341
|
readonly tx_result: v.ObjectSchema<{
|
|
152
342
|
readonly hex: v.StringSchema<undefined>;
|
|
153
343
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -171,14 +361,347 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
171
361
|
}, undefined>], undefined>;
|
|
172
362
|
type Transaction = v.InferOutput<typeof transactionSchema>;
|
|
173
363
|
|
|
174
|
-
type
|
|
364
|
+
type schemas_ContractCallTransaction = ContractCallTransaction;
|
|
365
|
+
type schemas_SmartContractTransaction = SmartContractTransaction;
|
|
366
|
+
type schemas_Transaction = Transaction;
|
|
367
|
+
declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
|
|
368
|
+
declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
|
|
369
|
+
declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
|
|
370
|
+
declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
|
|
371
|
+
declare const schemas_transactionSchema: typeof transactionSchema;
|
|
372
|
+
declare namespace schemas {
|
|
373
|
+
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
|
+
}
|
|
375
|
+
|
|
376
|
+
type Args$b = {
|
|
175
377
|
transactionId: string;
|
|
176
378
|
} & ApiRequestOptions;
|
|
177
|
-
declare function getTransaction(args: Args$
|
|
379
|
+
declare function getTransaction(args: Args$b): Promise<Result$1<Transaction>>;
|
|
178
380
|
|
|
179
|
-
|
|
381
|
+
declare const getTransaction$1_getTransaction: typeof getTransaction;
|
|
382
|
+
declare namespace getTransaction$1 {
|
|
383
|
+
export { getTransaction$1_getTransaction as getTransaction };
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
type Args$a = {
|
|
180
387
|
address: string;
|
|
181
388
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
389
|
+
declare const resultSchema: v.ObjectSchema<{
|
|
390
|
+
readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
391
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
392
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
393
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
394
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
395
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
396
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
397
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
398
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
399
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
400
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
401
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
402
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
403
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
404
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
405
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
406
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
407
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
408
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
409
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
410
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
411
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
412
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
413
|
+
readonly tx_result: v.ObjectSchema<{
|
|
414
|
+
readonly hex: v.StringSchema<undefined>;
|
|
415
|
+
readonly repr: v.StringSchema<undefined>;
|
|
416
|
+
}, undefined>;
|
|
417
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
418
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
419
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
420
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
421
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
422
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
423
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
424
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
425
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
426
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
427
|
+
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
428
|
+
readonly contract_call: v.ObjectSchema<{
|
|
429
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
430
|
+
readonly function_name: v.StringSchema<undefined>;
|
|
431
|
+
readonly function_signature: v.StringSchema<undefined>;
|
|
432
|
+
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
433
|
+
readonly hex: v.StringSchema<undefined>;
|
|
434
|
+
readonly repr: v.StringSchema<undefined>;
|
|
435
|
+
readonly name: v.StringSchema<undefined>;
|
|
436
|
+
readonly type: v.StringSchema<undefined>;
|
|
437
|
+
}, undefined>, undefined>;
|
|
438
|
+
}, undefined>;
|
|
439
|
+
}, undefined>, v.ObjectSchema<{
|
|
440
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
441
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
442
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
443
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
444
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
445
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
446
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
447
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
448
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
449
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
450
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
451
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
452
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
453
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
454
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
455
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
456
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
457
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
458
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
459
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
460
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
461
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
462
|
+
readonly tx_result: v.ObjectSchema<{
|
|
463
|
+
readonly hex: v.StringSchema<undefined>;
|
|
464
|
+
readonly repr: v.StringSchema<undefined>;
|
|
465
|
+
}, undefined>;
|
|
466
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
467
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
468
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
469
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
470
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
471
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
472
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
473
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
474
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
475
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
476
|
+
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
477
|
+
readonly smart_contract: v.ObjectSchema<{
|
|
478
|
+
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
479
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
480
|
+
readonly source_code: v.StringSchema<undefined>;
|
|
481
|
+
}, undefined>;
|
|
482
|
+
}, undefined>, v.ObjectSchema<{
|
|
483
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
484
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
485
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
486
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
487
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
488
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
489
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
490
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
491
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
492
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
493
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
494
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
495
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
496
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
497
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
498
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
499
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
500
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
501
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
502
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
503
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
504
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
505
|
+
readonly tx_result: v.ObjectSchema<{
|
|
506
|
+
readonly hex: v.StringSchema<undefined>;
|
|
507
|
+
readonly repr: v.StringSchema<undefined>;
|
|
508
|
+
}, undefined>;
|
|
509
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
510
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
511
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
512
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
513
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
514
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
515
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
516
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
517
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
518
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
519
|
+
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
520
|
+
readonly token_transfer: v.ObjectSchema<{
|
|
521
|
+
readonly recipient_address: v.StringSchema<undefined>;
|
|
522
|
+
readonly amount: v.StringSchema<undefined>;
|
|
523
|
+
readonly memo: v.StringSchema<undefined>;
|
|
524
|
+
}, undefined>;
|
|
525
|
+
}, undefined>], undefined>;
|
|
526
|
+
readonly stx_sent: v.StringSchema<undefined>;
|
|
527
|
+
readonly stx_received: v.StringSchema<undefined>;
|
|
528
|
+
readonly events: v.ObjectSchema<{
|
|
529
|
+
readonly stx: v.ObjectSchema<{
|
|
530
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
531
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
532
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
533
|
+
}, undefined>;
|
|
534
|
+
readonly ft: v.ObjectSchema<{
|
|
535
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
536
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
537
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
538
|
+
}, undefined>;
|
|
539
|
+
readonly nft: v.ObjectSchema<{
|
|
540
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
541
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
542
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
543
|
+
}, undefined>;
|
|
544
|
+
}, undefined>;
|
|
545
|
+
}, undefined>;
|
|
546
|
+
type Result = v.InferOutput<typeof resultSchema>;
|
|
547
|
+
declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
548
|
+
readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
549
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
550
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
551
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
552
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
553
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
554
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
555
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
556
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
557
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
558
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
559
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
560
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
561
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
562
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
563
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
564
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
565
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
566
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
567
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
568
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
569
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
570
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
571
|
+
readonly tx_result: v.ObjectSchema<{
|
|
572
|
+
readonly hex: v.StringSchema<undefined>;
|
|
573
|
+
readonly repr: v.StringSchema<undefined>;
|
|
574
|
+
}, undefined>;
|
|
575
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
576
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
577
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
578
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
579
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
580
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
581
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
582
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
583
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
584
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
585
|
+
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
586
|
+
readonly contract_call: v.ObjectSchema<{
|
|
587
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
588
|
+
readonly function_name: v.StringSchema<undefined>;
|
|
589
|
+
readonly function_signature: v.StringSchema<undefined>;
|
|
590
|
+
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
591
|
+
readonly hex: v.StringSchema<undefined>;
|
|
592
|
+
readonly repr: v.StringSchema<undefined>;
|
|
593
|
+
readonly name: v.StringSchema<undefined>;
|
|
594
|
+
readonly type: v.StringSchema<undefined>;
|
|
595
|
+
}, undefined>, undefined>;
|
|
596
|
+
}, undefined>;
|
|
597
|
+
}, undefined>, v.ObjectSchema<{
|
|
598
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
599
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
600
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
601
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
602
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
603
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
604
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
605
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
606
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
607
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
608
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
609
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
610
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
611
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
612
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
613
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
614
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
615
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
616
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
617
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
618
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
619
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
620
|
+
readonly tx_result: v.ObjectSchema<{
|
|
621
|
+
readonly hex: v.StringSchema<undefined>;
|
|
622
|
+
readonly repr: v.StringSchema<undefined>;
|
|
623
|
+
}, undefined>;
|
|
624
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
625
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
626
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
627
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
628
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
629
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
630
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
631
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
632
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
633
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
634
|
+
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
635
|
+
readonly smart_contract: v.ObjectSchema<{
|
|
636
|
+
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
637
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
638
|
+
readonly source_code: v.StringSchema<undefined>;
|
|
639
|
+
}, undefined>;
|
|
640
|
+
}, undefined>, v.ObjectSchema<{
|
|
641
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
642
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
643
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
644
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
645
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
646
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
647
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
648
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
649
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
650
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
651
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
652
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
653
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
654
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
655
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
656
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
657
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
658
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
659
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
660
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
661
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
662
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
663
|
+
readonly tx_result: v.ObjectSchema<{
|
|
664
|
+
readonly hex: v.StringSchema<undefined>;
|
|
665
|
+
readonly repr: v.StringSchema<undefined>;
|
|
666
|
+
}, undefined>;
|
|
667
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
668
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
669
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
670
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
671
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
672
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
673
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
674
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
675
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
676
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
677
|
+
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
678
|
+
readonly token_transfer: v.ObjectSchema<{
|
|
679
|
+
readonly recipient_address: v.StringSchema<undefined>;
|
|
680
|
+
readonly amount: v.StringSchema<undefined>;
|
|
681
|
+
readonly memo: v.StringSchema<undefined>;
|
|
682
|
+
}, undefined>;
|
|
683
|
+
}, undefined>], undefined>;
|
|
684
|
+
readonly stx_sent: v.StringSchema<undefined>;
|
|
685
|
+
readonly stx_received: v.StringSchema<undefined>;
|
|
686
|
+
readonly events: v.ObjectSchema<{
|
|
687
|
+
readonly stx: v.ObjectSchema<{
|
|
688
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
689
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
690
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
691
|
+
}, undefined>;
|
|
692
|
+
readonly ft: v.ObjectSchema<{
|
|
693
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
694
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
695
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
696
|
+
}, undefined>;
|
|
697
|
+
readonly nft: v.ObjectSchema<{
|
|
698
|
+
readonly transfer: v.NumberSchema<undefined>;
|
|
699
|
+
readonly mint: v.NumberSchema<undefined>;
|
|
700
|
+
readonly burn: v.NumberSchema<undefined>;
|
|
701
|
+
}, undefined>;
|
|
702
|
+
}, undefined>;
|
|
703
|
+
}, undefined>, undefined>;
|
|
704
|
+
type Results$3 = v.InferOutput<typeof resultsSchema$3>;
|
|
182
705
|
declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
183
706
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
184
707
|
readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
@@ -203,7 +726,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
203
726
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
204
727
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
205
728
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
206
|
-
readonly tx_status: v.
|
|
729
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
207
730
|
readonly tx_result: v.ObjectSchema<{
|
|
208
731
|
readonly hex: v.StringSchema<undefined>;
|
|
209
732
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -252,7 +775,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
252
775
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
253
776
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
254
777
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
255
|
-
readonly tx_status: v.
|
|
778
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
256
779
|
readonly tx_result: v.ObjectSchema<{
|
|
257
780
|
readonly hex: v.StringSchema<undefined>;
|
|
258
781
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -295,7 +818,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
295
818
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
296
819
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
297
820
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
298
|
-
readonly tx_status: v.
|
|
821
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
299
822
|
readonly tx_result: v.ObjectSchema<{
|
|
300
823
|
readonly hex: v.StringSchema<undefined>;
|
|
301
824
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -342,7 +865,14 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
342
865
|
readonly total: v.NumberSchema<undefined>;
|
|
343
866
|
}, undefined>;
|
|
344
867
|
type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
|
|
345
|
-
declare function addressTransactions(args: Args$
|
|
868
|
+
declare function addressTransactions(args: Args$a): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
869
|
+
|
|
870
|
+
type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
|
|
871
|
+
type addressTransactions$1_Result = Result;
|
|
872
|
+
declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
|
|
873
|
+
declare namespace addressTransactions$1 {
|
|
874
|
+
export { type addressTransactions$1_AddressTransactionsResponse as AddressTransactionsResponse, type addressTransactions$1_Result as Result, type Results$3 as Results, addressTransactions$1_addressTransactions as addressTransactions };
|
|
875
|
+
}
|
|
346
876
|
|
|
347
877
|
type Options$1 = {
|
|
348
878
|
poolPrincipal: string;
|
|
@@ -351,6 +881,15 @@ type Options$1 = {
|
|
|
351
881
|
limit?: number;
|
|
352
882
|
offset?: number;
|
|
353
883
|
};
|
|
884
|
+
declare const memberSchema: v.ObjectSchema<{
|
|
885
|
+
readonly stacker: v.StringSchema<undefined>;
|
|
886
|
+
readonly pox_addr: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
887
|
+
readonly amount_ustx: v.StringSchema<undefined>;
|
|
888
|
+
readonly burn_block_unlock_height: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
889
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
890
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
891
|
+
}, undefined>;
|
|
892
|
+
type Member = v.InferOutput<typeof memberSchema>;
|
|
354
893
|
declare const membersResponseSchema: v.ObjectSchema<{
|
|
355
894
|
readonly limit: v.NumberSchema<undefined>;
|
|
356
895
|
readonly offset: v.NumberSchema<undefined>;
|
|
@@ -365,29 +904,62 @@ declare const membersResponseSchema: v.ObjectSchema<{
|
|
|
365
904
|
}, undefined>, undefined>;
|
|
366
905
|
}, undefined>;
|
|
367
906
|
type MembersResponse = v.InferOutput<typeof membersResponseSchema>;
|
|
368
|
-
declare function members(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result<MembersResponse>>;
|
|
907
|
+
declare function members(opts: Options$1, apiOpts: ApiRequestOptions): Promise<Result$1<MembersResponse>>;
|
|
369
908
|
|
|
370
|
-
type
|
|
909
|
+
type members$1_Member = Member;
|
|
910
|
+
type members$1_MembersResponse = MembersResponse;
|
|
911
|
+
declare const members$1_memberSchema: typeof memberSchema;
|
|
912
|
+
declare const members$1_members: typeof members;
|
|
913
|
+
declare const members$1_membersResponseSchema: typeof membersResponseSchema;
|
|
914
|
+
declare namespace members$1 {
|
|
915
|
+
export { type members$1_Member as Member, type members$1_MembersResponse as MembersResponse, type Options$1 as Options, members$1_memberSchema as memberSchema, members$1_members as members, members$1_membersResponseSchema as membersResponseSchema };
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
type Args$9 = {
|
|
371
919
|
sender: string;
|
|
372
920
|
arguments: string[];
|
|
373
921
|
contractAddress: string;
|
|
374
922
|
contractName: string;
|
|
375
923
|
functionName: string;
|
|
376
|
-
};
|
|
924
|
+
} & ApiRequestOptions;
|
|
377
925
|
declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
|
|
378
926
|
readonly okay: v.LiteralSchema<true, undefined>;
|
|
927
|
+
/**
|
|
928
|
+
* A Clarity value as a hex-encoded string.
|
|
929
|
+
*/
|
|
379
930
|
readonly result: v.StringSchema<undefined>;
|
|
380
931
|
}, undefined>, v.ObjectSchema<{
|
|
381
932
|
readonly okay: v.LiteralSchema<false, undefined>;
|
|
382
933
|
readonly cause: v.UnknownSchema;
|
|
383
934
|
}, undefined>], undefined>;
|
|
384
935
|
type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
|
|
385
|
-
declare function readOnly(
|
|
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 };
|
|
943
|
+
}
|
|
386
944
|
|
|
387
945
|
type Args$8 = {
|
|
388
946
|
cycleNumber: number;
|
|
389
947
|
signerPublicKey: string;
|
|
390
948
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
949
|
+
declare const stackerInfoSchema: v.ObjectSchema<{
|
|
950
|
+
readonly stacker_address: v.StringSchema<undefined>;
|
|
951
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
952
|
+
readonly pox_address: v.StringSchema<undefined>;
|
|
953
|
+
readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
|
|
954
|
+
}, undefined>;
|
|
955
|
+
type StackerInfo = v.InferOutput<typeof stackerInfoSchema>;
|
|
956
|
+
declare const resultsSchema$2: v.ArraySchema<v.ObjectSchema<{
|
|
957
|
+
readonly stacker_address: v.StringSchema<undefined>;
|
|
958
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
959
|
+
readonly pox_address: v.StringSchema<undefined>;
|
|
960
|
+
readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
|
|
961
|
+
}, undefined>, undefined>;
|
|
962
|
+
type Results$2 = v.InferOutput<typeof resultsSchema$2>;
|
|
391
963
|
declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
392
964
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
393
965
|
readonly stacker_address: v.StringSchema<undefined>;
|
|
@@ -400,11 +972,42 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
400
972
|
readonly total: v.NumberSchema<undefined>;
|
|
401
973
|
}, undefined>;
|
|
402
974
|
type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
|
|
403
|
-
declare function stackersForSignerInCycle(opts: Args$8): Promise<Result<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
975
|
+
declare function stackersForSignerInCycle(opts: Args$8): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
976
|
+
|
|
977
|
+
type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
|
|
978
|
+
type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
|
|
979
|
+
declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
|
|
980
|
+
declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
981
|
+
declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
|
|
982
|
+
declare namespace stackersForSignerInCycle$1 {
|
|
983
|
+
export { type Args$8 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
|
+
}
|
|
404
985
|
|
|
405
986
|
type Args$7 = {
|
|
406
987
|
cycleNumber: number;
|
|
407
988
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
989
|
+
declare const signerSchema: v.ObjectSchema<{
|
|
990
|
+
readonly signing_key: v.StringSchema<undefined>;
|
|
991
|
+
readonly signer_address: v.StringSchema<undefined>;
|
|
992
|
+
readonly weight: v.NumberSchema<undefined>;
|
|
993
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
994
|
+
readonly weight_percent: v.NumberSchema<undefined>;
|
|
995
|
+
readonly stacked_amount_percent: v.NumberSchema<undefined>;
|
|
996
|
+
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
997
|
+
readonly solo_stacker_count: v.NumberSchema<undefined>;
|
|
998
|
+
}, undefined>;
|
|
999
|
+
type Signer = v.InferOutput<typeof signerSchema>;
|
|
1000
|
+
declare const resultsSchema$1: v.ArraySchema<v.ObjectSchema<{
|
|
1001
|
+
readonly signing_key: v.StringSchema<undefined>;
|
|
1002
|
+
readonly signer_address: v.StringSchema<undefined>;
|
|
1003
|
+
readonly weight: v.NumberSchema<undefined>;
|
|
1004
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
1005
|
+
readonly weight_percent: v.NumberSchema<undefined>;
|
|
1006
|
+
readonly stacked_amount_percent: v.NumberSchema<undefined>;
|
|
1007
|
+
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
1008
|
+
readonly solo_stacker_count: v.NumberSchema<undefined>;
|
|
1009
|
+
}, undefined>, undefined>;
|
|
1010
|
+
type Results$1 = v.InferOutput<typeof resultsSchema$1>;
|
|
408
1011
|
declare const signersResponseSchema: v.ObjectSchema<{
|
|
409
1012
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
410
1013
|
readonly signing_key: v.StringSchema<undefined>;
|
|
@@ -421,7 +1024,16 @@ declare const signersResponseSchema: v.ObjectSchema<{
|
|
|
421
1024
|
readonly total: v.NumberSchema<undefined>;
|
|
422
1025
|
}, undefined>;
|
|
423
1026
|
type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
|
|
424
|
-
declare function signersInCycle(args: Args$7): Promise<Result<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1027
|
+
declare function signersInCycle(args: Args$7): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1028
|
+
|
|
1029
|
+
type signersInCycle$1_Signer = Signer;
|
|
1030
|
+
type signersInCycle$1_SignersResponse = SignersResponse;
|
|
1031
|
+
declare const signersInCycle$1_signerSchema: typeof signerSchema;
|
|
1032
|
+
declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
|
|
1033
|
+
declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
|
|
1034
|
+
declare namespace signersInCycle$1 {
|
|
1035
|
+
export { type Args$7 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
|
+
}
|
|
425
1037
|
|
|
426
1038
|
type Args$6 = {
|
|
427
1039
|
/**
|
|
@@ -441,9 +1053,34 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
441
1053
|
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
442
1054
|
}, undefined>;
|
|
443
1055
|
type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
|
|
444
|
-
declare function signerInCycle(args: Args$6): Promise<Result<SignerInCycleResponse>>;
|
|
1056
|
+
declare function signerInCycle(args: Args$6): Promise<Result$1<SignerInCycleResponse>>;
|
|
1057
|
+
|
|
1058
|
+
type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
|
|
1059
|
+
declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
|
|
1060
|
+
declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
|
|
1061
|
+
declare namespace signerInCycle$1 {
|
|
1062
|
+
export { type Args$6 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
|
|
1063
|
+
}
|
|
445
1064
|
|
|
446
1065
|
type Args$5 = ApiRequestOptions & ApiPaginationOptions;
|
|
1066
|
+
declare const cycleInfoSchema: v.ObjectSchema<{
|
|
1067
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
1068
|
+
readonly index_block_hash: v.StringSchema<undefined>;
|
|
1069
|
+
readonly cycle_number: v.NumberSchema<undefined>;
|
|
1070
|
+
readonly total_weight: v.NumberSchema<undefined>;
|
|
1071
|
+
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
1072
|
+
readonly total_signers: v.NumberSchema<undefined>;
|
|
1073
|
+
}, undefined>;
|
|
1074
|
+
type CycleInfo = v.InferOutput<typeof cycleInfoSchema>;
|
|
1075
|
+
declare const resultsSchema: v.ArraySchema<v.ObjectSchema<{
|
|
1076
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
1077
|
+
readonly index_block_hash: v.StringSchema<undefined>;
|
|
1078
|
+
readonly cycle_number: v.NumberSchema<undefined>;
|
|
1079
|
+
readonly total_weight: v.NumberSchema<undefined>;
|
|
1080
|
+
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
1081
|
+
readonly total_signers: v.NumberSchema<undefined>;
|
|
1082
|
+
}, undefined>, undefined>;
|
|
1083
|
+
type Results = v.InferOutput<typeof resultsSchema>;
|
|
447
1084
|
declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
448
1085
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
449
1086
|
readonly block_height: v.NumberSchema<undefined>;
|
|
@@ -458,12 +1095,23 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
|
458
1095
|
readonly total: v.NumberSchema<undefined>;
|
|
459
1096
|
}, undefined>;
|
|
460
1097
|
type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
|
|
461
|
-
declare function cycles(args: Args$5): Promise<Result<CyclesResponse>>;
|
|
1098
|
+
declare function cycles(args: Args$5): Promise<Result$1<CyclesResponse>>;
|
|
1099
|
+
|
|
1100
|
+
type cycles$1_CycleInfo = CycleInfo;
|
|
1101
|
+
type cycles$1_CyclesResponse = CyclesResponse;
|
|
1102
|
+
type cycles$1_Results = Results;
|
|
1103
|
+
declare const cycles$1_cycleInfoSchema: typeof cycleInfoSchema;
|
|
1104
|
+
declare const cycles$1_cycles: typeof cycles;
|
|
1105
|
+
declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
|
|
1106
|
+
declare const cycles$1_resultsSchema: typeof resultsSchema;
|
|
1107
|
+
declare namespace cycles$1 {
|
|
1108
|
+
export { type Args$5 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
|
+
}
|
|
462
1110
|
|
|
463
1111
|
type Args$4 = {
|
|
464
1112
|
cycleNumber: number;
|
|
465
1113
|
} & ApiRequestOptions;
|
|
466
|
-
declare const responseSchema$
|
|
1114
|
+
declare const responseSchema$3: v.ObjectSchema<{
|
|
467
1115
|
readonly block_height: v.NumberSchema<undefined>;
|
|
468
1116
|
readonly index_block_hash: v.StringSchema<undefined>;
|
|
469
1117
|
readonly cycle_number: v.NumberSchema<undefined>;
|
|
@@ -471,8 +1119,13 @@ declare const responseSchema$2: v.ObjectSchema<{
|
|
|
471
1119
|
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
472
1120
|
readonly total_signers: v.NumberSchema<undefined>;
|
|
473
1121
|
}, undefined>;
|
|
474
|
-
type Response$
|
|
475
|
-
declare function cycle(opts: Args$4): Promise<Result<Response$
|
|
1122
|
+
type Response$3 = v.InferOutput<typeof responseSchema$3>;
|
|
1123
|
+
declare function cycle(opts: Args$4): Promise<Result$1<Response$3, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1124
|
+
|
|
1125
|
+
declare const cycle$1_cycle: typeof cycle;
|
|
1126
|
+
declare namespace cycle$1 {
|
|
1127
|
+
export { type Args$4 as Args, type Response$3 as Response, cycle$1_cycle as cycle, responseSchema$3 as responseSchema };
|
|
1128
|
+
}
|
|
476
1129
|
|
|
477
1130
|
type Args$3 = ApiRequestOptions;
|
|
478
1131
|
declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
@@ -528,7 +1181,12 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
|
528
1181
|
}, undefined>, undefined>;
|
|
529
1182
|
}, undefined>;
|
|
530
1183
|
type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
|
|
531
|
-
declare function poxDetails(args: Args$3): Promise<Result<PoxDetailsResponse>>;
|
|
1184
|
+
declare function poxDetails(args: Args$3): Promise<Result$1<PoxDetailsResponse>>;
|
|
1185
|
+
|
|
1186
|
+
declare const poxDetails$1_poxDetails: typeof poxDetails;
|
|
1187
|
+
declare namespace poxDetails$1 {
|
|
1188
|
+
export { poxDetails$1_poxDetails as poxDetails };
|
|
1189
|
+
}
|
|
532
1190
|
|
|
533
1191
|
declare const CoreApiResponseSchema: v.ObjectSchema<{
|
|
534
1192
|
readonly peer_version: v.NumberSchema<undefined>;
|
|
@@ -542,16 +1200,23 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
|
|
|
542
1200
|
readonly stacks_tip_height: v.NumberSchema<undefined>;
|
|
543
1201
|
readonly stacks_tip: v.StringSchema<undefined>;
|
|
544
1202
|
readonly stacks_tip_consensus_hash: v.StringSchema<undefined>;
|
|
545
|
-
readonly unanchored_tip: v.StringSchema<undefined>;
|
|
546
|
-
readonly
|
|
1203
|
+
readonly unanchored_tip: v.NullableSchema<v.StringSchema<undefined>, never>;
|
|
1204
|
+
readonly unanchored_seq: v.NullableSchema<v.StringSchema<undefined>, never>;
|
|
1205
|
+
readonly exit_at_block_height: v.NullableSchema<v.NumberSchema<undefined>, never>;
|
|
547
1206
|
}, undefined>;
|
|
548
1207
|
type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
|
|
549
|
-
declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result<CoreApiResponse>>;
|
|
1208
|
+
declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
|
|
1209
|
+
|
|
1210
|
+
type coreApi$1_CoreApiResponse = CoreApiResponse;
|
|
1211
|
+
declare const coreApi$1_coreApi: typeof coreApi;
|
|
1212
|
+
declare namespace coreApi$1 {
|
|
1213
|
+
export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
|
|
1214
|
+
}
|
|
550
1215
|
|
|
551
1216
|
type Args$2 = {
|
|
552
1217
|
heightOrHash: string | number;
|
|
553
1218
|
} & ApiRequestOptions;
|
|
554
|
-
declare const responseSchema$
|
|
1219
|
+
declare const responseSchema$2: v.ObjectSchema<{
|
|
555
1220
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
556
1221
|
readonly height: v.NumberSchema<undefined>;
|
|
557
1222
|
readonly hash: v.StringSchema<undefined>;
|
|
@@ -572,11 +1237,34 @@ declare const responseSchema$1: v.ObjectSchema<{
|
|
|
572
1237
|
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
573
1238
|
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
574
1239
|
}, undefined>;
|
|
575
|
-
type Response$
|
|
576
|
-
declare function getBlock(opts: Args$2): Promise<Result<Response$
|
|
1240
|
+
type Response$2 = v.InferOutput<typeof responseSchema$2>;
|
|
1241
|
+
declare function getBlock(opts: Args$2): Promise<Result$1<Response$2, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1242
|
+
|
|
1243
|
+
declare const getBlock$1_getBlock: typeof getBlock;
|
|
1244
|
+
declare namespace getBlock$1 {
|
|
1245
|
+
export { type Args$2 as Args, type Response$2 as Response, getBlock$1_getBlock as getBlock, responseSchema$2 as responseSchema };
|
|
1246
|
+
}
|
|
577
1247
|
|
|
578
1248
|
type Args$1 = {
|
|
579
1249
|
principal: string;
|
|
1250
|
+
} & ApiRequestOptions;
|
|
1251
|
+
declare const responseSchema$1: v.ObjectSchema<{
|
|
1252
|
+
readonly last_mempool_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
|
|
1253
|
+
readonly last_executed_tx_nonce: v.NullableSchema<v.NumberSchema<undefined>, never>;
|
|
1254
|
+
readonly possible_next_nonce: v.NumberSchema<undefined>;
|
|
1255
|
+
readonly detected_missing_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1256
|
+
readonly detected_mempool_nonces: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
1257
|
+
}, undefined>;
|
|
1258
|
+
type Response$1 = v.InferOutput<typeof responseSchema$1>;
|
|
1259
|
+
declare function latestNonce(opts: Args$1): Promise<Result$1<Response$1, SafeError<"FetchLatestNonceError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1260
|
+
|
|
1261
|
+
declare const latestNonce$1_latestNonce: typeof latestNonce;
|
|
1262
|
+
declare namespace latestNonce$1 {
|
|
1263
|
+
export { type Args$1 as Args, type Response$1 as Response, latestNonce$1_latestNonce as latestNonce, responseSchema$1 as responseSchema };
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
type Args = {
|
|
1267
|
+
principal: string;
|
|
580
1268
|
unanchored?: boolean;
|
|
581
1269
|
untilBlock?: number;
|
|
582
1270
|
} & ApiRequestOptions;
|
|
@@ -605,11 +1293,115 @@ declare const responseSchema: v.ObjectSchema<{
|
|
|
605
1293
|
}, undefined>, undefined>;
|
|
606
1294
|
}, undefined>;
|
|
607
1295
|
type Response = v.InferOutput<typeof responseSchema>;
|
|
608
|
-
declare function balances(opts: Args
|
|
1296
|
+
declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1297
|
+
|
|
1298
|
+
type balances$1_Args = Args;
|
|
1299
|
+
type balances$1_Response = Response;
|
|
1300
|
+
declare const balances$1_balances: typeof balances;
|
|
1301
|
+
declare const balances$1_responseSchema: typeof responseSchema;
|
|
1302
|
+
declare namespace balances$1 {
|
|
1303
|
+
export { type balances$1_Args as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
|
|
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 };
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
declare const accounts: {
|
|
1349
|
+
balances: typeof balances;
|
|
1350
|
+
latestNonce: typeof latestNonce;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
declare const blocks: {
|
|
1354
|
+
getBlock: typeof getBlock;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
declare const info: {
|
|
1358
|
+
coreApi: typeof coreApi;
|
|
1359
|
+
poxDetails: typeof poxDetails;
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
declare const proofOfTransfer: {
|
|
1363
|
+
cycle: typeof cycle;
|
|
1364
|
+
cycles: typeof cycles;
|
|
1365
|
+
signerInCycle: typeof signerInCycle;
|
|
1366
|
+
signersInCycle: typeof signersInCycle;
|
|
1367
|
+
stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
declare const smartContracts: {
|
|
1371
|
+
readOnly: typeof readOnly;
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
declare const stackingPool: {
|
|
1375
|
+
members: typeof members;
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
declare const transactions: {
|
|
1379
|
+
addressTransactions: typeof addressTransactions;
|
|
1380
|
+
getTransaction: typeof getTransaction;
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
declare const index_accounts: typeof accounts;
|
|
1384
|
+
declare const index_blocks: typeof blocks;
|
|
1385
|
+
declare const index_info: typeof info;
|
|
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 };
|
|
1392
|
+
}
|
|
1393
|
+
|
|
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>>>;
|
|
609
1400
|
|
|
610
1401
|
declare const stacksApi: {
|
|
611
1402
|
accounts: {
|
|
612
1403
|
balances: typeof balances;
|
|
1404
|
+
latestNonce: typeof latestNonce;
|
|
613
1405
|
};
|
|
614
1406
|
blocks: {
|
|
615
1407
|
getBlock: typeof getBlock;
|
|
@@ -637,25 +1429,4 @@ declare const stacksApi: {
|
|
|
637
1429
|
};
|
|
638
1430
|
};
|
|
639
1431
|
|
|
640
|
-
type
|
|
641
|
-
type: "address";
|
|
642
|
-
signerAddress: string;
|
|
643
|
-
} | {
|
|
644
|
-
type: "publicKey";
|
|
645
|
-
signerPublicKey: string;
|
|
646
|
-
};
|
|
647
|
-
type Args = {
|
|
648
|
-
identifier: Identifier;
|
|
649
|
-
} & {
|
|
650
|
-
cycleNumber: number;
|
|
651
|
-
} & ApiRequestOptions;
|
|
652
|
-
/**
|
|
653
|
-
* Return the total locked amount for a signer in a PoX cycle.
|
|
654
|
-
*/
|
|
655
|
-
declare function getSignerStackedAmount(args: Args): Promise<Result<bigint, SafeError<"SignerNotFound" | string>>>;
|
|
656
|
-
|
|
657
|
-
declare const queries: {
|
|
658
|
-
getSignerStackedAmount: typeof getSignerStackedAmount;
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
export { queries, stacksApi };
|
|
1432
|
+
export { type Result$1 as Result, type SafeError, index as StacksApi, callRateLimitedApi, error, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, success };
|