@secretkeylabs/stacks-tools 0.3.0 → 0.4.0-47d10ad
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 +64 -117
- package/dist/index.d.cts +798 -52
- package/dist/index.d.ts +798 -52
- package/dist/index.js +57 -115
- package/package.json +1 -1
package/dist/index.d.ts
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
|
|
|
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
|
+
|
|
174
376
|
type Args$a = {
|
|
175
377
|
transactionId: string;
|
|
176
378
|
} & ApiRequestOptions;
|
|
177
|
-
declare function getTransaction(args: Args$a): Promise<Result<Transaction>>;
|
|
379
|
+
declare function getTransaction(args: Args$a): Promise<Result$1<Transaction>>;
|
|
380
|
+
|
|
381
|
+
declare const getTransaction$1_getTransaction: typeof getTransaction;
|
|
382
|
+
declare namespace getTransaction$1 {
|
|
383
|
+
export { getTransaction$1_getTransaction as getTransaction };
|
|
384
|
+
}
|
|
178
385
|
|
|
179
386
|
type Args$9 = {
|
|
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$9): Promise<Result<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
868
|
+
declare function addressTransactions(args: Args$9): 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,15 +904,24 @@ 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$8 = {
|
|
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>;
|
|
379
927
|
readonly result: v.StringSchema<undefined>;
|
|
@@ -382,12 +930,33 @@ declare const readOnlyResponseSchema: v.VariantSchema<"okay", [v.ObjectSchema<{
|
|
|
382
930
|
readonly cause: v.UnknownSchema;
|
|
383
931
|
}, undefined>], undefined>;
|
|
384
932
|
type ReadOnlyResponse = v.InferOutput<typeof readOnlyResponseSchema>;
|
|
385
|
-
declare function readOnly(
|
|
933
|
+
declare function readOnly(args: Args$8): Promise<Result$1<ReadOnlyResponse>>;
|
|
386
934
|
|
|
387
|
-
type
|
|
935
|
+
type readOnly$1_ReadOnlyResponse = ReadOnlyResponse;
|
|
936
|
+
declare const readOnly$1_readOnly: typeof readOnly;
|
|
937
|
+
declare const readOnly$1_readOnlyResponseSchema: typeof readOnlyResponseSchema;
|
|
938
|
+
declare namespace readOnly$1 {
|
|
939
|
+
export { type Args$8 as Args, type readOnly$1_ReadOnlyResponse as ReadOnlyResponse, readOnly$1_readOnly as readOnly, readOnly$1_readOnlyResponseSchema as readOnlyResponseSchema };
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
type Args$7 = {
|
|
388
943
|
cycleNumber: number;
|
|
389
944
|
signerPublicKey: string;
|
|
390
945
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
946
|
+
declare const stackerInfoSchema: v.ObjectSchema<{
|
|
947
|
+
readonly stacker_address: v.StringSchema<undefined>;
|
|
948
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
949
|
+
readonly pox_address: v.StringSchema<undefined>;
|
|
950
|
+
readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
|
|
951
|
+
}, undefined>;
|
|
952
|
+
type StackerInfo = v.InferOutput<typeof stackerInfoSchema>;
|
|
953
|
+
declare const resultsSchema$2: v.ArraySchema<v.ObjectSchema<{
|
|
954
|
+
readonly stacker_address: v.StringSchema<undefined>;
|
|
955
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
956
|
+
readonly pox_address: v.StringSchema<undefined>;
|
|
957
|
+
readonly stacker_type: v.UnionSchema<[v.LiteralSchema<"pooled", undefined>, v.LiteralSchema<"solo", undefined>], undefined>;
|
|
958
|
+
}, undefined>, undefined>;
|
|
959
|
+
type Results$2 = v.InferOutput<typeof resultsSchema$2>;
|
|
391
960
|
declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
392
961
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
393
962
|
readonly stacker_address: v.StringSchema<undefined>;
|
|
@@ -400,11 +969,42 @@ declare const stackersForSignerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
400
969
|
readonly total: v.NumberSchema<undefined>;
|
|
401
970
|
}, undefined>;
|
|
402
971
|
type StackersForSignerInCycleResponse = v.InferOutput<typeof stackersForSignerInCycleResponseSchema>;
|
|
403
|
-
declare function stackersForSignerInCycle(opts: Args$
|
|
972
|
+
declare function stackersForSignerInCycle(opts: Args$7): Promise<Result$1<StackersForSignerInCycleResponse, SafeError<"FetchStackersForSignerInCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
404
973
|
|
|
405
|
-
type
|
|
974
|
+
type stackersForSignerInCycle$1_StackerInfo = StackerInfo;
|
|
975
|
+
type stackersForSignerInCycle$1_StackersForSignerInCycleResponse = StackersForSignerInCycleResponse;
|
|
976
|
+
declare const stackersForSignerInCycle$1_stackerInfoSchema: typeof stackerInfoSchema;
|
|
977
|
+
declare const stackersForSignerInCycle$1_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
978
|
+
declare const stackersForSignerInCycle$1_stackersForSignerInCycleResponseSchema: typeof stackersForSignerInCycleResponseSchema;
|
|
979
|
+
declare namespace stackersForSignerInCycle$1 {
|
|
980
|
+
export { type Args$7 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 };
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
type Args$6 = {
|
|
406
984
|
cycleNumber: number;
|
|
407
985
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
986
|
+
declare const signerSchema: v.ObjectSchema<{
|
|
987
|
+
readonly signing_key: v.StringSchema<undefined>;
|
|
988
|
+
readonly signer_address: v.StringSchema<undefined>;
|
|
989
|
+
readonly weight: v.NumberSchema<undefined>;
|
|
990
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
991
|
+
readonly weight_percent: v.NumberSchema<undefined>;
|
|
992
|
+
readonly stacked_amount_percent: v.NumberSchema<undefined>;
|
|
993
|
+
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
994
|
+
readonly solo_stacker_count: v.NumberSchema<undefined>;
|
|
995
|
+
}, undefined>;
|
|
996
|
+
type Signer = v.InferOutput<typeof signerSchema>;
|
|
997
|
+
declare const resultsSchema$1: v.ArraySchema<v.ObjectSchema<{
|
|
998
|
+
readonly signing_key: v.StringSchema<undefined>;
|
|
999
|
+
readonly signer_address: v.StringSchema<undefined>;
|
|
1000
|
+
readonly weight: v.NumberSchema<undefined>;
|
|
1001
|
+
readonly stacked_amount: v.StringSchema<undefined>;
|
|
1002
|
+
readonly weight_percent: v.NumberSchema<undefined>;
|
|
1003
|
+
readonly stacked_amount_percent: v.NumberSchema<undefined>;
|
|
1004
|
+
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
1005
|
+
readonly solo_stacker_count: v.NumberSchema<undefined>;
|
|
1006
|
+
}, undefined>, undefined>;
|
|
1007
|
+
type Results$1 = v.InferOutput<typeof resultsSchema$1>;
|
|
408
1008
|
declare const signersResponseSchema: v.ObjectSchema<{
|
|
409
1009
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
410
1010
|
readonly signing_key: v.StringSchema<undefined>;
|
|
@@ -421,9 +1021,18 @@ declare const signersResponseSchema: v.ObjectSchema<{
|
|
|
421
1021
|
readonly total: v.NumberSchema<undefined>;
|
|
422
1022
|
}, undefined>;
|
|
423
1023
|
type SignersResponse = v.InferOutput<typeof signersResponseSchema>;
|
|
424
|
-
declare function signersInCycle(args: Args$
|
|
1024
|
+
declare function signersInCycle(args: Args$6): Promise<Result$1<SignersResponse, SafeError<"FetchSignersError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
425
1025
|
|
|
426
|
-
type
|
|
1026
|
+
type signersInCycle$1_Signer = Signer;
|
|
1027
|
+
type signersInCycle$1_SignersResponse = SignersResponse;
|
|
1028
|
+
declare const signersInCycle$1_signerSchema: typeof signerSchema;
|
|
1029
|
+
declare const signersInCycle$1_signersInCycle: typeof signersInCycle;
|
|
1030
|
+
declare const signersInCycle$1_signersResponseSchema: typeof signersResponseSchema;
|
|
1031
|
+
declare namespace signersInCycle$1 {
|
|
1032
|
+
export { type Args$6 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 };
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
type Args$5 = {
|
|
427
1036
|
/**
|
|
428
1037
|
* The signers public key as a hex string, with or without a '0x' prefix.
|
|
429
1038
|
*/
|
|
@@ -441,9 +1050,34 @@ declare const signerInCycleResponseSchema: v.ObjectSchema<{
|
|
|
441
1050
|
readonly pooled_stacker_count: v.NumberSchema<undefined>;
|
|
442
1051
|
}, undefined>;
|
|
443
1052
|
type SignerInCycleResponse = v.InferOutput<typeof signerInCycleResponseSchema>;
|
|
444
|
-
declare function signerInCycle(args: Args$
|
|
1053
|
+
declare function signerInCycle(args: Args$5): Promise<Result$1<SignerInCycleResponse>>;
|
|
1054
|
+
|
|
1055
|
+
type signerInCycle$1_SignerInCycleResponse = SignerInCycleResponse;
|
|
1056
|
+
declare const signerInCycle$1_signerInCycle: typeof signerInCycle;
|
|
1057
|
+
declare const signerInCycle$1_signerInCycleResponseSchema: typeof signerInCycleResponseSchema;
|
|
1058
|
+
declare namespace signerInCycle$1 {
|
|
1059
|
+
export { type Args$5 as Args, type signerInCycle$1_SignerInCycleResponse as SignerInCycleResponse, signerInCycle$1_signerInCycle as signerInCycle, signerInCycle$1_signerInCycleResponseSchema as signerInCycleResponseSchema };
|
|
1060
|
+
}
|
|
445
1061
|
|
|
446
|
-
type Args$
|
|
1062
|
+
type Args$4 = ApiRequestOptions & ApiPaginationOptions;
|
|
1063
|
+
declare const cycleInfoSchema: v.ObjectSchema<{
|
|
1064
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
1065
|
+
readonly index_block_hash: v.StringSchema<undefined>;
|
|
1066
|
+
readonly cycle_number: v.NumberSchema<undefined>;
|
|
1067
|
+
readonly total_weight: v.NumberSchema<undefined>;
|
|
1068
|
+
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
1069
|
+
readonly total_signers: v.NumberSchema<undefined>;
|
|
1070
|
+
}, undefined>;
|
|
1071
|
+
type CycleInfo = v.InferOutput<typeof cycleInfoSchema>;
|
|
1072
|
+
declare const resultsSchema: v.ArraySchema<v.ObjectSchema<{
|
|
1073
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
1074
|
+
readonly index_block_hash: v.StringSchema<undefined>;
|
|
1075
|
+
readonly cycle_number: v.NumberSchema<undefined>;
|
|
1076
|
+
readonly total_weight: v.NumberSchema<undefined>;
|
|
1077
|
+
readonly total_stacked_amount: v.StringSchema<undefined>;
|
|
1078
|
+
readonly total_signers: v.NumberSchema<undefined>;
|
|
1079
|
+
}, undefined>, undefined>;
|
|
1080
|
+
type Results = v.InferOutput<typeof resultsSchema>;
|
|
447
1081
|
declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
448
1082
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
449
1083
|
readonly block_height: v.NumberSchema<undefined>;
|
|
@@ -458,9 +1092,20 @@ declare const cyclesResponseSchema: v.ObjectSchema<{
|
|
|
458
1092
|
readonly total: v.NumberSchema<undefined>;
|
|
459
1093
|
}, undefined>;
|
|
460
1094
|
type CyclesResponse = v.InferOutput<typeof cyclesResponseSchema>;
|
|
461
|
-
declare function cycles(args: Args$
|
|
1095
|
+
declare function cycles(args: Args$4): Promise<Result$1<CyclesResponse>>;
|
|
1096
|
+
|
|
1097
|
+
type cycles$1_CycleInfo = CycleInfo;
|
|
1098
|
+
type cycles$1_CyclesResponse = CyclesResponse;
|
|
1099
|
+
type cycles$1_Results = Results;
|
|
1100
|
+
declare const cycles$1_cycleInfoSchema: typeof cycleInfoSchema;
|
|
1101
|
+
declare const cycles$1_cycles: typeof cycles;
|
|
1102
|
+
declare const cycles$1_cyclesResponseSchema: typeof cyclesResponseSchema;
|
|
1103
|
+
declare const cycles$1_resultsSchema: typeof resultsSchema;
|
|
1104
|
+
declare namespace cycles$1 {
|
|
1105
|
+
export { type Args$4 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 };
|
|
1106
|
+
}
|
|
462
1107
|
|
|
463
|
-
type Args$
|
|
1108
|
+
type Args$3 = {
|
|
464
1109
|
cycleNumber: number;
|
|
465
1110
|
} & ApiRequestOptions;
|
|
466
1111
|
declare const responseSchema$2: v.ObjectSchema<{
|
|
@@ -472,9 +1117,14 @@ declare const responseSchema$2: v.ObjectSchema<{
|
|
|
472
1117
|
readonly total_signers: v.NumberSchema<undefined>;
|
|
473
1118
|
}, undefined>;
|
|
474
1119
|
type Response$2 = v.InferOutput<typeof responseSchema$2>;
|
|
475
|
-
declare function cycle(opts: Args$
|
|
1120
|
+
declare function cycle(opts: Args$3): Promise<Result$1<Response$2, SafeError<"FetchCycleError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1121
|
+
|
|
1122
|
+
declare const cycle$1_cycle: typeof cycle;
|
|
1123
|
+
declare namespace cycle$1 {
|
|
1124
|
+
export { type Args$3 as Args, type Response$2 as Response, cycle$1_cycle as cycle, responseSchema$2 as responseSchema };
|
|
1125
|
+
}
|
|
476
1126
|
|
|
477
|
-
type Args$
|
|
1127
|
+
type Args$2 = ApiRequestOptions;
|
|
478
1128
|
declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
479
1129
|
readonly contract_id: v.StringSchema<undefined>;
|
|
480
1130
|
readonly pox_activation_threshold_ustx: v.NumberSchema<undefined>;
|
|
@@ -528,7 +1178,12 @@ declare const poxDetailsResponseSchema: v.ObjectSchema<{
|
|
|
528
1178
|
}, undefined>, undefined>;
|
|
529
1179
|
}, undefined>;
|
|
530
1180
|
type PoxDetailsResponse = v.InferOutput<typeof poxDetailsResponseSchema>;
|
|
531
|
-
declare function poxDetails(args: Args$
|
|
1181
|
+
declare function poxDetails(args: Args$2): Promise<Result$1<PoxDetailsResponse>>;
|
|
1182
|
+
|
|
1183
|
+
declare const poxDetails$1_poxDetails: typeof poxDetails;
|
|
1184
|
+
declare namespace poxDetails$1 {
|
|
1185
|
+
export { poxDetails$1_poxDetails as poxDetails };
|
|
1186
|
+
}
|
|
532
1187
|
|
|
533
1188
|
declare const CoreApiResponseSchema: v.ObjectSchema<{
|
|
534
1189
|
readonly peer_version: v.NumberSchema<undefined>;
|
|
@@ -546,9 +1201,15 @@ declare const CoreApiResponseSchema: v.ObjectSchema<{
|
|
|
546
1201
|
readonly exit_at_block_height: v.NumberSchema<undefined>;
|
|
547
1202
|
}, undefined>;
|
|
548
1203
|
type CoreApiResponse = v.InferOutput<typeof CoreApiResponseSchema>;
|
|
549
|
-
declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result<CoreApiResponse>>;
|
|
1204
|
+
declare function coreApi(apiOpts: ApiRequestOptions): Promise<Result$1<CoreApiResponse>>;
|
|
1205
|
+
|
|
1206
|
+
type coreApi$1_CoreApiResponse = CoreApiResponse;
|
|
1207
|
+
declare const coreApi$1_coreApi: typeof coreApi;
|
|
1208
|
+
declare namespace coreApi$1 {
|
|
1209
|
+
export { type coreApi$1_CoreApiResponse as CoreApiResponse, coreApi$1_coreApi as coreApi };
|
|
1210
|
+
}
|
|
550
1211
|
|
|
551
|
-
type Args$
|
|
1212
|
+
type Args$1 = {
|
|
552
1213
|
heightOrHash: string | number;
|
|
553
1214
|
} & ApiRequestOptions;
|
|
554
1215
|
declare const responseSchema$1: v.ObjectSchema<{
|
|
@@ -573,9 +1234,14 @@ declare const responseSchema$1: v.ObjectSchema<{
|
|
|
573
1234
|
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
574
1235
|
}, undefined>;
|
|
575
1236
|
type Response$1 = v.InferOutput<typeof responseSchema$1>;
|
|
576
|
-
declare function getBlock(opts: Args$
|
|
1237
|
+
declare function getBlock(opts: Args$1): Promise<Result$1<Response$1, SafeError<"FetchBlockError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
577
1238
|
|
|
578
|
-
|
|
1239
|
+
declare const getBlock$1_getBlock: typeof getBlock;
|
|
1240
|
+
declare namespace getBlock$1 {
|
|
1241
|
+
export { type Args$1 as Args, type Response$1 as Response, getBlock$1_getBlock as getBlock, responseSchema$1 as responseSchema };
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
type Args = {
|
|
579
1245
|
principal: string;
|
|
580
1246
|
unanchored?: boolean;
|
|
581
1247
|
untilBlock?: number;
|
|
@@ -605,7 +1271,108 @@ declare const responseSchema: v.ObjectSchema<{
|
|
|
605
1271
|
}, undefined>, undefined>;
|
|
606
1272
|
}, undefined>;
|
|
607
1273
|
type Response = v.InferOutput<typeof responseSchema>;
|
|
608
|
-
declare function balances(opts: Args
|
|
1274
|
+
declare function balances(opts: Args): Promise<Result$1<Response, SafeError<"FetchBalancesError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
1275
|
+
|
|
1276
|
+
type balances$1_Args = Args;
|
|
1277
|
+
type balances$1_Response = Response;
|
|
1278
|
+
declare const balances$1_balances: typeof balances;
|
|
1279
|
+
declare const balances$1_responseSchema: typeof responseSchema;
|
|
1280
|
+
declare namespace balances$1 {
|
|
1281
|
+
export { type balances$1_Args as Args, type balances$1_Response as Response, balances$1_balances as balances, balances$1_responseSchema as responseSchema };
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
declare const index$7_balances: typeof balances;
|
|
1285
|
+
declare namespace index$7 {
|
|
1286
|
+
export { balances$1 as Balances, index$7_balances as balances };
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
declare const index$6_getBlock: typeof getBlock;
|
|
1290
|
+
declare namespace index$6 {
|
|
1291
|
+
export { getBlock$1 as GetBlock, index$6_getBlock as getBlock };
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
declare const index$5_coreApi: typeof coreApi;
|
|
1295
|
+
declare const index$5_poxDetails: typeof poxDetails;
|
|
1296
|
+
declare namespace index$5 {
|
|
1297
|
+
export { coreApi$1 as CoreApi, poxDetails$1 as PoxDetails, index$5_coreApi as coreApi, index$5_poxDetails as poxDetails };
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
declare const index$4_cycle: typeof cycle;
|
|
1301
|
+
declare const index$4_cycles: typeof cycles;
|
|
1302
|
+
declare const index$4_signerInCycle: typeof signerInCycle;
|
|
1303
|
+
declare const index$4_signersInCycle: typeof signersInCycle;
|
|
1304
|
+
declare const index$4_stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1305
|
+
declare namespace index$4 {
|
|
1306
|
+
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 };
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
declare const index$3_readOnly: typeof readOnly;
|
|
1310
|
+
declare namespace index$3 {
|
|
1311
|
+
export { readOnly$1 as ReadOnly, index$3_readOnly as readOnly };
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
declare const index$2_members: typeof members;
|
|
1315
|
+
declare namespace index$2 {
|
|
1316
|
+
export { members$1 as Members, index$2_members as members };
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
declare const index$1_addressTransactions: typeof addressTransactions;
|
|
1320
|
+
declare const index$1_getTransaction: typeof getTransaction;
|
|
1321
|
+
declare namespace index$1 {
|
|
1322
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
declare const accounts: {
|
|
1326
|
+
balances: typeof balances;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
declare const blocks: {
|
|
1330
|
+
getBlock: typeof getBlock;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
declare const info: {
|
|
1334
|
+
coreApi: typeof coreApi;
|
|
1335
|
+
poxDetails: typeof poxDetails;
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
declare const proofOfTransfer: {
|
|
1339
|
+
cycle: typeof cycle;
|
|
1340
|
+
cycles: typeof cycles;
|
|
1341
|
+
signerInCycle: typeof signerInCycle;
|
|
1342
|
+
signersInCycle: typeof signersInCycle;
|
|
1343
|
+
stackersForSignerInCycle: typeof stackersForSignerInCycle;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
declare const smartContracts: {
|
|
1347
|
+
readOnly: typeof readOnly;
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
declare const stackingPool: {
|
|
1351
|
+
members: typeof members;
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
declare const transactions: {
|
|
1355
|
+
addressTransactions: typeof addressTransactions;
|
|
1356
|
+
getTransaction: typeof getTransaction;
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
declare const index_accounts: typeof accounts;
|
|
1360
|
+
declare const index_blocks: typeof blocks;
|
|
1361
|
+
declare const index_info: typeof info;
|
|
1362
|
+
declare const index_proofOfTransfer: typeof proofOfTransfer;
|
|
1363
|
+
declare const index_smartContracts: typeof smartContracts;
|
|
1364
|
+
declare const index_stackingPool: typeof stackingPool;
|
|
1365
|
+
declare const index_transactions: typeof transactions;
|
|
1366
|
+
declare namespace index {
|
|
1367
|
+
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 };
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
type Options = {
|
|
1371
|
+
startingDelay?: number;
|
|
1372
|
+
numOfAttempts?: number;
|
|
1373
|
+
};
|
|
1374
|
+
declare function callRateLimitedApi<T>(fn: () => Promise<T>, options?: Options): Promise<T>;
|
|
1375
|
+
declare function safeCallRateLimitedApi<T>(fn: () => Promise<Result$1<T>>, options?: Options): Promise<Result$1<T, SafeError<"MaxRetriesExceeded" | string>>>;
|
|
609
1376
|
|
|
610
1377
|
declare const stacksApi: {
|
|
611
1378
|
accounts: {
|
|
@@ -637,25 +1404,4 @@ declare const stacksApi: {
|
|
|
637
1404
|
};
|
|
638
1405
|
};
|
|
639
1406
|
|
|
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 };
|
|
1407
|
+
export { type Result$1 as Result, type SafeError, index as StacksApi, callRateLimitedApi, error, safeCall, safeCallRateLimitedApi, safePromise, stacksApi, success };
|