@apibara/evm 2.1.0-beta.33 → 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 +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/block.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -840,7 +840,7 @@ declare const TransactionStatus: Codec<"unknown" | "succeeded" | "reverted", Tra
|
|
|
840
840
|
type TransactionStatus = CodecType<typeof TransactionStatus>;
|
|
841
841
|
declare const BlockHeader: MessageCodec<{
|
|
842
842
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
843
|
-
blockHash: Codec<`0x${string}
|
|
843
|
+
blockHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
|
|
844
844
|
parentBlockHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
845
845
|
unclesHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
846
846
|
miner: Codec<`0x${string}`, Address$1 | undefined>;
|
|
@@ -1351,7 +1351,7 @@ type TransactionTrace = CodecType<typeof TransactionTrace>;
|
|
|
1351
1351
|
declare const Block: MessageCodec<{
|
|
1352
1352
|
header: Codec<{
|
|
1353
1353
|
blockNumber: bigint;
|
|
1354
|
-
blockHash
|
|
1354
|
+
blockHash?: `0x${string}` | undefined;
|
|
1355
1355
|
parentBlockHash: `0x${string}`;
|
|
1356
1356
|
unclesHash: `0x${string}`;
|
|
1357
1357
|
miner: `0x${string}`;
|
|
@@ -1687,7 +1687,7 @@ declare const EvmStream: StreamConfig<Readonly<{
|
|
|
1687
1687
|
}>, {
|
|
1688
1688
|
header: {
|
|
1689
1689
|
blockNumber: bigint;
|
|
1690
|
-
blockHash
|
|
1690
|
+
blockHash?: `0x${string}` | undefined;
|
|
1691
1691
|
parentBlockHash: `0x${string}`;
|
|
1692
1692
|
unclesHash: `0x${string}`;
|
|
1693
1693
|
miner: `0x${string}`;
|
package/dist/index.d.mts
CHANGED
|
@@ -840,7 +840,7 @@ declare const TransactionStatus: Codec<"unknown" | "succeeded" | "reverted", Tra
|
|
|
840
840
|
type TransactionStatus = CodecType<typeof TransactionStatus>;
|
|
841
841
|
declare const BlockHeader: MessageCodec<{
|
|
842
842
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
843
|
-
blockHash: Codec<`0x${string}
|
|
843
|
+
blockHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
|
|
844
844
|
parentBlockHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
845
845
|
unclesHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
846
846
|
miner: Codec<`0x${string}`, Address$1 | undefined>;
|
|
@@ -1351,7 +1351,7 @@ type TransactionTrace = CodecType<typeof TransactionTrace>;
|
|
|
1351
1351
|
declare const Block: MessageCodec<{
|
|
1352
1352
|
header: Codec<{
|
|
1353
1353
|
blockNumber: bigint;
|
|
1354
|
-
blockHash
|
|
1354
|
+
blockHash?: `0x${string}` | undefined;
|
|
1355
1355
|
parentBlockHash: `0x${string}`;
|
|
1356
1356
|
unclesHash: `0x${string}`;
|
|
1357
1357
|
miner: `0x${string}`;
|
|
@@ -1687,7 +1687,7 @@ declare const EvmStream: StreamConfig<Readonly<{
|
|
|
1687
1687
|
}>, {
|
|
1688
1688
|
header: {
|
|
1689
1689
|
blockNumber: bigint;
|
|
1690
|
-
blockHash
|
|
1690
|
+
blockHash?: `0x${string}` | undefined;
|
|
1691
1691
|
parentBlockHash: `0x${string}`;
|
|
1692
1692
|
unclesHash: `0x${string}`;
|
|
1693
1693
|
miner: `0x${string}`;
|
package/dist/index.d.ts
CHANGED
|
@@ -840,7 +840,7 @@ declare const TransactionStatus: Codec<"unknown" | "succeeded" | "reverted", Tra
|
|
|
840
840
|
type TransactionStatus = CodecType<typeof TransactionStatus>;
|
|
841
841
|
declare const BlockHeader: MessageCodec<{
|
|
842
842
|
blockNumber: Codec<bigint, bigint | undefined>;
|
|
843
|
-
blockHash: Codec<`0x${string}
|
|
843
|
+
blockHash: Codec<`0x${string}` | undefined, B256$1 | undefined>;
|
|
844
844
|
parentBlockHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
845
845
|
unclesHash: Codec<`0x${string}`, B256$1 | undefined>;
|
|
846
846
|
miner: Codec<`0x${string}`, Address$1 | undefined>;
|
|
@@ -1351,7 +1351,7 @@ type TransactionTrace = CodecType<typeof TransactionTrace>;
|
|
|
1351
1351
|
declare const Block: MessageCodec<{
|
|
1352
1352
|
header: Codec<{
|
|
1353
1353
|
blockNumber: bigint;
|
|
1354
|
-
blockHash
|
|
1354
|
+
blockHash?: `0x${string}` | undefined;
|
|
1355
1355
|
parentBlockHash: `0x${string}`;
|
|
1356
1356
|
unclesHash: `0x${string}`;
|
|
1357
1357
|
miner: `0x${string}`;
|
|
@@ -1687,7 +1687,7 @@ declare const EvmStream: StreamConfig<Readonly<{
|
|
|
1687
1687
|
}>, {
|
|
1688
1688
|
header: {
|
|
1689
1689
|
blockNumber: bigint;
|
|
1690
|
-
blockHash
|
|
1690
|
+
blockHash?: `0x${string}` | undefined;
|
|
1691
1691
|
parentBlockHash: `0x${string}`;
|
|
1692
1692
|
unclesHash: `0x${string}`;
|
|
1693
1693
|
miner: `0x${string}`;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BytesFromUint8Array, StreamConfig } from '@apibara/protocol';
|
|
2
|
-
import { MessageCodec, RequiredCodec, BigIntCodec,
|
|
2
|
+
import { MessageCodec, RequiredCodec, BigIntCodec, OptionalCodec, DateCodec, ArrayCodec, NumberCodec, BooleanCodec, OneOfCodec, StringCodec } from '@apibara/protocol/codec';
|
|
3
3
|
import Long from 'long';
|
|
4
4
|
import _m0 from 'protobufjs/minimal.js';
|
|
5
5
|
|
|
@@ -4061,7 +4061,7 @@ const TransactionStatus = {
|
|
|
4061
4061
|
};
|
|
4062
4062
|
const BlockHeader = MessageCodec({
|
|
4063
4063
|
blockNumber: RequiredCodec(BigIntCodec),
|
|
4064
|
-
blockHash:
|
|
4064
|
+
blockHash: OptionalCodec(B256$1),
|
|
4065
4065
|
parentBlockHash: RequiredCodec(B256$1),
|
|
4066
4066
|
unclesHash: RequiredCodec(B256$1),
|
|
4067
4067
|
miner: RequiredCodec(Address$1),
|