-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protocol: fix stream client to yield heartbeat messages
- Loading branch information
Showing
8 changed files
with
2,082 additions
and
1,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@apibara/protocol": patch | ||
--- | ||
|
||
Fix stream client to yield heartbeat messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// Original file: src/proto/stream.proto | ||
|
||
import type { Cursor as _apibara_node_v1alpha2_Cursor, Cursor__Output as _apibara_node_v1alpha2_Cursor__Output } from '../../../apibara/node/v1alpha2/Cursor'; | ||
import type { DataFinality as _apibara_node_v1alpha2_DataFinality } from '../../../apibara/node/v1alpha2/DataFinality'; | ||
import type { DataFinality as _apibara_node_v1alpha2_DataFinality, DataFinality__Output as _apibara_node_v1alpha2_DataFinality__Output } from '../../../apibara/node/v1alpha2/DataFinality'; | ||
|
||
export interface Data { | ||
'endCursor'?: (_apibara_node_v1alpha2_Cursor | null); | ||
'finality'?: (_apibara_node_v1alpha2_DataFinality | keyof typeof _apibara_node_v1alpha2_DataFinality); | ||
'finality'?: (_apibara_node_v1alpha2_DataFinality); | ||
'data'?: (Buffer | Uint8Array | string)[]; | ||
'cursor'?: (_apibara_node_v1alpha2_Cursor | null); | ||
} | ||
|
||
export interface Data__Output { | ||
'endCursor': (_apibara_node_v1alpha2_Cursor__Output | null); | ||
'finality': (keyof typeof _apibara_node_v1alpha2_DataFinality); | ||
'finality': (_apibara_node_v1alpha2_DataFinality__Output); | ||
'data': (Uint8Array)[]; | ||
'cursor': (_apibara_node_v1alpha2_Cursor__Output | null); | ||
} |
24 changes: 18 additions & 6 deletions
24
packages/protocol/src/proto/apibara/node/v1alpha2/DataFinality.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
// Original file: src/proto/stream.proto | ||
|
||
export enum DataFinality { | ||
DATA_STATUS_UNKNOWN = 0, | ||
DATA_STATUS_PENDING = 1, | ||
DATA_STATUS_ACCEPTED = 2, | ||
DATA_STATUS_FINALIZED = 3, | ||
} | ||
export const DataFinality = { | ||
DATA_STATUS_UNKNOWN: 'DATA_STATUS_UNKNOWN', | ||
DATA_STATUS_PENDING: 'DATA_STATUS_PENDING', | ||
DATA_STATUS_ACCEPTED: 'DATA_STATUS_ACCEPTED', | ||
DATA_STATUS_FINALIZED: 'DATA_STATUS_FINALIZED', | ||
} as const; | ||
|
||
export type DataFinality = | ||
| 'DATA_STATUS_UNKNOWN' | ||
| 0 | ||
| 'DATA_STATUS_PENDING' | ||
| 1 | ||
| 'DATA_STATUS_ACCEPTED' | ||
| 2 | ||
| 'DATA_STATUS_FINALIZED' | ||
| 3 | ||
|
||
export type DataFinality__Output = typeof DataFinality[keyof typeof DataFinality] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.