@apibara/starknet 2.0.0-beta.2 → 2.0.0-beta.4
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/package.json +29 -37
- package/src/block.ts +37 -11
- package/src/common.test.ts +4 -4
- package/src/common.ts +14 -14
- package/src/filter.test.ts +29 -29
- package/src/filter.ts +42 -9
- package/src/proto/common.ts +41 -41
- package/src/proto/data.ts +310 -137
- package/src/proto/filter.ts +289 -238
- package/CHANGELOG.md +0 -53
- package/LICENSE.txt +0 -202
- package/buf.gen.yaml +0 -15
- package/build.config.ts +0 -11
- package/dist/index.cjs +0 -6106
- package/dist/index.d.cts +0 -4834
- package/dist/index.d.mts +0 -4834
- package/dist/index.d.ts +0 -4834
- package/dist/index.mjs +0 -6031
- package/proto/common.proto +0 -11
- package/proto/data.proto +0 -377
- package/proto/filter.proto +0 -126
- package/tsconfig.json +0 -11
package/proto/common.proto
DELETED
package/proto/data.proto
DELETED
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
// Starknet DNA definitions (data).
|
|
2
|
-
syntax = "proto3";
|
|
3
|
-
|
|
4
|
-
package starknet.v2;
|
|
5
|
-
|
|
6
|
-
import "google/protobuf/timestamp.proto";
|
|
7
|
-
import "common.proto";
|
|
8
|
-
|
|
9
|
-
// Requested data, grouped by block.
|
|
10
|
-
message Block {
|
|
11
|
-
// The header.
|
|
12
|
-
BlockHeader header = 1;
|
|
13
|
-
// List of transactions.
|
|
14
|
-
repeated Transaction transactions = 2;
|
|
15
|
-
// List of transactions receipts.
|
|
16
|
-
repeated TransactionReceipt receipts = 3;
|
|
17
|
-
// List of events.
|
|
18
|
-
repeated Event events = 4;
|
|
19
|
-
// List of messages.
|
|
20
|
-
repeated MessageToL1 messages = 5;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Block header.
|
|
24
|
-
message BlockHeader {
|
|
25
|
-
// Hash of the block.
|
|
26
|
-
FieldElement block_hash = 1;
|
|
27
|
-
// Hash of the block's parent.
|
|
28
|
-
FieldElement parent_block_hash = 2;
|
|
29
|
-
// Block height.
|
|
30
|
-
uint64 block_number = 3;
|
|
31
|
-
// Sequencer address.
|
|
32
|
-
FieldElement sequencer_address = 4;
|
|
33
|
-
// New state root after the block.
|
|
34
|
-
FieldElement new_root = 5;
|
|
35
|
-
// Timestamp when block was produced.
|
|
36
|
-
google.protobuf.Timestamp timestamp = 6;
|
|
37
|
-
// Starknet version.
|
|
38
|
-
string starknet_version = 7;
|
|
39
|
-
// Price of L1 gas in the block.
|
|
40
|
-
ResourcePrice l1_gas_price = 8;
|
|
41
|
-
// Price of L1 data gas in the block.
|
|
42
|
-
ResourcePrice l1_data_gas_price = 9;
|
|
43
|
-
// L1 data availability mode.
|
|
44
|
-
L1DataAvailabilityMode l1_data_availability_mode = 10;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// A transaction.
|
|
48
|
-
message Transaction {
|
|
49
|
-
// Common transaction metadata.
|
|
50
|
-
TransactionMeta meta = 1;
|
|
51
|
-
oneof transaction {
|
|
52
|
-
// Transaction invoking a smart contract, V0.
|
|
53
|
-
InvokeTransactionV0 invoke_v0 = 2;
|
|
54
|
-
// Transaction invoking a smart contract, V1.
|
|
55
|
-
InvokeTransactionV1 invoke_v1 = 3;
|
|
56
|
-
// Transaction invoking a smart contract, V3.
|
|
57
|
-
InvokeTransactionV3 invoke_v3 = 4;
|
|
58
|
-
// Transaction handling a message from L1.
|
|
59
|
-
L1HandlerTransaction l1_handler = 5;
|
|
60
|
-
// Transaction deploying a new smart contract, V1.
|
|
61
|
-
DeployTransaction deploy = 6;
|
|
62
|
-
// Transaction declaring a smart contract, V0.
|
|
63
|
-
DeclareTransactionV0 declare_v0 = 7;
|
|
64
|
-
// Transaction declaring a smart contract, V0.
|
|
65
|
-
DeclareTransactionV1 declare_v1 = 8;
|
|
66
|
-
// Transaction declaring a smart contract, V2.
|
|
67
|
-
DeclareTransactionV2 declare_v2 = 9;
|
|
68
|
-
// Transaction declaring a smart contract, V3.
|
|
69
|
-
DeclareTransactionV3 declare_v3 = 10;
|
|
70
|
-
// Deploy a new account, V1.
|
|
71
|
-
DeployAccountTransactionV1 deploy_account_v1 = 11;
|
|
72
|
-
// Deploy a new account, V3.
|
|
73
|
-
DeployAccountTransactionV3 deploy_account_v3 = 12;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
message TransactionMeta {
|
|
78
|
-
// Transaction index.
|
|
79
|
-
uint32 transaction_index = 1;
|
|
80
|
-
// Transaction hash.
|
|
81
|
-
FieldElement transaction_hash = 2;
|
|
82
|
-
// Transaction reverted flag.
|
|
83
|
-
bool transaction_reverted = 3;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message InvokeTransactionV0 {
|
|
87
|
-
FieldElement max_fee = 1;
|
|
88
|
-
repeated FieldElement signature = 2;
|
|
89
|
-
FieldElement contract_address = 3;
|
|
90
|
-
FieldElement entry_point_selector = 4;
|
|
91
|
-
repeated FieldElement calldata = 6;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message InvokeTransactionV1 {
|
|
95
|
-
FieldElement sender_address = 1;
|
|
96
|
-
repeated FieldElement calldata = 2;
|
|
97
|
-
FieldElement max_fee = 3;
|
|
98
|
-
repeated FieldElement signature = 4;
|
|
99
|
-
FieldElement nonce = 5;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
message InvokeTransactionV3 {
|
|
103
|
-
FieldElement sender_address = 1;
|
|
104
|
-
repeated FieldElement calldata = 2;
|
|
105
|
-
repeated FieldElement signature = 3;
|
|
106
|
-
FieldElement nonce = 4;
|
|
107
|
-
ResourceBoundsMapping resource_bounds = 5;
|
|
108
|
-
uint64 tip = 6;
|
|
109
|
-
repeated FieldElement paymaster_data = 7;
|
|
110
|
-
repeated FieldElement account_deployment_data = 8;
|
|
111
|
-
DataAvailabilityMode nonce_data_availability_mode = 9;
|
|
112
|
-
DataAvailabilityMode fee_data_availability_mode = 10;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
message L1HandlerTransaction {
|
|
116
|
-
uint64 nonce = 1;
|
|
117
|
-
FieldElement contract_address = 2;
|
|
118
|
-
FieldElement entry_point_selector = 3;
|
|
119
|
-
repeated FieldElement calldata = 4;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
message DeployTransaction {
|
|
123
|
-
FieldElement contract_address_salt = 1;
|
|
124
|
-
repeated FieldElement constructor_calldata = 2;
|
|
125
|
-
FieldElement class_hash = 3;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
message DeclareTransactionV0 {
|
|
129
|
-
FieldElement sender_address = 1;
|
|
130
|
-
FieldElement max_fee = 2;
|
|
131
|
-
repeated FieldElement signature = 3;
|
|
132
|
-
FieldElement class_hash = 4;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
message DeclareTransactionV1 {
|
|
136
|
-
FieldElement sender_address = 1;
|
|
137
|
-
FieldElement max_fee = 2;
|
|
138
|
-
repeated FieldElement signature = 3;
|
|
139
|
-
FieldElement nonce = 4;
|
|
140
|
-
FieldElement class_hash = 5;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message DeclareTransactionV2 {
|
|
144
|
-
FieldElement sender_address = 1;
|
|
145
|
-
FieldElement compiled_class_hash = 2;
|
|
146
|
-
FieldElement max_fee = 3;
|
|
147
|
-
repeated FieldElement signature = 4;
|
|
148
|
-
FieldElement nonce = 5;
|
|
149
|
-
FieldElement class_hash = 6;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
message DeclareTransactionV3 {
|
|
153
|
-
FieldElement sender_address = 1;
|
|
154
|
-
FieldElement compiled_class_hash = 2;
|
|
155
|
-
repeated FieldElement signature = 3;
|
|
156
|
-
FieldElement nonce = 4;
|
|
157
|
-
FieldElement class_hash = 5;
|
|
158
|
-
ResourceBoundsMapping resource_bounds = 6;
|
|
159
|
-
uint64 tip = 7;
|
|
160
|
-
repeated FieldElement paymaster_data = 8;
|
|
161
|
-
repeated FieldElement account_deployment_data = 9;
|
|
162
|
-
DataAvailabilityMode nonce_data_availability_mode = 10;
|
|
163
|
-
DataAvailabilityMode fee_data_availability_mode = 11;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
message DeployAccountTransactionV1 {
|
|
167
|
-
FieldElement max_fee = 1;
|
|
168
|
-
repeated FieldElement signature = 2;
|
|
169
|
-
FieldElement nonce = 3;
|
|
170
|
-
FieldElement contract_address_salt = 4;
|
|
171
|
-
repeated FieldElement constructor_calldata = 5;
|
|
172
|
-
FieldElement class_hash = 6;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
message DeployAccountTransactionV3 {
|
|
176
|
-
repeated FieldElement signature = 1;
|
|
177
|
-
FieldElement nonce = 2;
|
|
178
|
-
FieldElement contract_address_salt = 3;
|
|
179
|
-
repeated FieldElement constructor_calldata = 4;
|
|
180
|
-
FieldElement class_hash = 5;
|
|
181
|
-
ResourceBoundsMapping resource_bounds = 6;
|
|
182
|
-
uint64 tip = 7;
|
|
183
|
-
repeated FieldElement paymaster_data = 8;
|
|
184
|
-
DataAvailabilityMode nonce_data_availability_mode = 9;
|
|
185
|
-
DataAvailabilityMode fee_data_availability_mode = 10;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
message TransactionReceipt {
|
|
189
|
-
// Common transaction receipt metadata.
|
|
190
|
-
TransactionReceiptMeta meta = 1;
|
|
191
|
-
oneof receipt {
|
|
192
|
-
// Transaction invoking a smart contract.
|
|
193
|
-
InvokeTransactionReceipt invoke = 2;
|
|
194
|
-
// Transaction handling a message from L1.
|
|
195
|
-
L1HandlerTransactionReceipt l1_handler = 3;
|
|
196
|
-
// Transaction declaring a smart contract.
|
|
197
|
-
DeclareTransactionReceipt declare = 4;
|
|
198
|
-
// Transaction deploying a new smart contract.
|
|
199
|
-
DeployTransactionReceipt deploy = 5;
|
|
200
|
-
// Deploy a new account.
|
|
201
|
-
DeployAccountTransactionReceipt deploy_account = 6;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
message TransactionReceiptMeta {
|
|
206
|
-
uint32 transaction_index = 1;
|
|
207
|
-
FieldElement transaction_hash = 2;
|
|
208
|
-
FeePayment actual_fee = 3;
|
|
209
|
-
ExecutionResources execution_resources = 4;
|
|
210
|
-
oneof execution_result {
|
|
211
|
-
ExecutionSucceeded succeeded = 5;
|
|
212
|
-
ExecutionReverted reverted = 6;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message ExecutionSucceeded {}
|
|
217
|
-
message ExecutionReverted { string reason = 1; }
|
|
218
|
-
|
|
219
|
-
message InvokeTransactionReceipt {}
|
|
220
|
-
|
|
221
|
-
message L1HandlerTransactionReceipt { bytes message_hash = 1; }
|
|
222
|
-
|
|
223
|
-
message DeclareTransactionReceipt {}
|
|
224
|
-
|
|
225
|
-
message DeployTransactionReceipt { FieldElement contract_address = 1; }
|
|
226
|
-
|
|
227
|
-
message DeployAccountTransactionReceipt { FieldElement contract_address = 1; }
|
|
228
|
-
|
|
229
|
-
// Transaction events.
|
|
230
|
-
message Event {
|
|
231
|
-
// The contract that emitted the event.
|
|
232
|
-
FieldElement from_address = 1;
|
|
233
|
-
// The event keys.
|
|
234
|
-
repeated FieldElement keys = 2;
|
|
235
|
-
// The event data.
|
|
236
|
-
repeated FieldElement data = 3;
|
|
237
|
-
// The event index.
|
|
238
|
-
uint32 event_index = 4;
|
|
239
|
-
// Transaction index.
|
|
240
|
-
uint32 transaction_index = 5;
|
|
241
|
-
// Transaction hash.
|
|
242
|
-
FieldElement transaction_hash = 6;
|
|
243
|
-
// Transaction reverted flag.
|
|
244
|
-
bool transaction_reverted = 7;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
message MessageToL1 {
|
|
248
|
-
// The contract sending the message.
|
|
249
|
-
FieldElement from_address = 1;
|
|
250
|
-
// Target address.
|
|
251
|
-
FieldElement to_address = 2;
|
|
252
|
-
// Message payload.
|
|
253
|
-
repeated FieldElement payload = 3;
|
|
254
|
-
// Message index.
|
|
255
|
-
uint32 message_index = 4;
|
|
256
|
-
// Transaction index.
|
|
257
|
-
uint32 transaction_index = 5;
|
|
258
|
-
// Transaction hash.
|
|
259
|
-
FieldElement transaction_hash = 6;
|
|
260
|
-
// Transaction reverted flag.
|
|
261
|
-
bool transaction_reverted = 7;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
enum L1DataAvailabilityMode {
|
|
265
|
-
// Unknown DA.
|
|
266
|
-
L1_DATA_AVAILABILITY_MODE_UNSPECIFIED = 0;
|
|
267
|
-
// Data published via blobs.
|
|
268
|
-
L1_DATA_AVAILABILITY_MODE_BLOB = 1;
|
|
269
|
-
// Data published via calldata.
|
|
270
|
-
L1_DATA_AVAILABILITY_MODE_CALLDATA = 2;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// Transaction execution status.
|
|
274
|
-
enum ExecutionStatus {
|
|
275
|
-
// Unknown execution status.
|
|
276
|
-
EXECUTION_STATUS_UNSPECIFIED = 0;
|
|
277
|
-
// Transaction succeeded.
|
|
278
|
-
EXECUTION_STATUS_SUCCEEDED = 1;
|
|
279
|
-
// Transaction reverted.
|
|
280
|
-
EXECUTION_STATUS_REVERTED = 2;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// Price of a unit of a resource.
|
|
284
|
-
message ResourcePrice {
|
|
285
|
-
// Price in fri (10^-18 strk).
|
|
286
|
-
FieldElement price_in_fri = 1;
|
|
287
|
-
// Price in wei (10^-18 eth).
|
|
288
|
-
FieldElement price_in_wei = 2;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// A Starknet fee payment.
|
|
292
|
-
message FeePayment {
|
|
293
|
-
// Amount paid.
|
|
294
|
-
FieldElement amount = 1;
|
|
295
|
-
// Unit of the amount.
|
|
296
|
-
PriceUnit unit = 2;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// Price unit.
|
|
300
|
-
enum PriceUnit {
|
|
301
|
-
// Unknown price unit.
|
|
302
|
-
PRICE_UNIT_UNSPECIFIED = 0;
|
|
303
|
-
// WEI.
|
|
304
|
-
PRICE_UNIT_WEI = 1;
|
|
305
|
-
// FRI.
|
|
306
|
-
PRICE_UNIT_FRI = 2;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
// Execution resources.
|
|
310
|
-
message ExecutionResources {
|
|
311
|
-
// Computation resources.
|
|
312
|
-
ComputationResources computation = 1;
|
|
313
|
-
// Data availability resources.
|
|
314
|
-
DataAvailabilityResources data_availability = 2;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// Computation resources.
|
|
318
|
-
message ComputationResources {
|
|
319
|
-
// The number of Cairo steps used.
|
|
320
|
-
uint64 steps = 1;
|
|
321
|
-
// The number of unused memory cells.
|
|
322
|
-
optional uint64 memory_holes = 2;
|
|
323
|
-
// The number of RANGE_CHECK builtin instances.
|
|
324
|
-
optional uint64 range_check_builtin_applications = 3;
|
|
325
|
-
// The number of Pedersen builtin instances.
|
|
326
|
-
optional uint64 pedersen_builtin_applications = 4;
|
|
327
|
-
// The number of Poseidon builtin instances.
|
|
328
|
-
optional uint64 poseidon_builtin_applications = 5;
|
|
329
|
-
// The number of EC_OP builtin instances.
|
|
330
|
-
optional uint64 ec_op_builtin_applications = 6;
|
|
331
|
-
// The number of ECDSA builtin instances.
|
|
332
|
-
optional uint64 ecdsa_builtin_applications = 7;
|
|
333
|
-
// The number of BITWISE builtin instances.
|
|
334
|
-
optional uint64 bitwise_builtin_applications = 8;
|
|
335
|
-
// The number of KECCAK builtin instances.
|
|
336
|
-
optional uint64 keccak_builtin_applications = 9;
|
|
337
|
-
// The number of accesses to the segment arena.
|
|
338
|
-
optional uint64 segment_arena_builtin = 10;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
message DataAvailabilityResources {
|
|
342
|
-
// The gas consumed by this transaction's data, 0 if it uses data gas for DA.
|
|
343
|
-
uint64 l1_gas = 1;
|
|
344
|
-
// The data gas consumed by this transaction's data, 0 if it uses gas for DA.
|
|
345
|
-
uint64 l1_data_gas = 2;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
message ResourceBoundsMapping {
|
|
349
|
-
// Maximum amount and price of L1 gas.
|
|
350
|
-
ResourceBounds l1_gas = 1;
|
|
351
|
-
// Maximum amount and price of L2 gas.
|
|
352
|
-
ResourceBounds l2_gas = 2;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
message ResourceBounds {
|
|
356
|
-
// The maximum amount of resources that can be consumed by a transaction.
|
|
357
|
-
uint64 max_amount = 1;
|
|
358
|
-
/// The max price per unit of resource.
|
|
359
|
-
Uint128 max_price_per_unit = 2;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
message Uint128 {
|
|
363
|
-
// The low 64 bits of the number.
|
|
364
|
-
uint64 low = 1;
|
|
365
|
-
// The high 64 bits of the number.
|
|
366
|
-
uint64 high = 2;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
// DA mode.
|
|
370
|
-
enum DataAvailabilityMode {
|
|
371
|
-
// Unknown DA.
|
|
372
|
-
DATA_AVAILABILITY_MODE_UNSPECIFIED = 0;
|
|
373
|
-
// L1.
|
|
374
|
-
DATA_AVAILABILITY_MODE_L1 = 1;
|
|
375
|
-
// L2.
|
|
376
|
-
DATA_AVAILABILITY_MODE_L2 = 2;
|
|
377
|
-
}
|
package/proto/filter.proto
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// Starknet DNA definitions (filter).
|
|
2
|
-
syntax = "proto3";
|
|
3
|
-
|
|
4
|
-
package starknet.v2;
|
|
5
|
-
|
|
6
|
-
import "common.proto";
|
|
7
|
-
|
|
8
|
-
message Filter {
|
|
9
|
-
// Include header.
|
|
10
|
-
HeaderFilter header = 1;
|
|
11
|
-
// Filter transactions.
|
|
12
|
-
repeated TransactionFilter transactions = 2;
|
|
13
|
-
// Filter events.
|
|
14
|
-
repeated EventFilter events = 3;
|
|
15
|
-
// Filter messages to L1.
|
|
16
|
-
repeated MessageToL1Filter messages = 4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message HeaderFilter {
|
|
20
|
-
// Always include header data. Defaults to `false`.
|
|
21
|
-
optional bool always = 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Filter events.
|
|
25
|
-
message EventFilter {
|
|
26
|
-
// Filter by contract emitting the event.
|
|
27
|
-
FieldElement from_address = 1;
|
|
28
|
-
// Filter keys that prefix-match the given data.
|
|
29
|
-
repeated Key keys = 2;
|
|
30
|
-
// Only returns events with keys of exactly the same length as the filter.
|
|
31
|
-
//
|
|
32
|
-
// Defaults to `false`.
|
|
33
|
-
optional bool strict = 3;
|
|
34
|
-
// Include events emitted by reverted transactions.
|
|
35
|
-
//
|
|
36
|
-
// Defaults to false.
|
|
37
|
-
optional bool include_reverted = 4;
|
|
38
|
-
// Include the transaction that emitted the event.
|
|
39
|
-
//
|
|
40
|
-
// Defaults to false.
|
|
41
|
-
optional bool include_transaction = 5;
|
|
42
|
-
// Include the receipt of the transaction that emitted the event.
|
|
43
|
-
//
|
|
44
|
-
// Defaults to false.
|
|
45
|
-
optional bool include_receipt = 6;
|
|
46
|
-
// Include the messages to L1 sent by the transaction that emitted the event.
|
|
47
|
-
//
|
|
48
|
-
// Defaults to false.
|
|
49
|
-
optional bool include_messages = 7;
|
|
50
|
-
// Include sibling events, that is events emitted by the same transaction.
|
|
51
|
-
//
|
|
52
|
-
// Defaults to false.
|
|
53
|
-
optional bool include_siblings = 8;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
message Key { FieldElement value = 1; }
|
|
57
|
-
|
|
58
|
-
// Filter messages to L1.
|
|
59
|
-
message MessageToL1Filter {
|
|
60
|
-
// Filter by sender address.
|
|
61
|
-
FieldElement from_address = 1;
|
|
62
|
-
// Filter by destination address.
|
|
63
|
-
FieldElement to_address = 2;
|
|
64
|
-
// Include messages sent by reverted transactions.
|
|
65
|
-
//
|
|
66
|
-
// Defaults to false.
|
|
67
|
-
optional bool include_reverted = 3;
|
|
68
|
-
// Include the transaction that sent the message.
|
|
69
|
-
//
|
|
70
|
-
// Defaults to false.
|
|
71
|
-
optional bool include_transaction = 4;
|
|
72
|
-
// Include the receipt of the transaction that sent the message.
|
|
73
|
-
//
|
|
74
|
-
// Defaults to false.
|
|
75
|
-
optional bool include_receipt = 5;
|
|
76
|
-
// Include the events of the transaction that sent the message.
|
|
77
|
-
//
|
|
78
|
-
// Defaults to false.
|
|
79
|
-
optional bool include_events = 6;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Filter transactions.
|
|
83
|
-
message TransactionFilter {
|
|
84
|
-
// Include reverted transactions.
|
|
85
|
-
//
|
|
86
|
-
// Defaults to false.
|
|
87
|
-
optional bool include_reverted = 1;
|
|
88
|
-
// Flag to request the transaction's receipt.
|
|
89
|
-
//
|
|
90
|
-
// Defaults to `false`.
|
|
91
|
-
optional bool include_receipt = 2;
|
|
92
|
-
// Flag to request the transaction's events.
|
|
93
|
-
//
|
|
94
|
-
// Defaults to `false`.
|
|
95
|
-
optional bool include_events = 3;
|
|
96
|
-
// Flag to request the transaction's messages to L1.
|
|
97
|
-
//
|
|
98
|
-
// Defaults to `false`.
|
|
99
|
-
optional bool include_messages = 4;
|
|
100
|
-
|
|
101
|
-
oneof transaction_type {
|
|
102
|
-
InvokeTransactionV0Filter invoke_v0 = 5;
|
|
103
|
-
InvokeTransactionV1Filter invoke_v1 = 6;
|
|
104
|
-
InvokeTransactionV3Filter invoke_v3 = 7;
|
|
105
|
-
DeployTransactionFilter deploy = 8;
|
|
106
|
-
DeclareV0TransactionFilter declare_v0 = 9;
|
|
107
|
-
DeclareV1TransactionFilter declare_v1 = 10;
|
|
108
|
-
DeclareV2TransactionFilter declare_v2 = 11;
|
|
109
|
-
DeclareV3TransactionFilter declare_v3 = 12;
|
|
110
|
-
L1HandlerTransactionFilter l1_handler = 13;
|
|
111
|
-
DeployAccountV1TransactionFilter deploy_account_v1 = 14;
|
|
112
|
-
DeployAccountV3TransactionFilter deploy_account_v3 = 15;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message InvokeTransactionV0Filter {}
|
|
117
|
-
message InvokeTransactionV1Filter {}
|
|
118
|
-
message InvokeTransactionV3Filter {}
|
|
119
|
-
message DeployTransactionFilter {}
|
|
120
|
-
message DeclareV0TransactionFilter {}
|
|
121
|
-
message DeclareV1TransactionFilter {}
|
|
122
|
-
message DeclareV2TransactionFilter {}
|
|
123
|
-
message DeclareV3TransactionFilter {}
|
|
124
|
-
message L1HandlerTransactionFilter {}
|
|
125
|
-
message DeployAccountV1TransactionFilter {}
|
|
126
|
-
message DeployAccountV3TransactionFilter {}
|