@apibara/starknet 0.2.1 → 0.3.0
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/filter.d.ts +34 -0
- package/dist/filter.js +61 -1
- package/dist/filter.js.map +1 -1
- package/dist/filter.test.js +49 -1
- package/dist/filter.test.js.map +1 -1
- package/dist/proto/filter.proto +20 -0
- package/dist/proto/generated.d.ts +466 -0
- package/dist/proto/generated.js +4500 -3287
- package/dist/proto/generated.js.map +1 -1
- package/dist/proto/starknet.proto +33 -3
- package/package.json +1 -1
- package/src/filter.test.ts +55 -1
- package/src/filter.ts +80 -0
- package/src/proto/filter.proto +20 -0
- package/src/proto/generated.d.ts +466 -0
- package/src/proto/generated.js +4581 -3297
- package/src/proto/starknet.proto +33 -3
package/src/proto/starknet.proto
CHANGED
|
@@ -128,6 +128,8 @@ message DeclareTransaction {
|
|
|
128
128
|
FieldElement class_hash = 1;
|
|
129
129
|
// Address of the account declaring the class.
|
|
130
130
|
FieldElement sender_address = 2;
|
|
131
|
+
// The hash of the cairo assembly resulting from the sierra compilation.
|
|
132
|
+
FieldElement compiled_class_hash = 3;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
// Transaction handling a message from L1.
|
|
@@ -151,7 +153,7 @@ message DeployAccountTransaction {
|
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
// Result of the execution of a transaction.
|
|
154
|
-
//
|
|
156
|
+
//
|
|
155
157
|
// This message only contains the receipt data, if you also need the
|
|
156
158
|
// transaction, request a `Transaction`.
|
|
157
159
|
message TransactionReceipt {
|
|
@@ -165,6 +167,8 @@ message TransactionReceipt {
|
|
|
165
167
|
repeated L2ToL1Message l2_to_l1_messages = 4;
|
|
166
168
|
// Events emitted in the transaction.
|
|
167
169
|
repeated Event events = 5;
|
|
170
|
+
// Address of the contract that was created by the transaction.
|
|
171
|
+
FieldElement contract_address = 6;
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
// Message sent from L2 to L1 together with its transaction and receipt.
|
|
@@ -179,10 +183,14 @@ message L2ToL1MessageWithTransaction {
|
|
|
179
183
|
|
|
180
184
|
// Message sent from L2 to L1.
|
|
181
185
|
message L2ToL1Message {
|
|
182
|
-
// Destination address.
|
|
186
|
+
// Destination address (L1 contract).
|
|
183
187
|
FieldElement to_address = 3;
|
|
184
188
|
// Data contained in the message.
|
|
185
189
|
repeated FieldElement payload = 4;
|
|
190
|
+
// Index in the transaction receipt.
|
|
191
|
+
uint64 index = 5;
|
|
192
|
+
// Sender address (L2 contract).
|
|
193
|
+
FieldElement from_address = 6;
|
|
186
194
|
}
|
|
187
195
|
|
|
188
196
|
// Event emitted by a transaction, together with its transaction and receipt.
|
|
@@ -203,6 +211,8 @@ message Event {
|
|
|
203
211
|
repeated FieldElement keys = 2;
|
|
204
212
|
// Event data.
|
|
205
213
|
repeated FieldElement data = 3;
|
|
214
|
+
// Index in the transaction receipt.
|
|
215
|
+
uint64 index = 4;
|
|
206
216
|
}
|
|
207
217
|
|
|
208
218
|
// State update.
|
|
@@ -225,6 +235,10 @@ message StateDiff {
|
|
|
225
235
|
repeated DeployedContract deployed_contracts = 3;
|
|
226
236
|
// Nonces updated.
|
|
227
237
|
repeated NonceUpdate nonces = 4;
|
|
238
|
+
// Classes declared.
|
|
239
|
+
repeated DeclaredClass declared_classes = 5;
|
|
240
|
+
// Replaced declared.
|
|
241
|
+
repeated ReplacedClass replaced_classes = 6;
|
|
228
242
|
}
|
|
229
243
|
|
|
230
244
|
// Difference in storage values for a contract.
|
|
@@ -249,6 +263,22 @@ message DeclaredContract {
|
|
|
249
263
|
FieldElement class_hash = 1;
|
|
250
264
|
}
|
|
251
265
|
|
|
266
|
+
// Class declared.
|
|
267
|
+
message DeclaredClass {
|
|
268
|
+
// Class hash of the newly declared class.
|
|
269
|
+
FieldElement class_hash = 1;
|
|
270
|
+
// Hash of the cairo assembly resulting from the sierra compilation.
|
|
271
|
+
FieldElement compiled_class_hash = 2;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// Class replaced.
|
|
275
|
+
message ReplacedClass {
|
|
276
|
+
// The address of the contract whose class was replaced.
|
|
277
|
+
FieldElement contract_address = 1;
|
|
278
|
+
// The new class hash.
|
|
279
|
+
FieldElement class_hash = 2;
|
|
280
|
+
}
|
|
281
|
+
|
|
252
282
|
// Contract deployed.
|
|
253
283
|
message DeployedContract {
|
|
254
284
|
// Address of the newly deployed contract.
|
|
@@ -263,4 +293,4 @@ message NonceUpdate {
|
|
|
263
293
|
FieldElement contract_address = 1;
|
|
264
294
|
// New nonce value.
|
|
265
295
|
FieldElement nonce = 2;
|
|
266
|
-
}
|
|
296
|
+
}
|