@apibara/starknet 2.1.0-beta.32 → 2.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/block.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1466,7 +1466,7 @@ type DataAvailabilityMode = CodecType<typeof DataAvailabilityMode>;
|
|
|
1466
1466
|
* @prop l1DataAvailabilityMode How data is posted to L1.
|
|
1467
1467
|
*/
|
|
1468
1468
|
declare const BlockHeader: MessageCodec<{
|
|
1469
|
-
blockHash: Codec<`0x${string}
|
|
1469
|
+
blockHash: Codec<`0x${string}` | undefined, FieldElement | undefined>;
|
|
1470
1470
|
parentBlockHash: Codec<`0x${string}`, FieldElement | undefined>;
|
|
1471
1471
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
1472
1472
|
sequencerAddress: Codec<`0x${string}`, FieldElement | undefined>;
|
|
@@ -4733,7 +4733,7 @@ type TransactionTrace = Readonly<CodecType<typeof TransactionTrace>>;
|
|
|
4733
4733
|
*/
|
|
4734
4734
|
declare const Block: MessageCodec<{
|
|
4735
4735
|
header: Codec<{
|
|
4736
|
-
blockHash
|
|
4736
|
+
blockHash?: `0x${string}` | undefined;
|
|
4737
4737
|
parentBlockHash: `0x${string}`;
|
|
4738
4738
|
blockNumber: bigint;
|
|
4739
4739
|
sequencerAddress: `0x${string}`;
|
|
@@ -6154,7 +6154,7 @@ declare const StarknetStream: StreamConfig<Readonly<{
|
|
|
6154
6154
|
}[] | undefined;
|
|
6155
6155
|
}>, Readonly<{
|
|
6156
6156
|
header: {
|
|
6157
|
-
blockHash
|
|
6157
|
+
blockHash?: `0x${string}` | undefined;
|
|
6158
6158
|
parentBlockHash: `0x${string}`;
|
|
6159
6159
|
blockNumber: bigint;
|
|
6160
6160
|
sequencerAddress: `0x${string}`;
|
package/dist/index.d.mts
CHANGED
|
@@ -1466,7 +1466,7 @@ type DataAvailabilityMode = CodecType<typeof DataAvailabilityMode>;
|
|
|
1466
1466
|
* @prop l1DataAvailabilityMode How data is posted to L1.
|
|
1467
1467
|
*/
|
|
1468
1468
|
declare const BlockHeader: MessageCodec<{
|
|
1469
|
-
blockHash: Codec<`0x${string}
|
|
1469
|
+
blockHash: Codec<`0x${string}` | undefined, FieldElement | undefined>;
|
|
1470
1470
|
parentBlockHash: Codec<`0x${string}`, FieldElement | undefined>;
|
|
1471
1471
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
1472
1472
|
sequencerAddress: Codec<`0x${string}`, FieldElement | undefined>;
|
|
@@ -4733,7 +4733,7 @@ type TransactionTrace = Readonly<CodecType<typeof TransactionTrace>>;
|
|
|
4733
4733
|
*/
|
|
4734
4734
|
declare const Block: MessageCodec<{
|
|
4735
4735
|
header: Codec<{
|
|
4736
|
-
blockHash
|
|
4736
|
+
blockHash?: `0x${string}` | undefined;
|
|
4737
4737
|
parentBlockHash: `0x${string}`;
|
|
4738
4738
|
blockNumber: bigint;
|
|
4739
4739
|
sequencerAddress: `0x${string}`;
|
|
@@ -6154,7 +6154,7 @@ declare const StarknetStream: StreamConfig<Readonly<{
|
|
|
6154
6154
|
}[] | undefined;
|
|
6155
6155
|
}>, Readonly<{
|
|
6156
6156
|
header: {
|
|
6157
|
-
blockHash
|
|
6157
|
+
blockHash?: `0x${string}` | undefined;
|
|
6158
6158
|
parentBlockHash: `0x${string}`;
|
|
6159
6159
|
blockNumber: bigint;
|
|
6160
6160
|
sequencerAddress: `0x${string}`;
|
package/dist/index.d.ts
CHANGED
|
@@ -1466,7 +1466,7 @@ type DataAvailabilityMode = CodecType<typeof DataAvailabilityMode>;
|
|
|
1466
1466
|
* @prop l1DataAvailabilityMode How data is posted to L1.
|
|
1467
1467
|
*/
|
|
1468
1468
|
declare const BlockHeader: MessageCodec<{
|
|
1469
|
-
blockHash: Codec<`0x${string}
|
|
1469
|
+
blockHash: Codec<`0x${string}` | undefined, FieldElement | undefined>;
|
|
1470
1470
|
parentBlockHash: Codec<`0x${string}`, FieldElement | undefined>;
|
|
1471
1471
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
1472
1472
|
sequencerAddress: Codec<`0x${string}`, FieldElement | undefined>;
|
|
@@ -4733,7 +4733,7 @@ type TransactionTrace = Readonly<CodecType<typeof TransactionTrace>>;
|
|
|
4733
4733
|
*/
|
|
4734
4734
|
declare const Block: MessageCodec<{
|
|
4735
4735
|
header: Codec<{
|
|
4736
|
-
blockHash
|
|
4736
|
+
blockHash?: `0x${string}` | undefined;
|
|
4737
4737
|
parentBlockHash: `0x${string}`;
|
|
4738
4738
|
blockNumber: bigint;
|
|
4739
4739
|
sequencerAddress: `0x${string}`;
|
|
@@ -6154,7 +6154,7 @@ declare const StarknetStream: StreamConfig<Readonly<{
|
|
|
6154
6154
|
}[] | undefined;
|
|
6155
6155
|
}>, Readonly<{
|
|
6156
6156
|
header: {
|
|
6157
|
-
blockHash
|
|
6157
|
+
blockHash?: `0x${string}` | undefined;
|
|
6158
6158
|
parentBlockHash: `0x${string}`;
|
|
6159
6159
|
blockNumber: bigint;
|
|
6160
6160
|
sequencerAddress: `0x${string}`;
|
package/dist/index.mjs
CHANGED
|
@@ -7708,7 +7708,7 @@ const DataAvailabilityMode = {
|
|
|
7708
7708
|
}
|
|
7709
7709
|
};
|
|
7710
7710
|
const BlockHeader = MessageCodec({
|
|
7711
|
-
blockHash:
|
|
7711
|
+
blockHash: OptionalCodec(FieldElement$1),
|
|
7712
7712
|
parentBlockHash: RequiredCodec(FieldElement$1),
|
|
7713
7713
|
blockNumber: RequiredCodec(BigIntCodec),
|
|
7714
7714
|
sequencerAddress: RequiredCodec(FieldElement$1),
|