@apibara/starknet 0.3.0 → 0.4.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/cursor.d.ts +2 -2
- package/dist/cursor.js +1 -1
- package/dist/cursor.js.map +1 -1
- package/dist/felt.d.ts +1 -1
- package/dist/felt.js +5 -5
- package/dist/felt.js.map +1 -1
- package/dist/felt.test.js +9 -9
- package/dist/felt.test.js.map +1 -1
- package/dist/filter.d.ts +14 -2
- package/dist/filter.js +38 -1
- package/dist/filter.js.map +1 -1
- package/dist/filter.test.js +46 -40
- package/dist/filter.test.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/proto/filter.proto +6 -0
- package/dist/proto/generated.d.ts +1053 -67
- package/dist/proto/generated.js +3194 -541
- package/dist/proto/generated.js.map +1 -1
- package/dist/proto/index.d.ts +1 -1
- package/dist/proto/index.js.map +1 -1
- package/dist/proto/starknet.proto +132 -3
- package/package.json +4 -8
- package/src/cursor.ts +14 -8
- package/src/felt.test.ts +21 -19
- package/src/felt.ts +22 -22
- package/src/filter.test.ts +129 -107
- package/src/filter.ts +251 -174
- package/src/index.ts +4 -4
- package/src/proto/filter.proto +6 -0
- package/src/proto/generated.d.ts +1053 -67
- package/src/proto/generated.js +3311 -506
- package/src/proto/index.ts +2 -2
- package/src/proto/starknet.proto +132 -3
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./proto";
|
|
2
|
+
export * from "./cursor";
|
|
3
|
+
export * from "./filter";
|
|
4
|
+
export * from "./felt";
|
package/src/proto/filter.proto
CHANGED
|
@@ -110,6 +110,12 @@ message EventFilter {
|
|
|
110
110
|
repeated FieldElement keys = 2;
|
|
111
111
|
// Filter data that prefix-match the given data.
|
|
112
112
|
repeated FieldElement data = 3;
|
|
113
|
+
// Include events emitted by reverted transactions.
|
|
114
|
+
optional bool include_reverted = 4;
|
|
115
|
+
// Include the transaction that emitted the event. Defaults to true.
|
|
116
|
+
optional bool include_transaction = 5;
|
|
117
|
+
// Include the receipt of the transaction that emitted the event. Defaults to true.
|
|
118
|
+
optional bool include_receipt = 6;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
// Filter state update data.
|