Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP block events stream #1033

Closed
wants to merge 23 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into holic/block-events-st…
…ream
holic committed Jun 20, 2023
commit 48c2faa663af7a0616df61c0ced37d08e01afb03
3 changes: 1 addition & 2 deletions packages/protocol-parser/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Hex } from "viem";
import { DynamicAbiType, DynamicPrimitiveType } from "./dynamicAbiTypes";
import { StaticAbiType, StaticPrimitiveType } from "./staticAbiTypes";
import { DynamicAbiType, DynamicPrimitiveType, StaticAbiType, StaticPrimitiveType } from "@latticexyz/schema-type";

export type Schema = Readonly<{
staticDataLength: number;
12 changes: 8 additions & 4 deletions packages/protocol-parser/src/hexToSchema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Hex, hexToNumber, sliceHex } from "viem";
import { StaticAbiType, DynamicAbiType, staticAbiTypeToByteLength, schemaAbiTypes } from "@latticexyz/schema-type";
import {
StaticAbiType,
StaticPrimitiveType,
DynamicAbiType,
DynamicPrimitiveType,
staticAbiTypeToByteLength,
schemaAbiTypes,
} from "@latticexyz/schema-type";
import { Schema } from "./common";
import { StaticAbiType, StaticPrimitiveType, staticAbiTypeToByteLength } from "./staticAbiTypes";
import { DynamicAbiType, DynamicPrimitiveType } from "./dynamicAbiTypes";
import { schemaAbiTypes } from "./schemaAbiTypes";
import { InvalidHexLengthForSchemaError, SchemaStaticLengthMismatchError } from "./errors";
import { decodeStaticField } from "./decodeStaticField";
import { hexToPackedCounter } from "./hexToPackedCounter";
You are viewing a condensed version of this merge commit. You can view the full changes here.