@secretkeylabs/stacks-tools 0.4.0-afcaa14 → 0.4.0-f239728
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 +5 -1
- package/dist/index.d.cts +207 -13
- package/dist/index.d.ts +207 -13
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -794,7 +794,11 @@ var baseTransactionSchema = v13.object({
|
|
|
794
794
|
parent_burn_block_time_iso: v13.string(),
|
|
795
795
|
canonical: v13.boolean(),
|
|
796
796
|
tx_index: v13.number(),
|
|
797
|
-
tx_status: v13.
|
|
797
|
+
tx_status: v13.union([
|
|
798
|
+
v13.literal("success"),
|
|
799
|
+
v13.literal("abort_by_response"),
|
|
800
|
+
v13.literal("abort_by_post_condition")
|
|
801
|
+
]),
|
|
798
802
|
tx_result: v13.object({
|
|
799
803
|
hex: v13.string(),
|
|
800
804
|
repr: v13.string()
|
package/dist/index.d.cts
CHANGED
|
@@ -30,6 +30,188 @@ type ApiPaginationOptions = {
|
|
|
30
30
|
offset?: number;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
declare const baseTransactionSchema: v.ObjectSchema<{
|
|
34
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
35
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
36
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
37
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
38
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
39
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
40
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
41
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
42
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
43
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
44
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
45
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
46
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
47
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
48
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
49
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
50
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
51
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
52
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
53
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
54
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
55
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
56
|
+
readonly tx_result: v.ObjectSchema<{
|
|
57
|
+
readonly hex: v.StringSchema<undefined>;
|
|
58
|
+
readonly repr: v.StringSchema<undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
61
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
62
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
63
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
64
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
65
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
66
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
67
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
68
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
69
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
declare const contractCallTransactionSchema: v.ObjectSchema<{
|
|
72
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
73
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
74
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
75
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
76
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
77
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
78
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
79
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
80
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
81
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
82
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
83
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
84
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
85
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
86
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
87
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
88
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
89
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
90
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
91
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
92
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
93
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
94
|
+
readonly tx_result: v.ObjectSchema<{
|
|
95
|
+
readonly hex: v.StringSchema<undefined>;
|
|
96
|
+
readonly repr: v.StringSchema<undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
99
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
100
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
101
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
102
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
103
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
104
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
105
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
106
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
107
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
108
|
+
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
109
|
+
readonly contract_call: v.ObjectSchema<{
|
|
110
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
111
|
+
readonly function_name: v.StringSchema<undefined>;
|
|
112
|
+
readonly function_signature: v.StringSchema<undefined>;
|
|
113
|
+
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
114
|
+
readonly hex: v.StringSchema<undefined>;
|
|
115
|
+
readonly repr: v.StringSchema<undefined>;
|
|
116
|
+
readonly name: v.StringSchema<undefined>;
|
|
117
|
+
readonly type: v.StringSchema<undefined>;
|
|
118
|
+
}, undefined>, undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
|
|
122
|
+
declare const smartContractTransactionSchema: v.ObjectSchema<{
|
|
123
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
124
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
125
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
126
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
127
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
128
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
129
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
130
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
131
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
132
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
133
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
134
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
135
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
136
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
137
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
138
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
139
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
140
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
141
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
142
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
143
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
144
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
145
|
+
readonly tx_result: v.ObjectSchema<{
|
|
146
|
+
readonly hex: v.StringSchema<undefined>;
|
|
147
|
+
readonly repr: v.StringSchema<undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
150
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
151
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
152
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
153
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
154
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
155
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
156
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
157
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
158
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
159
|
+
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
160
|
+
readonly smart_contract: v.ObjectSchema<{
|
|
161
|
+
/**
|
|
162
|
+
* NOTE: The types may be wrong, not sure what type of value is used when
|
|
163
|
+
* the version is not `null`.
|
|
164
|
+
*/
|
|
165
|
+
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
166
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
167
|
+
readonly source_code: v.StringSchema<undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
}, undefined>;
|
|
170
|
+
type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
|
|
171
|
+
declare const tokenTransferSchema: v.ObjectSchema<{
|
|
172
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
173
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
174
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
175
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
176
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
177
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
178
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
179
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
180
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
181
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
182
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
183
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
184
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
185
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
186
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
187
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
188
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
189
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
190
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
191
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
192
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
193
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
194
|
+
readonly tx_result: v.ObjectSchema<{
|
|
195
|
+
readonly hex: v.StringSchema<undefined>;
|
|
196
|
+
readonly repr: v.StringSchema<undefined>;
|
|
197
|
+
}, undefined>;
|
|
198
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
199
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
200
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
201
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
202
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
203
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
204
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
205
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
206
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
207
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
208
|
+
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
209
|
+
readonly token_transfer: v.ObjectSchema<{
|
|
210
|
+
readonly recipient_address: v.StringSchema<undefined>;
|
|
211
|
+
readonly amount: v.StringSchema<undefined>;
|
|
212
|
+
readonly memo: v.StringSchema<undefined>;
|
|
213
|
+
}, undefined>;
|
|
214
|
+
}, undefined>;
|
|
33
215
|
/**
|
|
34
216
|
* Incomplete schema of some transaction types.
|
|
35
217
|
*/
|
|
@@ -55,7 +237,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
55
237
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
56
238
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
57
239
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
58
|
-
readonly tx_status: v.
|
|
240
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
59
241
|
readonly tx_result: v.ObjectSchema<{
|
|
60
242
|
readonly hex: v.StringSchema<undefined>;
|
|
61
243
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -104,7 +286,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
104
286
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
105
287
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
106
288
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
107
|
-
readonly tx_status: v.
|
|
289
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
108
290
|
readonly tx_result: v.ObjectSchema<{
|
|
109
291
|
readonly hex: v.StringSchema<undefined>;
|
|
110
292
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -151,7 +333,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
151
333
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
152
334
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
153
335
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
154
|
-
readonly tx_status: v.
|
|
336
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
155
337
|
readonly tx_result: v.ObjectSchema<{
|
|
156
338
|
readonly hex: v.StringSchema<undefined>;
|
|
157
339
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -175,6 +357,18 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
175
357
|
}, undefined>], undefined>;
|
|
176
358
|
type Transaction = v.InferOutput<typeof transactionSchema>;
|
|
177
359
|
|
|
360
|
+
type schemas_ContractCallTransaction = ContractCallTransaction;
|
|
361
|
+
type schemas_SmartContractTransaction = SmartContractTransaction;
|
|
362
|
+
type schemas_Transaction = Transaction;
|
|
363
|
+
declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
|
|
364
|
+
declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
|
|
365
|
+
declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
|
|
366
|
+
declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
|
|
367
|
+
declare const schemas_transactionSchema: typeof transactionSchema;
|
|
368
|
+
declare namespace schemas {
|
|
369
|
+
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 };
|
|
370
|
+
}
|
|
371
|
+
|
|
178
372
|
type Args$9 = {
|
|
179
373
|
transactionId: string;
|
|
180
374
|
} & ApiRequestOptions;
|
|
@@ -211,7 +405,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
211
405
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
212
406
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
213
407
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
214
|
-
readonly tx_status: v.
|
|
408
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
215
409
|
readonly tx_result: v.ObjectSchema<{
|
|
216
410
|
readonly hex: v.StringSchema<undefined>;
|
|
217
411
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -260,7 +454,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
260
454
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
261
455
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
262
456
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
263
|
-
readonly tx_status: v.
|
|
457
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
264
458
|
readonly tx_result: v.ObjectSchema<{
|
|
265
459
|
readonly hex: v.StringSchema<undefined>;
|
|
266
460
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -303,7 +497,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
303
497
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
304
498
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
305
499
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
306
|
-
readonly tx_status: v.
|
|
500
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
307
501
|
readonly tx_result: v.ObjectSchema<{
|
|
308
502
|
readonly hex: v.StringSchema<undefined>;
|
|
309
503
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -369,7 +563,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
369
563
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
370
564
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
371
565
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
372
|
-
readonly tx_status: v.
|
|
566
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
373
567
|
readonly tx_result: v.ObjectSchema<{
|
|
374
568
|
readonly hex: v.StringSchema<undefined>;
|
|
375
569
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -418,7 +612,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
418
612
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
419
613
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
420
614
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
421
|
-
readonly tx_status: v.
|
|
615
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
422
616
|
readonly tx_result: v.ObjectSchema<{
|
|
423
617
|
readonly hex: v.StringSchema<undefined>;
|
|
424
618
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -461,7 +655,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
461
655
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
462
656
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
463
657
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
464
|
-
readonly tx_status: v.
|
|
658
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
465
659
|
readonly tx_result: v.ObjectSchema<{
|
|
466
660
|
readonly hex: v.StringSchema<undefined>;
|
|
467
661
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -528,7 +722,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
528
722
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
529
723
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
530
724
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
531
|
-
readonly tx_status: v.
|
|
725
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
532
726
|
readonly tx_result: v.ObjectSchema<{
|
|
533
727
|
readonly hex: v.StringSchema<undefined>;
|
|
534
728
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -577,7 +771,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
577
771
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
578
772
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
579
773
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
580
|
-
readonly tx_status: v.
|
|
774
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
581
775
|
readonly tx_result: v.ObjectSchema<{
|
|
582
776
|
readonly hex: v.StringSchema<undefined>;
|
|
583
777
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -620,7 +814,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
620
814
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
621
815
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
622
816
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
623
|
-
readonly tx_status: v.
|
|
817
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
624
818
|
readonly tx_result: v.ObjectSchema<{
|
|
625
819
|
readonly hex: v.StringSchema<undefined>;
|
|
626
820
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -1121,7 +1315,7 @@ declare namespace index$2 {
|
|
|
1121
1315
|
declare const index$1_addressTransactions: typeof addressTransactions;
|
|
1122
1316
|
declare const index$1_getTransaction: typeof getTransaction;
|
|
1123
1317
|
declare namespace index$1 {
|
|
1124
|
-
export { addressTransactions$1 as AddressTransactions, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1318
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1125
1319
|
}
|
|
1126
1320
|
|
|
1127
1321
|
declare const accounts: {
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,188 @@ type ApiPaginationOptions = {
|
|
|
30
30
|
offset?: number;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
declare const baseTransactionSchema: v.ObjectSchema<{
|
|
34
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
35
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
36
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
37
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
38
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
39
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
40
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
41
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
42
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
43
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
44
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
45
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
46
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
47
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
48
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
49
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
50
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
51
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
52
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
53
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
54
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
55
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
56
|
+
readonly tx_result: v.ObjectSchema<{
|
|
57
|
+
readonly hex: v.StringSchema<undefined>;
|
|
58
|
+
readonly repr: v.StringSchema<undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
61
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
62
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
63
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
64
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
65
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
66
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
67
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
68
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
69
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
declare const contractCallTransactionSchema: v.ObjectSchema<{
|
|
72
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
73
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
74
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
75
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
76
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
77
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
78
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
79
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
80
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
81
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
82
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
83
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
84
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
85
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
86
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
87
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
88
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
89
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
90
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
91
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
92
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
93
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
94
|
+
readonly tx_result: v.ObjectSchema<{
|
|
95
|
+
readonly hex: v.StringSchema<undefined>;
|
|
96
|
+
readonly repr: v.StringSchema<undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
99
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
100
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
101
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
102
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
103
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
104
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
105
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
106
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
107
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
108
|
+
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
109
|
+
readonly contract_call: v.ObjectSchema<{
|
|
110
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
111
|
+
readonly function_name: v.StringSchema<undefined>;
|
|
112
|
+
readonly function_signature: v.StringSchema<undefined>;
|
|
113
|
+
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
114
|
+
readonly hex: v.StringSchema<undefined>;
|
|
115
|
+
readonly repr: v.StringSchema<undefined>;
|
|
116
|
+
readonly name: v.StringSchema<undefined>;
|
|
117
|
+
readonly type: v.StringSchema<undefined>;
|
|
118
|
+
}, undefined>, undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
type ContractCallTransaction = v.InferOutput<typeof contractCallTransactionSchema>;
|
|
122
|
+
declare const smartContractTransactionSchema: v.ObjectSchema<{
|
|
123
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
124
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
125
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
126
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
127
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
128
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
129
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
130
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
131
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
132
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
133
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
134
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
135
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
136
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
137
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
138
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
139
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
140
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
141
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
142
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
143
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
144
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
145
|
+
readonly tx_result: v.ObjectSchema<{
|
|
146
|
+
readonly hex: v.StringSchema<undefined>;
|
|
147
|
+
readonly repr: v.StringSchema<undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
150
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
151
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
152
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
153
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
154
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
155
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
156
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
157
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
158
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
159
|
+
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
160
|
+
readonly smart_contract: v.ObjectSchema<{
|
|
161
|
+
/**
|
|
162
|
+
* NOTE: The types may be wrong, not sure what type of value is used when
|
|
163
|
+
* the version is not `null`.
|
|
164
|
+
*/
|
|
165
|
+
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
166
|
+
readonly contract_id: v.StringSchema<undefined>;
|
|
167
|
+
readonly source_code: v.StringSchema<undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
}, undefined>;
|
|
170
|
+
type SmartContractTransaction = v.InferOutput<typeof smartContractTransactionSchema>;
|
|
171
|
+
declare const tokenTransferSchema: v.ObjectSchema<{
|
|
172
|
+
readonly tx_id: v.StringSchema<undefined>;
|
|
173
|
+
readonly nonce: v.NumberSchema<undefined>;
|
|
174
|
+
readonly fee_rate: v.StringSchema<undefined>;
|
|
175
|
+
readonly sender_address: v.StringSchema<undefined>;
|
|
176
|
+
readonly sponsored: v.BooleanSchema<undefined>;
|
|
177
|
+
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
178
|
+
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
179
|
+
readonly anchor_mode: v.StringSchema<undefined>;
|
|
180
|
+
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
181
|
+
readonly block_hash: v.StringSchema<undefined>;
|
|
182
|
+
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
183
|
+
readonly block_height: v.NumberSchema<undefined>;
|
|
184
|
+
readonly block_time: v.NumberSchema<undefined>;
|
|
185
|
+
readonly block_time_iso: v.StringSchema<undefined>;
|
|
186
|
+
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
187
|
+
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
188
|
+
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
189
|
+
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
190
|
+
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
191
|
+
readonly canonical: v.BooleanSchema<undefined>;
|
|
192
|
+
readonly tx_index: v.NumberSchema<undefined>;
|
|
193
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
194
|
+
readonly tx_result: v.ObjectSchema<{
|
|
195
|
+
readonly hex: v.StringSchema<undefined>;
|
|
196
|
+
readonly repr: v.StringSchema<undefined>;
|
|
197
|
+
}, undefined>;
|
|
198
|
+
readonly microblock_hash: v.StringSchema<undefined>;
|
|
199
|
+
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
200
|
+
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
201
|
+
readonly event_count: v.NumberSchema<undefined>;
|
|
202
|
+
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
203
|
+
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
204
|
+
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
205
|
+
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
206
|
+
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
207
|
+
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
208
|
+
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
209
|
+
readonly token_transfer: v.ObjectSchema<{
|
|
210
|
+
readonly recipient_address: v.StringSchema<undefined>;
|
|
211
|
+
readonly amount: v.StringSchema<undefined>;
|
|
212
|
+
readonly memo: v.StringSchema<undefined>;
|
|
213
|
+
}, undefined>;
|
|
214
|
+
}, undefined>;
|
|
33
215
|
/**
|
|
34
216
|
* Incomplete schema of some transaction types.
|
|
35
217
|
*/
|
|
@@ -55,7 +237,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
55
237
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
56
238
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
57
239
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
58
|
-
readonly tx_status: v.
|
|
240
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
59
241
|
readonly tx_result: v.ObjectSchema<{
|
|
60
242
|
readonly hex: v.StringSchema<undefined>;
|
|
61
243
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -104,7 +286,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
104
286
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
105
287
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
106
288
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
107
|
-
readonly tx_status: v.
|
|
289
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
108
290
|
readonly tx_result: v.ObjectSchema<{
|
|
109
291
|
readonly hex: v.StringSchema<undefined>;
|
|
110
292
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -151,7 +333,7 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
151
333
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
152
334
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
153
335
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
154
|
-
readonly tx_status: v.
|
|
336
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
155
337
|
readonly tx_result: v.ObjectSchema<{
|
|
156
338
|
readonly hex: v.StringSchema<undefined>;
|
|
157
339
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -175,6 +357,18 @@ declare const transactionSchema: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
|
175
357
|
}, undefined>], undefined>;
|
|
176
358
|
type Transaction = v.InferOutput<typeof transactionSchema>;
|
|
177
359
|
|
|
360
|
+
type schemas_ContractCallTransaction = ContractCallTransaction;
|
|
361
|
+
type schemas_SmartContractTransaction = SmartContractTransaction;
|
|
362
|
+
type schemas_Transaction = Transaction;
|
|
363
|
+
declare const schemas_baseTransactionSchema: typeof baseTransactionSchema;
|
|
364
|
+
declare const schemas_contractCallTransactionSchema: typeof contractCallTransactionSchema;
|
|
365
|
+
declare const schemas_smartContractTransactionSchema: typeof smartContractTransactionSchema;
|
|
366
|
+
declare const schemas_tokenTransferSchema: typeof tokenTransferSchema;
|
|
367
|
+
declare const schemas_transactionSchema: typeof transactionSchema;
|
|
368
|
+
declare namespace schemas {
|
|
369
|
+
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 };
|
|
370
|
+
}
|
|
371
|
+
|
|
178
372
|
type Args$9 = {
|
|
179
373
|
transactionId: string;
|
|
180
374
|
} & ApiRequestOptions;
|
|
@@ -211,7 +405,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
211
405
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
212
406
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
213
407
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
214
|
-
readonly tx_status: v.
|
|
408
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
215
409
|
readonly tx_result: v.ObjectSchema<{
|
|
216
410
|
readonly hex: v.StringSchema<undefined>;
|
|
217
411
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -260,7 +454,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
260
454
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
261
455
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
262
456
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
263
|
-
readonly tx_status: v.
|
|
457
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
264
458
|
readonly tx_result: v.ObjectSchema<{
|
|
265
459
|
readonly hex: v.StringSchema<undefined>;
|
|
266
460
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -303,7 +497,7 @@ declare const resultSchema: v.ObjectSchema<{
|
|
|
303
497
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
304
498
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
305
499
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
306
|
-
readonly tx_status: v.
|
|
500
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
307
501
|
readonly tx_result: v.ObjectSchema<{
|
|
308
502
|
readonly hex: v.StringSchema<undefined>;
|
|
309
503
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -369,7 +563,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
369
563
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
370
564
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
371
565
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
372
|
-
readonly tx_status: v.
|
|
566
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
373
567
|
readonly tx_result: v.ObjectSchema<{
|
|
374
568
|
readonly hex: v.StringSchema<undefined>;
|
|
375
569
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -418,7 +612,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
418
612
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
419
613
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
420
614
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
421
|
-
readonly tx_status: v.
|
|
615
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
422
616
|
readonly tx_result: v.ObjectSchema<{
|
|
423
617
|
readonly hex: v.StringSchema<undefined>;
|
|
424
618
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -461,7 +655,7 @@ declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
|
461
655
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
462
656
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
463
657
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
464
|
-
readonly tx_status: v.
|
|
658
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
465
659
|
readonly tx_result: v.ObjectSchema<{
|
|
466
660
|
readonly hex: v.StringSchema<undefined>;
|
|
467
661
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -528,7 +722,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
528
722
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
529
723
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
530
724
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
531
|
-
readonly tx_status: v.
|
|
725
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
532
726
|
readonly tx_result: v.ObjectSchema<{
|
|
533
727
|
readonly hex: v.StringSchema<undefined>;
|
|
534
728
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -577,7 +771,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
577
771
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
578
772
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
579
773
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
580
|
-
readonly tx_status: v.
|
|
774
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
581
775
|
readonly tx_result: v.ObjectSchema<{
|
|
582
776
|
readonly hex: v.StringSchema<undefined>;
|
|
583
777
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -620,7 +814,7 @@ declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
|
620
814
|
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
621
815
|
readonly canonical: v.BooleanSchema<undefined>;
|
|
622
816
|
readonly tx_index: v.NumberSchema<undefined>;
|
|
623
|
-
readonly tx_status: v.
|
|
817
|
+
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
624
818
|
readonly tx_result: v.ObjectSchema<{
|
|
625
819
|
readonly hex: v.StringSchema<undefined>;
|
|
626
820
|
readonly repr: v.StringSchema<undefined>;
|
|
@@ -1121,7 +1315,7 @@ declare namespace index$2 {
|
|
|
1121
1315
|
declare const index$1_addressTransactions: typeof addressTransactions;
|
|
1122
1316
|
declare const index$1_getTransaction: typeof getTransaction;
|
|
1123
1317
|
declare namespace index$1 {
|
|
1124
|
-
export { addressTransactions$1 as AddressTransactions, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1318
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, index$1_addressTransactions as addressTransactions, index$1_getTransaction as getTransaction };
|
|
1125
1319
|
}
|
|
1126
1320
|
|
|
1127
1321
|
declare const accounts: {
|
package/dist/index.js
CHANGED
|
@@ -752,7 +752,11 @@ var baseTransactionSchema = v13.object({
|
|
|
752
752
|
parent_burn_block_time_iso: v13.string(),
|
|
753
753
|
canonical: v13.boolean(),
|
|
754
754
|
tx_index: v13.number(),
|
|
755
|
-
tx_status: v13.
|
|
755
|
+
tx_status: v13.union([
|
|
756
|
+
v13.literal("success"),
|
|
757
|
+
v13.literal("abort_by_response"),
|
|
758
|
+
v13.literal("abort_by_post_condition")
|
|
759
|
+
]),
|
|
756
760
|
tx_result: v13.object({
|
|
757
761
|
hex: v13.string(),
|
|
758
762
|
repr: v13.string()
|