@apibara/starknet 2.0.0-beta.6 → 2.0.0-beta.8

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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { StreamConfig } from '@apibara/protocol';
2
- import _m0 from 'protobufjs/minimal';
2
+ import _m0 from 'protobufjs/minimal.js';
3
3
  import * as _effect_schema_AST from '@effect/schema/AST';
4
4
  import { Schema } from '@effect/schema';
5
5
 
@@ -103,6 +103,12 @@ interface Block$1 {
103
103
  readonly events?: readonly Event$1[] | undefined;
104
104
  /** List of messages. */
105
105
  readonly messages?: readonly MessageToL1$1[] | undefined;
106
+ /** List of storage changes by contract. */
107
+ readonly storageDiffs?: readonly StorageDiff$1[] | undefined;
108
+ /** List of contract/class changes. */
109
+ readonly contractChanges?: readonly ContractChange$1[] | undefined;
110
+ /** List of nonce updates. */
111
+ readonly nonceUpdates?: readonly NonceUpdate$1[] | undefined;
106
112
  }
107
113
  declare const Block$1: {
108
114
  encode(message: Block$1, writer?: _m0.Writer): _m0.Writer;
@@ -691,6 +697,124 @@ declare const Uint128: {
691
697
  create(base?: DeepPartial$1<Uint128>): Uint128;
692
698
  fromPartial(object: DeepPartial$1<Uint128>): Uint128;
693
699
  };
700
+ /** Difference in storage values for a contract. */
701
+ interface StorageDiff$1 {
702
+ readonly filterIds?: readonly number[] | undefined;
703
+ /** The contract address. */
704
+ readonly contractAddress?: FieldElement$1 | undefined;
705
+ /** Entries that changed. */
706
+ readonly storageEntries?: readonly StorageEntry$1[] | undefined;
707
+ }
708
+ declare const StorageDiff$1: {
709
+ encode(message: StorageDiff$1, writer?: _m0.Writer): _m0.Writer;
710
+ decode(input: _m0.Reader | Uint8Array, length?: number): StorageDiff$1;
711
+ fromJSON(object: any): StorageDiff$1;
712
+ toJSON(message: StorageDiff$1): unknown;
713
+ create(base?: DeepPartial$1<StorageDiff$1>): StorageDiff$1;
714
+ fromPartial(object: DeepPartial$1<StorageDiff$1>): StorageDiff$1;
715
+ };
716
+ /** Storage entry. */
717
+ interface StorageEntry$1 {
718
+ /** Storage location. */
719
+ readonly key?: FieldElement$1 | undefined;
720
+ /** Storage value. */
721
+ readonly value?: FieldElement$1 | undefined;
722
+ }
723
+ declare const StorageEntry$1: {
724
+ encode(message: StorageEntry$1, writer?: _m0.Writer): _m0.Writer;
725
+ decode(input: _m0.Reader | Uint8Array, length?: number): StorageEntry$1;
726
+ fromJSON(object: any): StorageEntry$1;
727
+ toJSON(message: StorageEntry$1): unknown;
728
+ create(base?: DeepPartial$1<StorageEntry$1>): StorageEntry$1;
729
+ fromPartial(object: DeepPartial$1<StorageEntry$1>): StorageEntry$1;
730
+ };
731
+ /** A class/contract change. */
732
+ interface ContractChange$1 {
733
+ readonly filterIds?: readonly number[] | undefined;
734
+ readonly change?: {
735
+ readonly $case: "declaredClass";
736
+ readonly declaredClass: DeclaredClass$1;
737
+ } | {
738
+ readonly $case: "replacedClass";
739
+ readonly replacedClass: ReplacedClass$1;
740
+ } | {
741
+ readonly $case: "deployedContract";
742
+ readonly deployedContract: DeployedContract$1;
743
+ } | undefined;
744
+ }
745
+ declare const ContractChange$1: {
746
+ encode(message: ContractChange$1, writer?: _m0.Writer): _m0.Writer;
747
+ decode(input: _m0.Reader | Uint8Array, length?: number): ContractChange$1;
748
+ fromJSON(object: any): ContractChange$1;
749
+ toJSON(message: ContractChange$1): unknown;
750
+ create(base?: DeepPartial$1<ContractChange$1>): ContractChange$1;
751
+ fromPartial(object: DeepPartial$1<ContractChange$1>): ContractChange$1;
752
+ };
753
+ /** Class declared. */
754
+ interface DeclaredClass$1 {
755
+ /** Class hash of the newly declared class. */
756
+ readonly classHash?: FieldElement$1 | undefined;
757
+ /**
758
+ * Hash of the cairo assembly resulting from the sierra compilation.
759
+ *
760
+ * If undefined, it's the result of a deprecated Cairo 0 declaration.
761
+ */
762
+ readonly compiledClassHash?: FieldElement$1 | undefined;
763
+ }
764
+ declare const DeclaredClass$1: {
765
+ encode(message: DeclaredClass$1, writer?: _m0.Writer): _m0.Writer;
766
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeclaredClass$1;
767
+ fromJSON(object: any): DeclaredClass$1;
768
+ toJSON(message: DeclaredClass$1): unknown;
769
+ create(base?: DeepPartial$1<DeclaredClass$1>): DeclaredClass$1;
770
+ fromPartial(object: DeepPartial$1<DeclaredClass$1>): DeclaredClass$1;
771
+ };
772
+ /** Class replaced. */
773
+ interface ReplacedClass$1 {
774
+ /** The address of the contract whose class was replaced. */
775
+ readonly contractAddress?: FieldElement$1 | undefined;
776
+ /** The new class hash. */
777
+ readonly classHash?: FieldElement$1 | undefined;
778
+ }
779
+ declare const ReplacedClass$1: {
780
+ encode(message: ReplacedClass$1, writer?: _m0.Writer): _m0.Writer;
781
+ decode(input: _m0.Reader | Uint8Array, length?: number): ReplacedClass$1;
782
+ fromJSON(object: any): ReplacedClass$1;
783
+ toJSON(message: ReplacedClass$1): unknown;
784
+ create(base?: DeepPartial$1<ReplacedClass$1>): ReplacedClass$1;
785
+ fromPartial(object: DeepPartial$1<ReplacedClass$1>): ReplacedClass$1;
786
+ };
787
+ /** Contract deployed. */
788
+ interface DeployedContract$1 {
789
+ /** Address of the newly deployed contract. */
790
+ readonly contractAddress?: FieldElement$1 | undefined;
791
+ /** Class hash of the deployed contract. */
792
+ readonly classHash?: FieldElement$1 | undefined;
793
+ }
794
+ declare const DeployedContract$1: {
795
+ encode(message: DeployedContract$1, writer?: _m0.Writer): _m0.Writer;
796
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeployedContract$1;
797
+ fromJSON(object: any): DeployedContract$1;
798
+ toJSON(message: DeployedContract$1): unknown;
799
+ create(base?: DeepPartial$1<DeployedContract$1>): DeployedContract$1;
800
+ fromPartial(object: DeepPartial$1<DeployedContract$1>): DeployedContract$1;
801
+ };
802
+ /** Nonce update. */
803
+ interface NonceUpdate$1 {
804
+ readonly filterIds?: readonly number[] | undefined;
805
+ /** Contract address. */
806
+ readonly contractAddress?: FieldElement$1 | undefined;
807
+ /** New nonce value. */
808
+ readonly nonce?: FieldElement$1 | undefined;
809
+ }
810
+ declare const NonceUpdate$1: {
811
+ encode(message: NonceUpdate$1, writer?: _m0.Writer): _m0.Writer;
812
+ decode(input: _m0.Reader | Uint8Array, length?: number): NonceUpdate$1;
813
+ fromJSON(object: any): NonceUpdate$1;
814
+ toJSON(message: NonceUpdate$1): unknown;
815
+ create(base?: DeepPartial$1<NonceUpdate$1>): NonceUpdate$1;
816
+ fromPartial(object: DeepPartial$1<NonceUpdate$1>): NonceUpdate$1;
817
+ };
694
818
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
695
819
  type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {
696
820
  readonly $case: string;
@@ -716,11 +840,20 @@ declare const data_priceUnitToJSON: typeof priceUnitToJSON;
716
840
  declare const data_transactionStatusFromJSON: typeof transactionStatusFromJSON;
717
841
  declare const data_transactionStatusToJSON: typeof transactionStatusToJSON;
718
842
  declare namespace data {
719
- export { Block$1 as Block, BlockHeader$1 as BlockHeader, ComputationResources$1 as ComputationResources, DataAvailabilityMode$1 as DataAvailabilityMode, DataAvailabilityResources$1 as DataAvailabilityResources, DeclareTransactionReceipt$1 as DeclareTransactionReceipt, DeclareTransactionV0$1 as DeclareTransactionV0, DeclareTransactionV1$1 as DeclareTransactionV1, DeclareTransactionV2$1 as DeclareTransactionV2, DeclareTransactionV3$1 as DeclareTransactionV3, type DeepPartial$1 as DeepPartial, DeployAccountTransactionReceipt$1 as DeployAccountTransactionReceipt, DeployAccountTransactionV1$1 as DeployAccountTransactionV1, DeployAccountTransactionV3$1 as DeployAccountTransactionV3, DeployTransaction$1 as DeployTransaction, DeployTransactionReceipt$1 as DeployTransactionReceipt, Event$1 as Event, ExecutionResources$1 as ExecutionResources, ExecutionReverted$1 as ExecutionReverted, data_ExecutionStatus as ExecutionStatus, ExecutionSucceeded$1 as ExecutionSucceeded, FeePayment$1 as FeePayment, InvokeTransactionReceipt$1 as InvokeTransactionReceipt, InvokeTransactionV0$1 as InvokeTransactionV0, InvokeTransactionV1$1 as InvokeTransactionV1, InvokeTransactionV3$1 as InvokeTransactionV3, L1DataAvailabilityMode$1 as L1DataAvailabilityMode, L1HandlerTransaction$1 as L1HandlerTransaction, L1HandlerTransactionReceipt$1 as L1HandlerTransactionReceipt, MessageToL1$1 as MessageToL1, PriceUnit$1 as PriceUnit, ResourceBounds$1 as ResourceBounds, ResourceBoundsMapping$1 as ResourceBoundsMapping, ResourcePrice$1 as ResourcePrice, Transaction$1 as Transaction, TransactionMeta$1 as TransactionMeta, TransactionReceipt$1 as TransactionReceipt, TransactionReceiptMeta$1 as TransactionReceiptMeta, TransactionStatus$1 as TransactionStatus, data_Uint128 as Uint128, data_dataAvailabilityModeFromJSON as dataAvailabilityModeFromJSON, data_dataAvailabilityModeToJSON as dataAvailabilityModeToJSON, data_executionStatusFromJSON as executionStatusFromJSON, data_executionStatusToJSON as executionStatusToJSON, data_l1DataAvailabilityModeFromJSON as l1DataAvailabilityModeFromJSON, data_l1DataAvailabilityModeToJSON as l1DataAvailabilityModeToJSON, data_priceUnitFromJSON as priceUnitFromJSON, data_priceUnitToJSON as priceUnitToJSON, protobufPackage$1 as protobufPackage, data_transactionStatusFromJSON as transactionStatusFromJSON, data_transactionStatusToJSON as transactionStatusToJSON };
843
+ export { Block$1 as Block, BlockHeader$1 as BlockHeader, ComputationResources$1 as ComputationResources, ContractChange$1 as ContractChange, DataAvailabilityMode$1 as DataAvailabilityMode, DataAvailabilityResources$1 as DataAvailabilityResources, DeclareTransactionReceipt$1 as DeclareTransactionReceipt, DeclareTransactionV0$1 as DeclareTransactionV0, DeclareTransactionV1$1 as DeclareTransactionV1, DeclareTransactionV2$1 as DeclareTransactionV2, DeclareTransactionV3$1 as DeclareTransactionV3, DeclaredClass$1 as DeclaredClass, type DeepPartial$1 as DeepPartial, DeployAccountTransactionReceipt$1 as DeployAccountTransactionReceipt, DeployAccountTransactionV1$1 as DeployAccountTransactionV1, DeployAccountTransactionV3$1 as DeployAccountTransactionV3, DeployTransaction$1 as DeployTransaction, DeployTransactionReceipt$1 as DeployTransactionReceipt, DeployedContract$1 as DeployedContract, Event$1 as Event, ExecutionResources$1 as ExecutionResources, ExecutionReverted$1 as ExecutionReverted, data_ExecutionStatus as ExecutionStatus, ExecutionSucceeded$1 as ExecutionSucceeded, FeePayment$1 as FeePayment, InvokeTransactionReceipt$1 as InvokeTransactionReceipt, InvokeTransactionV0$1 as InvokeTransactionV0, InvokeTransactionV1$1 as InvokeTransactionV1, InvokeTransactionV3$1 as InvokeTransactionV3, L1DataAvailabilityMode$1 as L1DataAvailabilityMode, L1HandlerTransaction$1 as L1HandlerTransaction, L1HandlerTransactionReceipt$1 as L1HandlerTransactionReceipt, MessageToL1$1 as MessageToL1, NonceUpdate$1 as NonceUpdate, PriceUnit$1 as PriceUnit, ReplacedClass$1 as ReplacedClass, ResourceBounds$1 as ResourceBounds, ResourceBoundsMapping$1 as ResourceBoundsMapping, ResourcePrice$1 as ResourcePrice, StorageDiff$1 as StorageDiff, StorageEntry$1 as StorageEntry, Transaction$1 as Transaction, TransactionMeta$1 as TransactionMeta, TransactionReceipt$1 as TransactionReceipt, TransactionReceiptMeta$1 as TransactionReceiptMeta, TransactionStatus$1 as TransactionStatus, data_Uint128 as Uint128, data_dataAvailabilityModeFromJSON as dataAvailabilityModeFromJSON, data_dataAvailabilityModeToJSON as dataAvailabilityModeToJSON, data_executionStatusFromJSON as executionStatusFromJSON, data_executionStatusToJSON as executionStatusToJSON, data_l1DataAvailabilityModeFromJSON as l1DataAvailabilityModeFromJSON, data_l1DataAvailabilityModeToJSON as l1DataAvailabilityModeToJSON, data_priceUnitFromJSON as priceUnitFromJSON, data_priceUnitToJSON as priceUnitToJSON, protobufPackage$1 as protobufPackage, data_transactionStatusFromJSON as transactionStatusFromJSON, data_transactionStatusToJSON as transactionStatusToJSON };
720
844
  }
721
845
 
722
846
  declare const protobufPackage = "starknet.v2";
723
847
  /** Starknet DNA definitions (filter). */
848
+ declare enum HeaderFilter$1 {
849
+ UNSPECIFIED = 0,
850
+ ALWAYS = 1,
851
+ ON_DATA = 2,
852
+ ON_DATA_OR_ON_NEW_BLOCK = 3,
853
+ UNRECOGNIZED = -1
854
+ }
855
+ declare function headerFilterFromJSON(object: any): HeaderFilter$1;
856
+ declare function headerFilterToJSON(object: HeaderFilter$1): string;
724
857
  declare enum TransactionStatusFilter$1 {
725
858
  UNSPECIFIED = 0,
726
859
  SUCCEEDED = 1,
@@ -739,6 +872,12 @@ interface Filter$1 {
739
872
  readonly events?: readonly EventFilter$1[] | undefined;
740
873
  /** Filter messages to L1. */
741
874
  readonly messages?: readonly MessageToL1Filter$1[] | undefined;
875
+ /** Filter storage diffs. */
876
+ readonly storageDiffs?: readonly StorageDiffFilter$1[] | undefined;
877
+ /** Filter contract changes. */
878
+ readonly contractChanges?: readonly ContractChangeFilter$1[] | undefined;
879
+ /** Filter nonce updates. */
880
+ readonly nonceUpdates?: readonly NonceUpdateFilter$1[] | undefined;
742
881
  }
743
882
  declare const Filter$1: {
744
883
  encode(message: Filter$1, writer?: _m0.Writer): _m0.Writer;
@@ -748,18 +887,6 @@ declare const Filter$1: {
748
887
  create(base?: DeepPartial<Filter$1>): Filter$1;
749
888
  fromPartial(object: DeepPartial<Filter$1>): Filter$1;
750
889
  };
751
- interface HeaderFilter$1 {
752
- /** Always include header data. Defaults to `false`. */
753
- readonly always?: boolean | undefined;
754
- }
755
- declare const HeaderFilter$1: {
756
- encode(message: HeaderFilter$1, writer?: _m0.Writer): _m0.Writer;
757
- decode(input: _m0.Reader | Uint8Array, length?: number): HeaderFilter$1;
758
- fromJSON(object: any): HeaderFilter$1;
759
- toJSON(message: HeaderFilter$1): unknown;
760
- create(base?: DeepPartial<HeaderFilter$1>): HeaderFilter$1;
761
- fromPartial(object: DeepPartial<HeaderFilter$1>): HeaderFilter$1;
762
- };
763
890
  /** Filter events. */
764
891
  interface EventFilter$1 {
765
892
  readonly id?: number | undefined;
@@ -1050,6 +1177,83 @@ declare const DeployAccountV3TransactionFilter$1: {
1050
1177
  create(base?: DeepPartial<DeployAccountV3TransactionFilter$1>): DeployAccountV3TransactionFilter$1;
1051
1178
  fromPartial(_: DeepPartial<DeployAccountV3TransactionFilter$1>): DeployAccountV3TransactionFilter$1;
1052
1179
  };
1180
+ interface StorageDiffFilter$1 {
1181
+ readonly id?: number | undefined;
1182
+ /** Filter by contract address. */
1183
+ readonly contractAddress?: FieldElement$1 | undefined;
1184
+ }
1185
+ declare const StorageDiffFilter$1: {
1186
+ encode(message: StorageDiffFilter$1, writer?: _m0.Writer): _m0.Writer;
1187
+ decode(input: _m0.Reader | Uint8Array, length?: number): StorageDiffFilter$1;
1188
+ fromJSON(object: any): StorageDiffFilter$1;
1189
+ toJSON(message: StorageDiffFilter$1): unknown;
1190
+ create(base?: DeepPartial<StorageDiffFilter$1>): StorageDiffFilter$1;
1191
+ fromPartial(object: DeepPartial<StorageDiffFilter$1>): StorageDiffFilter$1;
1192
+ };
1193
+ interface ContractChangeFilter$1 {
1194
+ readonly id?: number | undefined;
1195
+ readonly change?: {
1196
+ readonly $case: "declaredClass";
1197
+ readonly declaredClass: DeclaredClassFilter$1;
1198
+ } | {
1199
+ readonly $case: "replacedClass";
1200
+ readonly replacedClass: ReplacedClassFilter$1;
1201
+ } | {
1202
+ readonly $case: "deployedContract";
1203
+ readonly deployedContract: DeployedContractFilter$1;
1204
+ } | undefined;
1205
+ }
1206
+ declare const ContractChangeFilter$1: {
1207
+ encode(message: ContractChangeFilter$1, writer?: _m0.Writer): _m0.Writer;
1208
+ decode(input: _m0.Reader | Uint8Array, length?: number): ContractChangeFilter$1;
1209
+ fromJSON(object: any): ContractChangeFilter$1;
1210
+ toJSON(message: ContractChangeFilter$1): unknown;
1211
+ create(base?: DeepPartial<ContractChangeFilter$1>): ContractChangeFilter$1;
1212
+ fromPartial(object: DeepPartial<ContractChangeFilter$1>): ContractChangeFilter$1;
1213
+ };
1214
+ interface DeclaredClassFilter$1 {
1215
+ }
1216
+ declare const DeclaredClassFilter$1: {
1217
+ encode(_: DeclaredClassFilter$1, writer?: _m0.Writer): _m0.Writer;
1218
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeclaredClassFilter$1;
1219
+ fromJSON(_: any): DeclaredClassFilter$1;
1220
+ toJSON(_: DeclaredClassFilter$1): unknown;
1221
+ create(base?: DeepPartial<DeclaredClassFilter$1>): DeclaredClassFilter$1;
1222
+ fromPartial(_: DeepPartial<DeclaredClassFilter$1>): DeclaredClassFilter$1;
1223
+ };
1224
+ interface ReplacedClassFilter$1 {
1225
+ }
1226
+ declare const ReplacedClassFilter$1: {
1227
+ encode(_: ReplacedClassFilter$1, writer?: _m0.Writer): _m0.Writer;
1228
+ decode(input: _m0.Reader | Uint8Array, length?: number): ReplacedClassFilter$1;
1229
+ fromJSON(_: any): ReplacedClassFilter$1;
1230
+ toJSON(_: ReplacedClassFilter$1): unknown;
1231
+ create(base?: DeepPartial<ReplacedClassFilter$1>): ReplacedClassFilter$1;
1232
+ fromPartial(_: DeepPartial<ReplacedClassFilter$1>): ReplacedClassFilter$1;
1233
+ };
1234
+ interface DeployedContractFilter$1 {
1235
+ }
1236
+ declare const DeployedContractFilter$1: {
1237
+ encode(_: DeployedContractFilter$1, writer?: _m0.Writer): _m0.Writer;
1238
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeployedContractFilter$1;
1239
+ fromJSON(_: any): DeployedContractFilter$1;
1240
+ toJSON(_: DeployedContractFilter$1): unknown;
1241
+ create(base?: DeepPartial<DeployedContractFilter$1>): DeployedContractFilter$1;
1242
+ fromPartial(_: DeepPartial<DeployedContractFilter$1>): DeployedContractFilter$1;
1243
+ };
1244
+ interface NonceUpdateFilter$1 {
1245
+ readonly id?: number | undefined;
1246
+ /** Filter by contract address. */
1247
+ readonly contractAddress?: FieldElement$1 | undefined;
1248
+ }
1249
+ declare const NonceUpdateFilter$1: {
1250
+ encode(message: NonceUpdateFilter$1, writer?: _m0.Writer): _m0.Writer;
1251
+ decode(input: _m0.Reader | Uint8Array, length?: number): NonceUpdateFilter$1;
1252
+ fromJSON(object: any): NonceUpdateFilter$1;
1253
+ toJSON(message: NonceUpdateFilter$1): unknown;
1254
+ create(base?: DeepPartial<NonceUpdateFilter$1>): NonceUpdateFilter$1;
1255
+ fromPartial(object: DeepPartial<NonceUpdateFilter$1>): NonceUpdateFilter$1;
1256
+ };
1053
1257
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
1054
1258
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
1055
1259
  readonly $case: string;
@@ -1062,11 +1266,13 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U
1062
1266
  } : Partial<T>;
1063
1267
 
1064
1268
  type filter_DeepPartial<T> = DeepPartial<T>;
1269
+ declare const filter_headerFilterFromJSON: typeof headerFilterFromJSON;
1270
+ declare const filter_headerFilterToJSON: typeof headerFilterToJSON;
1065
1271
  declare const filter_protobufPackage: typeof protobufPackage;
1066
1272
  declare const filter_transactionStatusFilterFromJSON: typeof transactionStatusFilterFromJSON;
1067
1273
  declare const filter_transactionStatusFilterToJSON: typeof transactionStatusFilterToJSON;
1068
1274
  declare namespace filter {
1069
- export { DeclareV0TransactionFilter$1 as DeclareV0TransactionFilter, DeclareV1TransactionFilter$1 as DeclareV1TransactionFilter, DeclareV2TransactionFilter$1 as DeclareV2TransactionFilter, DeclareV3TransactionFilter$1 as DeclareV3TransactionFilter, type filter_DeepPartial as DeepPartial, DeployAccountV1TransactionFilter$1 as DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter$1 as DeployAccountV3TransactionFilter, DeployTransactionFilter$1 as DeployTransactionFilter, EventFilter$1 as EventFilter, Filter$1 as Filter, HeaderFilter$1 as HeaderFilter, InvokeTransactionV0Filter$1 as InvokeTransactionV0Filter, InvokeTransactionV1Filter$1 as InvokeTransactionV1Filter, InvokeTransactionV3Filter$1 as InvokeTransactionV3Filter, Key$1 as Key, L1HandlerTransactionFilter$1 as L1HandlerTransactionFilter, MessageToL1Filter$1 as MessageToL1Filter, TransactionFilter$1 as TransactionFilter, TransactionStatusFilter$1 as TransactionStatusFilter, filter_protobufPackage as protobufPackage, filter_transactionStatusFilterFromJSON as transactionStatusFilterFromJSON, filter_transactionStatusFilterToJSON as transactionStatusFilterToJSON };
1275
+ export { ContractChangeFilter$1 as ContractChangeFilter, DeclareV0TransactionFilter$1 as DeclareV0TransactionFilter, DeclareV1TransactionFilter$1 as DeclareV1TransactionFilter, DeclareV2TransactionFilter$1 as DeclareV2TransactionFilter, DeclareV3TransactionFilter$1 as DeclareV3TransactionFilter, DeclaredClassFilter$1 as DeclaredClassFilter, type filter_DeepPartial as DeepPartial, DeployAccountV1TransactionFilter$1 as DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter$1 as DeployAccountV3TransactionFilter, DeployTransactionFilter$1 as DeployTransactionFilter, DeployedContractFilter$1 as DeployedContractFilter, EventFilter$1 as EventFilter, Filter$1 as Filter, HeaderFilter$1 as HeaderFilter, InvokeTransactionV0Filter$1 as InvokeTransactionV0Filter, InvokeTransactionV1Filter$1 as InvokeTransactionV1Filter, InvokeTransactionV3Filter$1 as InvokeTransactionV3Filter, Key$1 as Key, L1HandlerTransactionFilter$1 as L1HandlerTransactionFilter, MessageToL1Filter$1 as MessageToL1Filter, NonceUpdateFilter$1 as NonceUpdateFilter, ReplacedClassFilter$1 as ReplacedClassFilter, StorageDiffFilter$1 as StorageDiffFilter, TransactionFilter$1 as TransactionFilter, TransactionStatusFilter$1 as TransactionStatusFilter, filter_headerFilterFromJSON as headerFilterFromJSON, filter_headerFilterToJSON as headerFilterToJSON, filter_protobufPackage as protobufPackage, filter_transactionStatusFilterFromJSON as transactionStatusFilterFromJSON, filter_transactionStatusFilterToJSON as transactionStatusFilterToJSON };
1070
1276
  }
1071
1277
 
1072
1278
  declare const index_common: typeof common;
@@ -1105,11 +1311,11 @@ declare const feltFromProto: (i: {
1105
1311
 
1106
1312
  /** Header options.
1107
1313
  *
1108
- * Change `always` to `true` to receive headers even if no other data matches.
1314
+ * - `always`: receive all block headers.
1315
+ * - `on_data`: receive headers only if any other filter matches.
1316
+ * - `on_data_or_on_new_block`: receive headers only if any other filter matches and for "live" blocks.
1109
1317
  */
1110
- declare const HeaderFilter: Schema.Struct<{
1111
- always: Schema.optional<typeof Schema.Boolean>;
1112
- }>;
1318
+ declare const HeaderFilter: Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>;
1113
1319
  type HeaderFilter = typeof HeaderFilter.Type;
1114
1320
  /** An event key filter. Use `null` to match any event key. */
1115
1321
  declare const Key: Schema.transform<Schema.Struct<{
@@ -1294,10 +1500,65 @@ declare const TransactionFilter: Schema.Struct<{
1294
1500
  }>]>>;
1295
1501
  }>;
1296
1502
  type TransactionFilter = typeof TransactionFilter.Type;
1503
+ /** Filter storage diffs.
1504
+ *
1505
+ * @prop contractAddress Filter by contract address.
1506
+ */
1507
+ declare const StorageDiffFilter: Schema.Struct<{
1508
+ id: Schema.optional<typeof Schema.Number>;
1509
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1510
+ x0: typeof Schema.BigIntFromSelf;
1511
+ x1: typeof Schema.BigIntFromSelf;
1512
+ x2: typeof Schema.BigIntFromSelf;
1513
+ x3: typeof Schema.BigIntFromSelf;
1514
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1515
+ }>;
1516
+ type StorageDiffFilter = typeof StorageDiffFilter.Type;
1517
+ /** Filter declared classes. */
1518
+ declare const DeclaredClassFilter: Schema.Struct<{
1519
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
1520
+ declaredClass: Schema.Struct<{}>;
1521
+ }>;
1522
+ type DeclaredClassFilter = typeof DeclaredClassFilter.Type;
1523
+ declare const ReplacedClassFilter: Schema.Struct<{
1524
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
1525
+ replacedClass: Schema.Struct<{}>;
1526
+ }>;
1527
+ type ReplacedClassFilter = typeof ReplacedClassFilter.Type;
1528
+ declare const DeployedContractFilter: Schema.Struct<{
1529
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
1530
+ deployedContract: Schema.Struct<{}>;
1531
+ }>;
1532
+ type DeployedContractFilter = typeof DeployedContractFilter.Type;
1533
+ /** Filter contract changes. */
1534
+ declare const ContractChangeFilter: Schema.Struct<{
1535
+ id: Schema.optional<typeof Schema.Number>;
1536
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
1537
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
1538
+ declaredClass: Schema.Struct<{}>;
1539
+ }>, Schema.Struct<{
1540
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
1541
+ replacedClass: Schema.Struct<{}>;
1542
+ }>, Schema.Struct<{
1543
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
1544
+ deployedContract: Schema.Struct<{}>;
1545
+ }>]>>;
1546
+ }>;
1547
+ /** Filter updates to nonces.
1548
+ *
1549
+ * @prop contractAddress Filter by contract address.
1550
+ */
1551
+ declare const NonceUpdateFilter: Schema.Struct<{
1552
+ id: Schema.optional<typeof Schema.Number>;
1553
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1554
+ x0: typeof Schema.BigIntFromSelf;
1555
+ x1: typeof Schema.BigIntFromSelf;
1556
+ x2: typeof Schema.BigIntFromSelf;
1557
+ x3: typeof Schema.BigIntFromSelf;
1558
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1559
+ }>;
1297
1560
  declare const Filter: Schema.Struct<{
1298
- header: Schema.optional<Schema.Struct<{
1299
- always: Schema.optional<typeof Schema.Boolean>;
1300
- }>>;
1561
+ header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
1301
1562
  transactions: Schema.optional<Schema.Array$<Schema.Struct<{
1302
1563
  id: Schema.optional<typeof Schema.Number>;
1303
1564
  transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
@@ -1389,15 +1650,44 @@ declare const Filter: Schema.Struct<{
1389
1650
  includeReceipt: Schema.optional<typeof Schema.Boolean>;
1390
1651
  includeEvents: Schema.optional<typeof Schema.Boolean>;
1391
1652
  }>>>;
1653
+ storageDiffs: Schema.optional<Schema.Array$<Schema.Struct<{
1654
+ id: Schema.optional<typeof Schema.Number>;
1655
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1656
+ x0: typeof Schema.BigIntFromSelf;
1657
+ x1: typeof Schema.BigIntFromSelf;
1658
+ x2: typeof Schema.BigIntFromSelf;
1659
+ x3: typeof Schema.BigIntFromSelf;
1660
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1661
+ }>>>;
1662
+ contractChanges: Schema.optional<Schema.Array$<Schema.Struct<{
1663
+ id: Schema.optional<typeof Schema.Number>;
1664
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
1665
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
1666
+ declaredClass: Schema.Struct<{}>;
1667
+ }>, Schema.Struct<{
1668
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
1669
+ replacedClass: Schema.Struct<{}>;
1670
+ }>, Schema.Struct<{
1671
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
1672
+ deployedContract: Schema.Struct<{}>;
1673
+ }>]>>;
1674
+ }>>>;
1675
+ nonceUpdates: Schema.optional<Schema.Array$<Schema.Struct<{
1676
+ id: Schema.optional<typeof Schema.Number>;
1677
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
1678
+ x0: typeof Schema.BigIntFromSelf;
1679
+ x1: typeof Schema.BigIntFromSelf;
1680
+ x2: typeof Schema.BigIntFromSelf;
1681
+ x3: typeof Schema.BigIntFromSelf;
1682
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
1683
+ }>>>;
1392
1684
  }>;
1393
1685
  type Filter = typeof Filter.Type;
1394
1686
  declare const filterToProto: (a: {
1395
- readonly header?: {
1396
- readonly always?: boolean | undefined;
1397
- } | undefined;
1687
+ readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1398
1688
  readonly transactions?: readonly {
1399
1689
  readonly id?: number | undefined;
1400
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
1690
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1401
1691
  readonly includeReceipt?: boolean | undefined;
1402
1692
  readonly includeMessages?: boolean | undefined;
1403
1693
  readonly includeEvents?: boolean | undefined;
@@ -1439,7 +1729,7 @@ declare const filterToProto: (a: {
1439
1729
  readonly events?: readonly {
1440
1730
  readonly keys?: readonly (`0x${string}` | null)[] | undefined;
1441
1731
  readonly id?: number | undefined;
1442
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
1732
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1443
1733
  readonly includeReceipt?: boolean | undefined;
1444
1734
  readonly includeMessages?: boolean | undefined;
1445
1735
  readonly address?: `0x${string}` | undefined;
@@ -1449,17 +1739,36 @@ declare const filterToProto: (a: {
1449
1739
  }[] | undefined;
1450
1740
  readonly messages?: readonly {
1451
1741
  readonly id?: number | undefined;
1452
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
1742
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1453
1743
  readonly includeReceipt?: boolean | undefined;
1454
1744
  readonly includeEvents?: boolean | undefined;
1455
1745
  readonly includeTransaction?: boolean | undefined;
1456
1746
  readonly fromAddress?: `0x${string}` | undefined;
1457
1747
  readonly toAddress?: `0x${string}` | undefined;
1458
1748
  }[] | undefined;
1749
+ readonly storageDiffs?: readonly {
1750
+ readonly id?: number | undefined;
1751
+ readonly contractAddress?: `0x${string}` | undefined;
1752
+ }[] | undefined;
1753
+ readonly contractChanges?: readonly {
1754
+ readonly id?: number | undefined;
1755
+ readonly change?: {
1756
+ readonly _tag: "declaredClass";
1757
+ readonly declaredClass: {};
1758
+ } | {
1759
+ readonly _tag: "replacedClass";
1760
+ readonly replacedClass: {};
1761
+ } | {
1762
+ readonly _tag: "deployedContract";
1763
+ readonly deployedContract: {};
1764
+ } | undefined;
1765
+ }[] | undefined;
1766
+ readonly nonceUpdates?: readonly {
1767
+ readonly id?: number | undefined;
1768
+ readonly contractAddress?: `0x${string}` | undefined;
1769
+ }[] | undefined;
1459
1770
  }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
1460
- readonly header?: {
1461
- readonly always?: boolean | undefined;
1462
- } | undefined;
1771
+ readonly header?: HeaderFilter$1 | undefined;
1463
1772
  readonly transactions?: readonly {
1464
1773
  readonly id?: number | undefined;
1465
1774
  readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
@@ -1543,11 +1852,40 @@ declare const filterToProto: (a: {
1543
1852
  readonly x3: bigint;
1544
1853
  } | undefined;
1545
1854
  }[] | undefined;
1855
+ readonly storageDiffs?: readonly {
1856
+ readonly id?: number | undefined;
1857
+ readonly contractAddress?: {
1858
+ readonly x0: bigint;
1859
+ readonly x1: bigint;
1860
+ readonly x2: bigint;
1861
+ readonly x3: bigint;
1862
+ } | undefined;
1863
+ }[] | undefined;
1864
+ readonly contractChanges?: readonly {
1865
+ readonly id?: number | undefined;
1866
+ readonly change?: {
1867
+ readonly $case: "declaredClass";
1868
+ readonly declaredClass: {};
1869
+ } | {
1870
+ readonly $case: "replacedClass";
1871
+ readonly replacedClass: {};
1872
+ } | {
1873
+ readonly $case: "deployedContract";
1874
+ readonly deployedContract: {};
1875
+ } | undefined;
1876
+ }[] | undefined;
1877
+ readonly nonceUpdates?: readonly {
1878
+ readonly id?: number | undefined;
1879
+ readonly contractAddress?: {
1880
+ readonly x0: bigint;
1881
+ readonly x1: bigint;
1882
+ readonly x2: bigint;
1883
+ readonly x3: bigint;
1884
+ } | undefined;
1885
+ }[] | undefined;
1546
1886
  };
1547
1887
  declare const filterFromProto: (i: {
1548
- readonly header?: {
1549
- readonly always?: boolean | undefined;
1550
- } | undefined;
1888
+ readonly header?: HeaderFilter$1 | undefined;
1551
1889
  readonly transactions?: readonly {
1552
1890
  readonly id?: number | undefined;
1553
1891
  readonly transactionStatus?: TransactionStatusFilter$1 | undefined;
@@ -1631,13 +1969,42 @@ declare const filterFromProto: (i: {
1631
1969
  readonly x3: bigint;
1632
1970
  } | undefined;
1633
1971
  }[] | undefined;
1972
+ readonly storageDiffs?: readonly {
1973
+ readonly id?: number | undefined;
1974
+ readonly contractAddress?: {
1975
+ readonly x0: bigint;
1976
+ readonly x1: bigint;
1977
+ readonly x2: bigint;
1978
+ readonly x3: bigint;
1979
+ } | undefined;
1980
+ }[] | undefined;
1981
+ readonly contractChanges?: readonly {
1982
+ readonly id?: number | undefined;
1983
+ readonly change?: {
1984
+ readonly $case: "declaredClass";
1985
+ readonly declaredClass: {};
1986
+ } | {
1987
+ readonly $case: "replacedClass";
1988
+ readonly replacedClass: {};
1989
+ } | {
1990
+ readonly $case: "deployedContract";
1991
+ readonly deployedContract: {};
1992
+ } | undefined;
1993
+ }[] | undefined;
1994
+ readonly nonceUpdates?: readonly {
1995
+ readonly id?: number | undefined;
1996
+ readonly contractAddress?: {
1997
+ readonly x0: bigint;
1998
+ readonly x1: bigint;
1999
+ readonly x2: bigint;
2000
+ readonly x3: bigint;
2001
+ } | undefined;
2002
+ }[] | undefined;
1634
2003
  }, overrideOptions?: _effect_schema_AST.ParseOptions) => {
1635
- readonly header?: {
1636
- readonly always?: boolean | undefined;
1637
- } | undefined;
2004
+ readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1638
2005
  readonly transactions?: readonly {
1639
2006
  readonly id?: number | undefined;
1640
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2007
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1641
2008
  readonly includeReceipt?: boolean | undefined;
1642
2009
  readonly includeMessages?: boolean | undefined;
1643
2010
  readonly includeEvents?: boolean | undefined;
@@ -1679,7 +2046,7 @@ declare const filterFromProto: (i: {
1679
2046
  readonly events?: readonly {
1680
2047
  readonly keys?: readonly (`0x${string}` | null)[] | undefined;
1681
2048
  readonly id?: number | undefined;
1682
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2049
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1683
2050
  readonly includeReceipt?: boolean | undefined;
1684
2051
  readonly includeMessages?: boolean | undefined;
1685
2052
  readonly address?: `0x${string}` | undefined;
@@ -1689,18 +2056,37 @@ declare const filterFromProto: (i: {
1689
2056
  }[] | undefined;
1690
2057
  readonly messages?: readonly {
1691
2058
  readonly id?: number | undefined;
1692
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2059
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1693
2060
  readonly includeReceipt?: boolean | undefined;
1694
2061
  readonly includeEvents?: boolean | undefined;
1695
2062
  readonly includeTransaction?: boolean | undefined;
1696
2063
  readonly fromAddress?: `0x${string}` | undefined;
1697
2064
  readonly toAddress?: `0x${string}` | undefined;
1698
2065
  }[] | undefined;
2066
+ readonly storageDiffs?: readonly {
2067
+ readonly id?: number | undefined;
2068
+ readonly contractAddress?: `0x${string}` | undefined;
2069
+ }[] | undefined;
2070
+ readonly contractChanges?: readonly {
2071
+ readonly id?: number | undefined;
2072
+ readonly change?: {
2073
+ readonly _tag: "declaredClass";
2074
+ readonly declaredClass: {};
2075
+ } | {
2076
+ readonly _tag: "replacedClass";
2077
+ readonly replacedClass: {};
2078
+ } | {
2079
+ readonly _tag: "deployedContract";
2080
+ readonly deployedContract: {};
2081
+ } | undefined;
2082
+ }[] | undefined;
2083
+ readonly nonceUpdates?: readonly {
2084
+ readonly id?: number | undefined;
2085
+ readonly contractAddress?: `0x${string}` | undefined;
2086
+ }[] | undefined;
1699
2087
  };
1700
2088
  declare const FilterFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.Struct<{
1701
- header: Schema.optional<Schema.Struct<{
1702
- always: Schema.optional<typeof Schema.Boolean>;
1703
- }>>;
2089
+ header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
1704
2090
  transactions: Schema.optional<Schema.Array$<Schema.Struct<{
1705
2091
  id: Schema.optional<typeof Schema.Number>;
1706
2092
  transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatusFilter$1>, Schema.Literal<["succeeded", "reverted", "all", "unknown"]>>>;
@@ -1792,14 +2178,43 @@ declare const FilterFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8A
1792
2178
  includeReceipt: Schema.optional<typeof Schema.Boolean>;
1793
2179
  includeEvents: Schema.optional<typeof Schema.Boolean>;
1794
2180
  }>>>;
2181
+ storageDiffs: Schema.optional<Schema.Array$<Schema.Struct<{
2182
+ id: Schema.optional<typeof Schema.Number>;
2183
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
2184
+ x0: typeof Schema.BigIntFromSelf;
2185
+ x1: typeof Schema.BigIntFromSelf;
2186
+ x2: typeof Schema.BigIntFromSelf;
2187
+ x3: typeof Schema.BigIntFromSelf;
2188
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
2189
+ }>>>;
2190
+ contractChanges: Schema.optional<Schema.Array$<Schema.Struct<{
2191
+ id: Schema.optional<typeof Schema.Number>;
2192
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
2193
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
2194
+ declaredClass: Schema.Struct<{}>;
2195
+ }>, Schema.Struct<{
2196
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
2197
+ replacedClass: Schema.Struct<{}>;
2198
+ }>, Schema.Struct<{
2199
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
2200
+ deployedContract: Schema.Struct<{}>;
2201
+ }>]>>;
2202
+ }>>>;
2203
+ nonceUpdates: Schema.optional<Schema.Array$<Schema.Struct<{
2204
+ id: Schema.optional<typeof Schema.Number>;
2205
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
2206
+ x0: typeof Schema.BigIntFromSelf;
2207
+ x1: typeof Schema.BigIntFromSelf;
2208
+ x2: typeof Schema.BigIntFromSelf;
2209
+ x3: typeof Schema.BigIntFromSelf;
2210
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
2211
+ }>>>;
1795
2212
  }>>;
1796
2213
  declare const filterToBytes: (a: {
1797
- readonly header?: {
1798
- readonly always?: boolean | undefined;
1799
- } | undefined;
2214
+ readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1800
2215
  readonly transactions?: readonly {
1801
2216
  readonly id?: number | undefined;
1802
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2217
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1803
2218
  readonly includeReceipt?: boolean | undefined;
1804
2219
  readonly includeMessages?: boolean | undefined;
1805
2220
  readonly includeEvents?: boolean | undefined;
@@ -1841,7 +2256,7 @@ declare const filterToBytes: (a: {
1841
2256
  readonly events?: readonly {
1842
2257
  readonly keys?: readonly (`0x${string}` | null)[] | undefined;
1843
2258
  readonly id?: number | undefined;
1844
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2259
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1845
2260
  readonly includeReceipt?: boolean | undefined;
1846
2261
  readonly includeMessages?: boolean | undefined;
1847
2262
  readonly address?: `0x${string}` | undefined;
@@ -1851,21 +2266,40 @@ declare const filterToBytes: (a: {
1851
2266
  }[] | undefined;
1852
2267
  readonly messages?: readonly {
1853
2268
  readonly id?: number | undefined;
1854
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2269
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1855
2270
  readonly includeReceipt?: boolean | undefined;
1856
2271
  readonly includeEvents?: boolean | undefined;
1857
2272
  readonly includeTransaction?: boolean | undefined;
1858
2273
  readonly fromAddress?: `0x${string}` | undefined;
1859
2274
  readonly toAddress?: `0x${string}` | undefined;
1860
2275
  }[] | undefined;
2276
+ readonly storageDiffs?: readonly {
2277
+ readonly id?: number | undefined;
2278
+ readonly contractAddress?: `0x${string}` | undefined;
2279
+ }[] | undefined;
2280
+ readonly contractChanges?: readonly {
2281
+ readonly id?: number | undefined;
2282
+ readonly change?: {
2283
+ readonly _tag: "declaredClass";
2284
+ readonly declaredClass: {};
2285
+ } | {
2286
+ readonly _tag: "replacedClass";
2287
+ readonly replacedClass: {};
2288
+ } | {
2289
+ readonly _tag: "deployedContract";
2290
+ readonly deployedContract: {};
2291
+ } | undefined;
2292
+ }[] | undefined;
2293
+ readonly nonceUpdates?: readonly {
2294
+ readonly id?: number | undefined;
2295
+ readonly contractAddress?: `0x${string}` | undefined;
2296
+ }[] | undefined;
1861
2297
  }, overrideOptions?: _effect_schema_AST.ParseOptions) => Uint8Array;
1862
2298
  declare const filterFromBytes: (i: Uint8Array, overrideOptions?: _effect_schema_AST.ParseOptions) => {
1863
- readonly header?: {
1864
- readonly always?: boolean | undefined;
1865
- } | undefined;
2299
+ readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
1866
2300
  readonly transactions?: readonly {
1867
2301
  readonly id?: number | undefined;
1868
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2302
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1869
2303
  readonly includeReceipt?: boolean | undefined;
1870
2304
  readonly includeMessages?: boolean | undefined;
1871
2305
  readonly includeEvents?: boolean | undefined;
@@ -1907,7 +2341,7 @@ declare const filterFromBytes: (i: Uint8Array, overrideOptions?: _effect_schema_
1907
2341
  readonly events?: readonly {
1908
2342
  readonly keys?: readonly (`0x${string}` | null)[] | undefined;
1909
2343
  readonly id?: number | undefined;
1910
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2344
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1911
2345
  readonly includeReceipt?: boolean | undefined;
1912
2346
  readonly includeMessages?: boolean | undefined;
1913
2347
  readonly address?: `0x${string}` | undefined;
@@ -1917,13 +2351,34 @@ declare const filterFromBytes: (i: Uint8Array, overrideOptions?: _effect_schema_
1917
2351
  }[] | undefined;
1918
2352
  readonly messages?: readonly {
1919
2353
  readonly id?: number | undefined;
1920
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
2354
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
1921
2355
  readonly includeReceipt?: boolean | undefined;
1922
2356
  readonly includeEvents?: boolean | undefined;
1923
2357
  readonly includeTransaction?: boolean | undefined;
1924
2358
  readonly fromAddress?: `0x${string}` | undefined;
1925
2359
  readonly toAddress?: `0x${string}` | undefined;
1926
2360
  }[] | undefined;
2361
+ readonly storageDiffs?: readonly {
2362
+ readonly id?: number | undefined;
2363
+ readonly contractAddress?: `0x${string}` | undefined;
2364
+ }[] | undefined;
2365
+ readonly contractChanges?: readonly {
2366
+ readonly id?: number | undefined;
2367
+ readonly change?: {
2368
+ readonly _tag: "declaredClass";
2369
+ readonly declaredClass: {};
2370
+ } | {
2371
+ readonly _tag: "replacedClass";
2372
+ readonly replacedClass: {};
2373
+ } | {
2374
+ readonly _tag: "deployedContract";
2375
+ readonly deployedContract: {};
2376
+ } | undefined;
2377
+ }[] | undefined;
2378
+ readonly nonceUpdates?: readonly {
2379
+ readonly id?: number | undefined;
2380
+ readonly contractAddress?: `0x${string}` | undefined;
2381
+ }[] | undefined;
1927
2382
  };
1928
2383
  declare function mergeFilter(a: Filter, b: Filter): Filter;
1929
2384
 
@@ -3279,36 +3734,235 @@ declare const MessageToL1: Schema.Struct<{
3279
3734
  transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>>;
3280
3735
  }>;
3281
3736
  type MessageToL1 = typeof MessageToL1.Type;
3282
- /** A block.
3737
+ /** An entry in the storage diff.
3283
3738
  *
3284
- * @prop header The block header.
3285
- * @prop transactions The transactions in the block.
3286
- * @prop receipts The receipts of the transactions.
3287
- * @prop events The events emitted by the transactions.
3288
- * @prop messages The messages sent to L1 by the transactions.
3739
+ * @prop key The storage location.
3740
+ * @prop value The new value at the storage location.
3289
3741
  */
3290
- declare const Block: Schema.Struct<{
3291
- header: Schema.optional<Schema.Struct<{
3292
- blockHash: Schema.optional<Schema.transform<Schema.Struct<{
3742
+ declare const StorageEntry: Schema.Struct<{
3743
+ key: Schema.optional<Schema.transform<Schema.Struct<{
3744
+ x0: typeof Schema.BigIntFromSelf;
3745
+ x1: typeof Schema.BigIntFromSelf;
3746
+ x2: typeof Schema.BigIntFromSelf;
3747
+ x3: typeof Schema.BigIntFromSelf;
3748
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3749
+ value: Schema.optional<Schema.transform<Schema.Struct<{
3750
+ x0: typeof Schema.BigIntFromSelf;
3751
+ x1: typeof Schema.BigIntFromSelf;
3752
+ x2: typeof Schema.BigIntFromSelf;
3753
+ x3: typeof Schema.BigIntFromSelf;
3754
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3755
+ }>;
3756
+ type StorageEntry = typeof StorageEntry.Type;
3757
+ /** Storage diff.
3758
+ *
3759
+ * @prop contractAddress The contract address.
3760
+ * @prop storageEntries The entries that changed.
3761
+ */
3762
+ declare const StorageDiff: Schema.Struct<{
3763
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
3764
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3765
+ x0: typeof Schema.BigIntFromSelf;
3766
+ x1: typeof Schema.BigIntFromSelf;
3767
+ x2: typeof Schema.BigIntFromSelf;
3768
+ x3: typeof Schema.BigIntFromSelf;
3769
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3770
+ storageEntries: Schema.optional<Schema.Array$<Schema.Struct<{
3771
+ key: Schema.optional<Schema.transform<Schema.Struct<{
3293
3772
  x0: typeof Schema.BigIntFromSelf;
3294
3773
  x1: typeof Schema.BigIntFromSelf;
3295
3774
  x2: typeof Schema.BigIntFromSelf;
3296
3775
  x3: typeof Schema.BigIntFromSelf;
3297
3776
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3298
- parentBlockHash: Schema.optional<Schema.transform<Schema.Struct<{
3777
+ value: Schema.optional<Schema.transform<Schema.Struct<{
3299
3778
  x0: typeof Schema.BigIntFromSelf;
3300
3779
  x1: typeof Schema.BigIntFromSelf;
3301
3780
  x2: typeof Schema.BigIntFromSelf;
3302
3781
  x3: typeof Schema.BigIntFromSelf;
3303
3782
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3304
- blockNumber: typeof Schema.BigIntFromSelf;
3305
- sequencerAddress: Schema.optional<Schema.transform<Schema.Struct<{
3783
+ }>>>;
3784
+ }>;
3785
+ type StorageDiff = typeof StorageDiff.Type;
3786
+ /** A new class declared.
3787
+ *
3788
+ * @prop classHash The class hash.
3789
+ * @prop compiledClassHash The compiled class hash. If undefined, it's the result of a deprecated Cairo 0 declaration.
3790
+ */
3791
+ declare const DeclaredClass: Schema.Struct<{
3792
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
3793
+ declaredClass: Schema.Struct<{
3794
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3306
3795
  x0: typeof Schema.BigIntFromSelf;
3307
3796
  x1: typeof Schema.BigIntFromSelf;
3308
3797
  x2: typeof Schema.BigIntFromSelf;
3309
3798
  x3: typeof Schema.BigIntFromSelf;
3310
3799
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3311
- newRoot: Schema.optional<Schema.transform<Schema.Struct<{
3800
+ compiledClassHash: Schema.optional<Schema.transform<Schema.Struct<{
3801
+ x0: typeof Schema.BigIntFromSelf;
3802
+ x1: typeof Schema.BigIntFromSelf;
3803
+ x2: typeof Schema.BigIntFromSelf;
3804
+ x3: typeof Schema.BigIntFromSelf;
3805
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3806
+ }>;
3807
+ }>;
3808
+ type DeclaredClass = typeof DeclaredClass.Type;
3809
+ /** A class replaced.
3810
+ *
3811
+ * @prop contractAddress The contract address.
3812
+ * @prop classHash The class new hash.
3813
+ */
3814
+ declare const ReplacedClass: Schema.Struct<{
3815
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
3816
+ replacedClass: Schema.Struct<{
3817
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3818
+ x0: typeof Schema.BigIntFromSelf;
3819
+ x1: typeof Schema.BigIntFromSelf;
3820
+ x2: typeof Schema.BigIntFromSelf;
3821
+ x3: typeof Schema.BigIntFromSelf;
3822
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3823
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3824
+ x0: typeof Schema.BigIntFromSelf;
3825
+ x1: typeof Schema.BigIntFromSelf;
3826
+ x2: typeof Schema.BigIntFromSelf;
3827
+ x3: typeof Schema.BigIntFromSelf;
3828
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3829
+ }>;
3830
+ }>;
3831
+ type ReplacedClass = typeof ReplacedClass.Type;
3832
+ /** A contract deployed.
3833
+ *
3834
+ * @prop contractAddress The contract address.
3835
+ * @prop classHash The class hash.
3836
+ */
3837
+ declare const DeployedContract: Schema.Struct<{
3838
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
3839
+ deployedContract: Schema.Struct<{
3840
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3841
+ x0: typeof Schema.BigIntFromSelf;
3842
+ x1: typeof Schema.BigIntFromSelf;
3843
+ x2: typeof Schema.BigIntFromSelf;
3844
+ x3: typeof Schema.BigIntFromSelf;
3845
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3846
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3847
+ x0: typeof Schema.BigIntFromSelf;
3848
+ x1: typeof Schema.BigIntFromSelf;
3849
+ x2: typeof Schema.BigIntFromSelf;
3850
+ x3: typeof Schema.BigIntFromSelf;
3851
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3852
+ }>;
3853
+ }>;
3854
+ type DeployedContract = typeof DeployedContract.Type;
3855
+ /** A contract change.
3856
+ *
3857
+ * @prop contractAddress The contract address.
3858
+ * @prop change The change.
3859
+ */
3860
+ declare const ContractChange: Schema.Struct<{
3861
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
3862
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
3863
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
3864
+ declaredClass: Schema.Struct<{
3865
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3866
+ x0: typeof Schema.BigIntFromSelf;
3867
+ x1: typeof Schema.BigIntFromSelf;
3868
+ x2: typeof Schema.BigIntFromSelf;
3869
+ x3: typeof Schema.BigIntFromSelf;
3870
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3871
+ compiledClassHash: Schema.optional<Schema.transform<Schema.Struct<{
3872
+ x0: typeof Schema.BigIntFromSelf;
3873
+ x1: typeof Schema.BigIntFromSelf;
3874
+ x2: typeof Schema.BigIntFromSelf;
3875
+ x3: typeof Schema.BigIntFromSelf;
3876
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3877
+ }>;
3878
+ }>, Schema.Struct<{
3879
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
3880
+ replacedClass: Schema.Struct<{
3881
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3882
+ x0: typeof Schema.BigIntFromSelf;
3883
+ x1: typeof Schema.BigIntFromSelf;
3884
+ x2: typeof Schema.BigIntFromSelf;
3885
+ x3: typeof Schema.BigIntFromSelf;
3886
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3887
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3888
+ x0: typeof Schema.BigIntFromSelf;
3889
+ x1: typeof Schema.BigIntFromSelf;
3890
+ x2: typeof Schema.BigIntFromSelf;
3891
+ x3: typeof Schema.BigIntFromSelf;
3892
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3893
+ }>;
3894
+ }>, Schema.Struct<{
3895
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
3896
+ deployedContract: Schema.Struct<{
3897
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3898
+ x0: typeof Schema.BigIntFromSelf;
3899
+ x1: typeof Schema.BigIntFromSelf;
3900
+ x2: typeof Schema.BigIntFromSelf;
3901
+ x3: typeof Schema.BigIntFromSelf;
3902
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3903
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
3904
+ x0: typeof Schema.BigIntFromSelf;
3905
+ x1: typeof Schema.BigIntFromSelf;
3906
+ x2: typeof Schema.BigIntFromSelf;
3907
+ x3: typeof Schema.BigIntFromSelf;
3908
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3909
+ }>;
3910
+ }>]>>;
3911
+ }>;
3912
+ type ContractChange = typeof ContractChange.Type;
3913
+ /** A nonce update.
3914
+ *
3915
+ * @prop contractAddress The contract address.
3916
+ * @prop nonce The new nonce.
3917
+ */
3918
+ declare const NonceUpdate: Schema.Struct<{
3919
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
3920
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
3921
+ x0: typeof Schema.BigIntFromSelf;
3922
+ x1: typeof Schema.BigIntFromSelf;
3923
+ x2: typeof Schema.BigIntFromSelf;
3924
+ x3: typeof Schema.BigIntFromSelf;
3925
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3926
+ nonce: Schema.optional<Schema.transform<Schema.Struct<{
3927
+ x0: typeof Schema.BigIntFromSelf;
3928
+ x1: typeof Schema.BigIntFromSelf;
3929
+ x2: typeof Schema.BigIntFromSelf;
3930
+ x3: typeof Schema.BigIntFromSelf;
3931
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3932
+ }>;
3933
+ type NonceUpdate = typeof NonceUpdate.Type;
3934
+ /** A block.
3935
+ *
3936
+ * @prop header The block header.
3937
+ * @prop transactions The transactions in the block.
3938
+ * @prop receipts The receipts of the transactions.
3939
+ * @prop events The events emitted by the transactions.
3940
+ * @prop messages The messages sent to L1 by the transactions.
3941
+ * @prop storageDiffs The changes to the storage.
3942
+ * @prop contractChanges The changes to contracts and classes.
3943
+ */
3944
+ declare const Block: Schema.Struct<{
3945
+ header: Schema.optional<Schema.Struct<{
3946
+ blockHash: Schema.optional<Schema.transform<Schema.Struct<{
3947
+ x0: typeof Schema.BigIntFromSelf;
3948
+ x1: typeof Schema.BigIntFromSelf;
3949
+ x2: typeof Schema.BigIntFromSelf;
3950
+ x3: typeof Schema.BigIntFromSelf;
3951
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3952
+ parentBlockHash: Schema.optional<Schema.transform<Schema.Struct<{
3953
+ x0: typeof Schema.BigIntFromSelf;
3954
+ x1: typeof Schema.BigIntFromSelf;
3955
+ x2: typeof Schema.BigIntFromSelf;
3956
+ x3: typeof Schema.BigIntFromSelf;
3957
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3958
+ blockNumber: typeof Schema.BigIntFromSelf;
3959
+ sequencerAddress: Schema.optional<Schema.transform<Schema.Struct<{
3960
+ x0: typeof Schema.BigIntFromSelf;
3961
+ x1: typeof Schema.BigIntFromSelf;
3962
+ x2: typeof Schema.BigIntFromSelf;
3963
+ x3: typeof Schema.BigIntFromSelf;
3964
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3965
+ newRoot: Schema.optional<Schema.transform<Schema.Struct<{
3312
3966
  x0: typeof Schema.BigIntFromSelf;
3313
3967
  x1: typeof Schema.BigIntFromSelf;
3314
3968
  x2: typeof Schema.BigIntFromSelf;
@@ -3938,6 +4592,96 @@ declare const Block: Schema.Struct<{
3938
4592
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
3939
4593
  transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>>;
3940
4594
  }>>;
4595
+ storageDiffs: Schema.Array$<Schema.Struct<{
4596
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
4597
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
4598
+ x0: typeof Schema.BigIntFromSelf;
4599
+ x1: typeof Schema.BigIntFromSelf;
4600
+ x2: typeof Schema.BigIntFromSelf;
4601
+ x3: typeof Schema.BigIntFromSelf;
4602
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4603
+ storageEntries: Schema.optional<Schema.Array$<Schema.Struct<{
4604
+ key: Schema.optional<Schema.transform<Schema.Struct<{
4605
+ x0: typeof Schema.BigIntFromSelf;
4606
+ x1: typeof Schema.BigIntFromSelf;
4607
+ x2: typeof Schema.BigIntFromSelf;
4608
+ x3: typeof Schema.BigIntFromSelf;
4609
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4610
+ value: Schema.optional<Schema.transform<Schema.Struct<{
4611
+ x0: typeof Schema.BigIntFromSelf;
4612
+ x1: typeof Schema.BigIntFromSelf;
4613
+ x2: typeof Schema.BigIntFromSelf;
4614
+ x3: typeof Schema.BigIntFromSelf;
4615
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4616
+ }>>>;
4617
+ }>>;
4618
+ contractChanges: Schema.Array$<Schema.Struct<{
4619
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
4620
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
4621
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
4622
+ declaredClass: Schema.Struct<{
4623
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
4624
+ x0: typeof Schema.BigIntFromSelf;
4625
+ x1: typeof Schema.BigIntFromSelf;
4626
+ x2: typeof Schema.BigIntFromSelf;
4627
+ x3: typeof Schema.BigIntFromSelf;
4628
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4629
+ compiledClassHash: Schema.optional<Schema.transform<Schema.Struct<{
4630
+ x0: typeof Schema.BigIntFromSelf;
4631
+ x1: typeof Schema.BigIntFromSelf;
4632
+ x2: typeof Schema.BigIntFromSelf;
4633
+ x3: typeof Schema.BigIntFromSelf;
4634
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4635
+ }>;
4636
+ }>, Schema.Struct<{
4637
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
4638
+ replacedClass: Schema.Struct<{
4639
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
4640
+ x0: typeof Schema.BigIntFromSelf;
4641
+ x1: typeof Schema.BigIntFromSelf;
4642
+ x2: typeof Schema.BigIntFromSelf;
4643
+ x3: typeof Schema.BigIntFromSelf;
4644
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4645
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
4646
+ x0: typeof Schema.BigIntFromSelf;
4647
+ x1: typeof Schema.BigIntFromSelf;
4648
+ x2: typeof Schema.BigIntFromSelf;
4649
+ x3: typeof Schema.BigIntFromSelf;
4650
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4651
+ }>;
4652
+ }>, Schema.Struct<{
4653
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
4654
+ deployedContract: Schema.Struct<{
4655
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
4656
+ x0: typeof Schema.BigIntFromSelf;
4657
+ x1: typeof Schema.BigIntFromSelf;
4658
+ x2: typeof Schema.BigIntFromSelf;
4659
+ x3: typeof Schema.BigIntFromSelf;
4660
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4661
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
4662
+ x0: typeof Schema.BigIntFromSelf;
4663
+ x1: typeof Schema.BigIntFromSelf;
4664
+ x2: typeof Schema.BigIntFromSelf;
4665
+ x3: typeof Schema.BigIntFromSelf;
4666
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4667
+ }>;
4668
+ }>]>>;
4669
+ }>>;
4670
+ nonceUpdates: Schema.Array$<Schema.Struct<{
4671
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
4672
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
4673
+ x0: typeof Schema.BigIntFromSelf;
4674
+ x1: typeof Schema.BigIntFromSelf;
4675
+ x2: typeof Schema.BigIntFromSelf;
4676
+ x3: typeof Schema.BigIntFromSelf;
4677
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4678
+ nonce: Schema.optional<Schema.transform<Schema.Struct<{
4679
+ x0: typeof Schema.BigIntFromSelf;
4680
+ x1: typeof Schema.BigIntFromSelf;
4681
+ x2: typeof Schema.BigIntFromSelf;
4682
+ x3: typeof Schema.BigIntFromSelf;
4683
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4684
+ }>>;
3941
4685
  }>;
3942
4686
  type Block = typeof Block.Type;
3943
4687
  declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Array, never>, Schema.NullOr<Schema.Struct<{
@@ -4591,6 +5335,96 @@ declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Ar
4591
5335
  }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
4592
5336
  transactionStatus: Schema.optional<Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>>;
4593
5337
  }>>;
5338
+ storageDiffs: Schema.Array$<Schema.Struct<{
5339
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
5340
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
5341
+ x0: typeof Schema.BigIntFromSelf;
5342
+ x1: typeof Schema.BigIntFromSelf;
5343
+ x2: typeof Schema.BigIntFromSelf;
5344
+ x3: typeof Schema.BigIntFromSelf;
5345
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5346
+ storageEntries: Schema.optional<Schema.Array$<Schema.Struct<{
5347
+ key: Schema.optional<Schema.transform<Schema.Struct<{
5348
+ x0: typeof Schema.BigIntFromSelf;
5349
+ x1: typeof Schema.BigIntFromSelf;
5350
+ x2: typeof Schema.BigIntFromSelf;
5351
+ x3: typeof Schema.BigIntFromSelf;
5352
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5353
+ value: Schema.optional<Schema.transform<Schema.Struct<{
5354
+ x0: typeof Schema.BigIntFromSelf;
5355
+ x1: typeof Schema.BigIntFromSelf;
5356
+ x2: typeof Schema.BigIntFromSelf;
5357
+ x3: typeof Schema.BigIntFromSelf;
5358
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5359
+ }>>>;
5360
+ }>>;
5361
+ contractChanges: Schema.Array$<Schema.Struct<{
5362
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
5363
+ change: Schema.optional<Schema.Union<[Schema.Struct<{
5364
+ _tag: Schema.PropertySignature<":", "declaredClass", "$case", ":", "declaredClass", false, never>;
5365
+ declaredClass: Schema.Struct<{
5366
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
5367
+ x0: typeof Schema.BigIntFromSelf;
5368
+ x1: typeof Schema.BigIntFromSelf;
5369
+ x2: typeof Schema.BigIntFromSelf;
5370
+ x3: typeof Schema.BigIntFromSelf;
5371
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5372
+ compiledClassHash: Schema.optional<Schema.transform<Schema.Struct<{
5373
+ x0: typeof Schema.BigIntFromSelf;
5374
+ x1: typeof Schema.BigIntFromSelf;
5375
+ x2: typeof Schema.BigIntFromSelf;
5376
+ x3: typeof Schema.BigIntFromSelf;
5377
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5378
+ }>;
5379
+ }>, Schema.Struct<{
5380
+ _tag: Schema.PropertySignature<":", "replacedClass", "$case", ":", "replacedClass", false, never>;
5381
+ replacedClass: Schema.Struct<{
5382
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
5383
+ x0: typeof Schema.BigIntFromSelf;
5384
+ x1: typeof Schema.BigIntFromSelf;
5385
+ x2: typeof Schema.BigIntFromSelf;
5386
+ x3: typeof Schema.BigIntFromSelf;
5387
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5388
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
5389
+ x0: typeof Schema.BigIntFromSelf;
5390
+ x1: typeof Schema.BigIntFromSelf;
5391
+ x2: typeof Schema.BigIntFromSelf;
5392
+ x3: typeof Schema.BigIntFromSelf;
5393
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5394
+ }>;
5395
+ }>, Schema.Struct<{
5396
+ _tag: Schema.PropertySignature<":", "deployedContract", "$case", ":", "deployedContract", false, never>;
5397
+ deployedContract: Schema.Struct<{
5398
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
5399
+ x0: typeof Schema.BigIntFromSelf;
5400
+ x1: typeof Schema.BigIntFromSelf;
5401
+ x2: typeof Schema.BigIntFromSelf;
5402
+ x3: typeof Schema.BigIntFromSelf;
5403
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5404
+ classHash: Schema.optional<Schema.transform<Schema.Struct<{
5405
+ x0: typeof Schema.BigIntFromSelf;
5406
+ x1: typeof Schema.BigIntFromSelf;
5407
+ x2: typeof Schema.BigIntFromSelf;
5408
+ x3: typeof Schema.BigIntFromSelf;
5409
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5410
+ }>;
5411
+ }>]>>;
5412
+ }>>;
5413
+ nonceUpdates: Schema.Array$<Schema.Struct<{
5414
+ filterIds: Schema.optional<Schema.Array$<typeof Schema.Number>>;
5415
+ contractAddress: Schema.optional<Schema.transform<Schema.Struct<{
5416
+ x0: typeof Schema.BigIntFromSelf;
5417
+ x1: typeof Schema.BigIntFromSelf;
5418
+ x2: typeof Schema.BigIntFromSelf;
5419
+ x3: typeof Schema.BigIntFromSelf;
5420
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5421
+ nonce: Schema.optional<Schema.transform<Schema.Struct<{
5422
+ x0: typeof Schema.BigIntFromSelf;
5423
+ x1: typeof Schema.BigIntFromSelf;
5424
+ x2: typeof Schema.BigIntFromSelf;
5425
+ x3: typeof Schema.BigIntFromSelf;
5426
+ }>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
5427
+ }>>;
4594
5428
  }>>>;
4595
5429
 
4596
5430
  /** Returns the transaction receipt for the given transaction index. */
@@ -4599,12 +5433,10 @@ declare function getReceipt(transactionIndex: number, receipts: readonly Transac
4599
5433
  declare function getTransaction(transactionIndex: number, transactions: readonly Transaction[]): Transaction | undefined;
4600
5434
 
4601
5435
  declare const StarknetStream: StreamConfig<{
4602
- readonly header?: {
4603
- readonly always?: boolean | undefined;
4604
- } | undefined;
5436
+ readonly header?: "always" | "on_data" | "on_data_or_on_new_block" | "unknown" | undefined;
4605
5437
  readonly transactions?: readonly {
4606
5438
  readonly id?: number | undefined;
4607
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
5439
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
4608
5440
  readonly includeReceipt?: boolean | undefined;
4609
5441
  readonly includeMessages?: boolean | undefined;
4610
5442
  readonly includeEvents?: boolean | undefined;
@@ -4646,7 +5478,7 @@ declare const StarknetStream: StreamConfig<{
4646
5478
  readonly events?: readonly {
4647
5479
  readonly keys?: readonly (`0x${string}` | null)[] | undefined;
4648
5480
  readonly id?: number | undefined;
4649
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
5481
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
4650
5482
  readonly includeReceipt?: boolean | undefined;
4651
5483
  readonly includeMessages?: boolean | undefined;
4652
5484
  readonly address?: `0x${string}` | undefined;
@@ -4656,13 +5488,34 @@ declare const StarknetStream: StreamConfig<{
4656
5488
  }[] | undefined;
4657
5489
  readonly messages?: readonly {
4658
5490
  readonly id?: number | undefined;
4659
- readonly transactionStatus?: "succeeded" | "reverted" | "all" | "unknown" | undefined;
5491
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | "all" | undefined;
4660
5492
  readonly includeReceipt?: boolean | undefined;
4661
5493
  readonly includeEvents?: boolean | undefined;
4662
5494
  readonly includeTransaction?: boolean | undefined;
4663
5495
  readonly fromAddress?: `0x${string}` | undefined;
4664
5496
  readonly toAddress?: `0x${string}` | undefined;
4665
5497
  }[] | undefined;
5498
+ readonly storageDiffs?: readonly {
5499
+ readonly id?: number | undefined;
5500
+ readonly contractAddress?: `0x${string}` | undefined;
5501
+ }[] | undefined;
5502
+ readonly contractChanges?: readonly {
5503
+ readonly id?: number | undefined;
5504
+ readonly change?: {
5505
+ readonly _tag: "declaredClass";
5506
+ readonly declaredClass: {};
5507
+ } | {
5508
+ readonly _tag: "replacedClass";
5509
+ readonly replacedClass: {};
5510
+ } | {
5511
+ readonly _tag: "deployedContract";
5512
+ readonly deployedContract: {};
5513
+ } | undefined;
5514
+ }[] | undefined;
5515
+ readonly nonceUpdates?: readonly {
5516
+ readonly id?: number | undefined;
5517
+ readonly contractAddress?: `0x${string}` | undefined;
5518
+ }[] | undefined;
4666
5519
  }, {
4667
5520
  readonly header?: {
4668
5521
  readonly blockHash?: `0x${string}` | undefined;
@@ -4685,16 +5538,16 @@ declare const StarknetStream: StreamConfig<{
4685
5538
  readonly transactions: readonly {
4686
5539
  readonly filterIds?: readonly number[] | undefined;
4687
5540
  readonly meta?: {
4688
- readonly transactionStatus?: "succeeded" | "reverted" | "unknown" | undefined;
5541
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | undefined;
4689
5542
  readonly transactionIndex?: number | undefined;
4690
5543
  readonly transactionHash?: `0x${string}` | undefined;
4691
5544
  } | undefined;
4692
5545
  readonly transaction?: {
4693
5546
  readonly _tag: "invokeV0";
4694
5547
  readonly invokeV0: {
5548
+ readonly contractAddress?: `0x${string}` | undefined;
4695
5549
  readonly maxFee?: `0x${string}` | undefined;
4696
5550
  readonly signature?: readonly `0x${string}`[] | undefined;
4697
- readonly contractAddress?: `0x${string}` | undefined;
4698
5551
  readonly entryPointSelector?: `0x${string}` | undefined;
4699
5552
  readonly calldata?: readonly `0x${string}`[] | undefined;
4700
5553
  };
@@ -4833,7 +5686,7 @@ declare const StarknetStream: StreamConfig<{
4833
5686
  }[];
4834
5687
  readonly events: readonly {
4835
5688
  readonly keys?: readonly `0x${string}`[] | undefined;
4836
- readonly transactionStatus?: "succeeded" | "reverted" | "unknown" | undefined;
5689
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | undefined;
4837
5690
  readonly address?: `0x${string}` | undefined;
4838
5691
  readonly filterIds?: readonly number[] | undefined;
4839
5692
  readonly transactionIndex?: number | undefined;
@@ -4842,7 +5695,7 @@ declare const StarknetStream: StreamConfig<{
4842
5695
  readonly eventIndex?: number | undefined;
4843
5696
  }[];
4844
5697
  readonly messages: readonly {
4845
- readonly transactionStatus?: "succeeded" | "reverted" | "unknown" | undefined;
5698
+ readonly transactionStatus?: "unknown" | "succeeded" | "reverted" | undefined;
4846
5699
  readonly fromAddress?: `0x${string}` | undefined;
4847
5700
  readonly toAddress?: `0x${string}` | undefined;
4848
5701
  readonly filterIds?: readonly number[] | undefined;
@@ -4851,6 +5704,41 @@ declare const StarknetStream: StreamConfig<{
4851
5704
  readonly payload?: readonly `0x${string}`[] | undefined;
4852
5705
  readonly messageIndex?: number | undefined;
4853
5706
  }[];
5707
+ readonly storageDiffs: readonly {
5708
+ readonly contractAddress?: `0x${string}` | undefined;
5709
+ readonly filterIds?: readonly number[] | undefined;
5710
+ readonly storageEntries?: readonly {
5711
+ readonly key?: `0x${string}` | undefined;
5712
+ readonly value?: `0x${string}` | undefined;
5713
+ }[] | undefined;
5714
+ }[];
5715
+ readonly contractChanges: readonly {
5716
+ readonly change?: {
5717
+ readonly _tag: "declaredClass";
5718
+ readonly declaredClass: {
5719
+ readonly classHash?: `0x${string}` | undefined;
5720
+ readonly compiledClassHash?: `0x${string}` | undefined;
5721
+ };
5722
+ } | {
5723
+ readonly _tag: "replacedClass";
5724
+ readonly replacedClass: {
5725
+ readonly contractAddress?: `0x${string}` | undefined;
5726
+ readonly classHash?: `0x${string}` | undefined;
5727
+ };
5728
+ } | {
5729
+ readonly _tag: "deployedContract";
5730
+ readonly deployedContract: {
5731
+ readonly contractAddress?: `0x${string}` | undefined;
5732
+ readonly classHash?: `0x${string}` | undefined;
5733
+ };
5734
+ } | undefined;
5735
+ readonly filterIds?: readonly number[] | undefined;
5736
+ }[];
5737
+ readonly nonceUpdates: readonly {
5738
+ readonly contractAddress?: `0x${string}` | undefined;
5739
+ readonly filterIds?: readonly number[] | undefined;
5740
+ readonly nonce?: `0x${string}` | undefined;
5741
+ }[];
4854
5742
  readonly receipts: readonly {
4855
5743
  readonly filterIds?: readonly number[] | undefined;
4856
5744
  readonly meta?: {
@@ -4913,4 +5801,4 @@ declare const StarknetStream: StreamConfig<{
4913
5801
  }[];
4914
5802
  }>;
4915
5803
 
4916
- export { Block, BlockFromBytes, BlockHeader, ComputationResources, DataAvailabilityMode, DataAvailabilityResources, DeclareTransactionReceipt, DeclareTransactionV0, DeclareTransactionV1, DeclareTransactionV2, DeclareTransactionV3, DeclareV0TransactionFilter, DeclareV1TransactionFilter, DeclareV2TransactionFilter, DeclareV3TransactionFilter, DeployAccountTransactionReceipt, DeployAccountTransactionV1, DeployAccountTransactionV3, DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter, DeployTransaction, DeployTransactionFilter, DeployTransactionReceipt, Event, EventFilter, ExecutionResources, ExecutionReverted, ExecutionSucceeded, FeePayment, FieldElement, FieldElementProto, Filter, FilterFromBytes, HeaderFilter, InvokeTransactionReceipt, InvokeTransactionV0, InvokeTransactionV0Filter, InvokeTransactionV1, InvokeTransactionV1Filter, InvokeTransactionV3, InvokeTransactionV3Filter, Key, L1DataAvailabilityMode, L1HandlerTransaction, L1HandlerTransactionFilter, L1HandlerTransactionReceipt, MessageToL1, MessageToL1Filter, PriceUnit, ResourceBounds, ResourceBoundsMapping, ResourcePrice, StarknetStream, Transaction, TransactionFilter, TransactionMeta, TransactionReceipt, TransactionReceiptMeta, TransactionStatus, TransactionStatusFilter, U128, feltFromProto, feltToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, getReceipt, getTransaction, mergeFilter, index as proto };
5804
+ export { Block, BlockFromBytes, BlockHeader, ComputationResources, ContractChange, ContractChangeFilter, DataAvailabilityMode, DataAvailabilityResources, DeclareTransactionReceipt, DeclareTransactionV0, DeclareTransactionV1, DeclareTransactionV2, DeclareTransactionV3, DeclareV0TransactionFilter, DeclareV1TransactionFilter, DeclareV2TransactionFilter, DeclareV3TransactionFilter, DeclaredClass, DeclaredClassFilter, DeployAccountTransactionReceipt, DeployAccountTransactionV1, DeployAccountTransactionV3, DeployAccountV1TransactionFilter, DeployAccountV3TransactionFilter, DeployTransaction, DeployTransactionFilter, DeployTransactionReceipt, DeployedContract, DeployedContractFilter, Event, EventFilter, ExecutionResources, ExecutionReverted, ExecutionSucceeded, FeePayment, FieldElement, FieldElementProto, Filter, FilterFromBytes, HeaderFilter, InvokeTransactionReceipt, InvokeTransactionV0, InvokeTransactionV0Filter, InvokeTransactionV1, InvokeTransactionV1Filter, InvokeTransactionV3, InvokeTransactionV3Filter, Key, L1DataAvailabilityMode, L1HandlerTransaction, L1HandlerTransactionFilter, L1HandlerTransactionReceipt, MessageToL1, MessageToL1Filter, NonceUpdate, NonceUpdateFilter, PriceUnit, ReplacedClass, ReplacedClassFilter, ResourceBounds, ResourceBoundsMapping, ResourcePrice, StarknetStream, StorageDiff, StorageDiffFilter, StorageEntry, Transaction, TransactionFilter, TransactionMeta, TransactionReceipt, TransactionReceiptMeta, TransactionStatus, TransactionStatusFilter, U128, feltFromProto, feltToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, getReceipt, getTransaction, mergeFilter, index as proto };