@apibara/protocol 2.0.0-beta.35 → 2.0.0-beta.37
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.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/shared/{protocol.91527bce.mjs → protocol.07359592.mjs} +2 -2
- package/dist/shared/{protocol.2d8d950d.cjs → protocol.601cde5b.cjs} +2 -2
- package/dist/shared/{protocol.ef662c22.d.ts → protocol.8f86bf80.d.cts} +12 -12
- package/dist/shared/{protocol.ef662c22.d.cts → protocol.8f86bf80.d.mts} +12 -12
- package/dist/shared/{protocol.ef662c22.d.mts → protocol.8f86bf80.d.ts} +12 -12
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.d.cts +4 -4
- package/dist/testing/index.d.mts +4 -4
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/index.mjs +1 -1
- package/package.json +1 -1
- package/src/stream.test.ts +14 -0
- package/src/stream.ts +3 -3
- package/src/testing/client.test.ts +16 -0
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.
|
|
1
|
+
import { s as stream } from './shared/protocol.8f86bf80.cjs';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.8f86bf80.cjs';
|
|
3
3
|
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
export { ClientError, Status } from 'nice-grpc';
|
|
5
5
|
import '@effect/schema';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.
|
|
1
|
+
import { s as stream } from './shared/protocol.8f86bf80.mjs';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.8f86bf80.mjs';
|
|
3
3
|
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
export { ClientError, Status } from 'nice-grpc';
|
|
5
5
|
import '@effect/schema';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.
|
|
1
|
+
import { s as stream } from './shared/protocol.8f86bf80.js';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, G as Client, A as ClientCallOptions, J as CreateClientOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, x as Data, p as DataFinality, q as DataProduction, D as DnaStreamClient, a as DnaStreamDefinition, r as Duration, F as Finalize, L as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, m as StatusResponse, v as StdErr, u as StdOut, z as StreamConfig, M as StreamDataIterable, E as StreamDataOptions, t as StreamDataRequest, y as StreamDataResponse, w as SystemMessage, T as TimeoutError, _ as _Cursor, K as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, j as isCursor, l as statusRequestFromProto, k as statusRequestToProto, o as statusResponseFromProto, n as statusResponseToProto } from './shared/protocol.8f86bf80.js';
|
|
3
3
|
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
export { ClientError, Status } from 'nice-grpc';
|
|
5
5
|
import '@effect/schema';
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as stream, t as testing, C as Cursor, D as DnaStreamDefinition, S as StreamDataResponse } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, a as BytesFromUint8Array, e as CursorFromBytes, p as Data, h as DataFinality, j as DataProduction, k as Duration, F as Finalize, H as Heartbeat, I as Invalidate, n as StdErr, m as StdOut, q as StreamConfig, l as StreamDataRequest, o as SystemMessage, _ as _Cursor, c as createCursor, g as cursorFromBytes, d as cursorFromProto, f as cursorToBytes, b as cursorToProto, i as isCursor } from './shared/protocol.
|
|
1
|
+
import { s as stream, t as testing, C as Cursor, D as DnaStreamDefinition, S as StreamDataResponse } from './shared/protocol.07359592.mjs';
|
|
2
|
+
export { B as Bytes, a as BytesFromUint8Array, e as CursorFromBytes, p as Data, h as DataFinality, j as DataProduction, k as Duration, F as Finalize, H as Heartbeat, I as Invalidate, n as StdErr, m as StdOut, q as StreamConfig, l as StreamDataRequest, o as SystemMessage, _ as _Cursor, c as createCursor, g as cursorFromBytes, d as cursorFromProto, f as cursorToBytes, b as cursorToProto, i as isCursor } from './shared/protocol.07359592.mjs';
|
|
3
3
|
import { Schema } from '@effect/schema';
|
|
4
4
|
import { createChannel, createClient as createClient$1 } from 'nice-grpc';
|
|
5
5
|
export { ClientError, Status } from 'nice-grpc';
|
|
@@ -1232,14 +1232,14 @@ const StdErr = Schema.Struct({
|
|
|
1232
1232
|
const SystemMessage = Schema.Struct({
|
|
1233
1233
|
_tag: tag("systemMessage"),
|
|
1234
1234
|
systemMessage: Schema.Struct({
|
|
1235
|
-
output: Schema.
|
|
1235
|
+
output: Schema.Union(StdOut, StdErr)
|
|
1236
1236
|
})
|
|
1237
1237
|
});
|
|
1238
1238
|
const Data = (schema) => Schema.Struct({
|
|
1239
1239
|
_tag: tag("data"),
|
|
1240
1240
|
data: Schema.Struct({
|
|
1241
1241
|
cursor: Schema.optional(Cursor),
|
|
1242
|
-
endCursor:
|
|
1242
|
+
endCursor: Cursor,
|
|
1243
1243
|
finality: DataFinality,
|
|
1244
1244
|
production: DataProduction,
|
|
1245
1245
|
data: Schema.Array(schema)
|
|
@@ -1239,14 +1239,14 @@ const StdErr = schema.Schema.Struct({
|
|
|
1239
1239
|
const SystemMessage = schema.Schema.Struct({
|
|
1240
1240
|
_tag: tag("systemMessage"),
|
|
1241
1241
|
systemMessage: schema.Schema.Struct({
|
|
1242
|
-
output: schema.Schema.
|
|
1242
|
+
output: schema.Schema.Union(StdOut, StdErr)
|
|
1243
1243
|
})
|
|
1244
1244
|
});
|
|
1245
1245
|
const Data = (schema$1) => schema.Schema.Struct({
|
|
1246
1246
|
_tag: tag("data"),
|
|
1247
1247
|
data: schema.Schema.Struct({
|
|
1248
1248
|
cursor: schema.Schema.optional(Cursor),
|
|
1249
|
-
endCursor:
|
|
1249
|
+
endCursor: Cursor,
|
|
1250
1250
|
finality: DataFinality,
|
|
1251
1251
|
production: DataProduction,
|
|
1252
1252
|
data: schema.Schema.Array(schema$1)
|
|
@@ -547,13 +547,13 @@ type StdErr = typeof StdErr.Type;
|
|
|
547
547
|
declare const SystemMessage: Schema.Struct<{
|
|
548
548
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
549
549
|
systemMessage: Schema.Struct<{
|
|
550
|
-
output: Schema.
|
|
550
|
+
output: Schema.Union<[Schema.Struct<{
|
|
551
551
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
552
552
|
stdout: typeof Schema.String;
|
|
553
553
|
}>, Schema.Struct<{
|
|
554
554
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
555
555
|
stderr: typeof Schema.String;
|
|
556
|
-
}>]
|
|
556
|
+
}>]>;
|
|
557
557
|
}>;
|
|
558
558
|
}>;
|
|
559
559
|
type SystemMessage = typeof SystemMessage.Type;
|
|
@@ -561,7 +561,7 @@ declare const Data: <TA, TR>(schema: Schema.Schema<TA | null, Uint8Array, TR>) =
|
|
|
561
561
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
562
562
|
data: Schema.Struct<{
|
|
563
563
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
564
|
-
endCursor: Schema.
|
|
564
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
565
565
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
566
566
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
567
567
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -582,13 +582,13 @@ declare const ResponseWithoutData: Schema.Union<[Schema.Struct<{
|
|
|
582
582
|
}>, Schema.Struct<{
|
|
583
583
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
584
584
|
systemMessage: Schema.Struct<{
|
|
585
|
-
output: Schema.
|
|
585
|
+
output: Schema.Union<[Schema.Struct<{
|
|
586
586
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
587
587
|
stdout: typeof Schema.String;
|
|
588
588
|
}>, Schema.Struct<{
|
|
589
589
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
590
590
|
stderr: typeof Schema.String;
|
|
591
|
-
}>]
|
|
591
|
+
}>]>;
|
|
592
592
|
}>;
|
|
593
593
|
}>]>;
|
|
594
594
|
type ResponseWithoutData = typeof ResponseWithoutData.Type;
|
|
@@ -596,7 +596,7 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
596
596
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
597
597
|
data: Schema.Struct<{
|
|
598
598
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
599
|
-
endCursor: Schema.
|
|
599
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
600
600
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
601
601
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
602
602
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -616,20 +616,20 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
616
616
|
}>, Schema.Struct<{
|
|
617
617
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
618
618
|
systemMessage: Schema.Struct<{
|
|
619
|
-
output: Schema.
|
|
619
|
+
output: Schema.Union<[Schema.Struct<{
|
|
620
620
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
621
621
|
stdout: typeof Schema.String;
|
|
622
622
|
}>, Schema.Struct<{
|
|
623
623
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
624
624
|
stderr: typeof Schema.String;
|
|
625
|
-
}>]
|
|
625
|
+
}>]>;
|
|
626
626
|
}>;
|
|
627
627
|
}>]>;
|
|
628
628
|
type StreamDataResponse<TA> = ResponseWithoutData | {
|
|
629
629
|
_tag: "data";
|
|
630
630
|
data: {
|
|
631
631
|
cursor?: Cursor | undefined;
|
|
632
|
-
endCursor
|
|
632
|
+
endCursor: Cursor;
|
|
633
633
|
finality: DataFinality;
|
|
634
634
|
production: DataProduction;
|
|
635
635
|
data: readonly (TA | null)[];
|
|
@@ -663,7 +663,7 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
663
663
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
664
664
|
data: Schema.Struct<{
|
|
665
665
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
666
|
-
endCursor: Schema.
|
|
666
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
667
667
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
668
668
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
669
669
|
data: Schema.Array$<Schema.Schema<TBlock | null, Uint8Array, never>>;
|
|
@@ -683,13 +683,13 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
683
683
|
}>, Schema.Struct<{
|
|
684
684
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
685
685
|
systemMessage: Schema.Struct<{
|
|
686
|
-
output: Schema.
|
|
686
|
+
output: Schema.Union<[Schema.Struct<{
|
|
687
687
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
688
688
|
stdout: typeof Schema.String;
|
|
689
689
|
}>, Schema.Struct<{
|
|
690
690
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
691
691
|
stderr: typeof Schema.String;
|
|
692
|
-
}>]
|
|
692
|
+
}>]>;
|
|
693
693
|
}>;
|
|
694
694
|
}>]>;
|
|
695
695
|
}
|
|
@@ -547,13 +547,13 @@ type StdErr = typeof StdErr.Type;
|
|
|
547
547
|
declare const SystemMessage: Schema.Struct<{
|
|
548
548
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
549
549
|
systemMessage: Schema.Struct<{
|
|
550
|
-
output: Schema.
|
|
550
|
+
output: Schema.Union<[Schema.Struct<{
|
|
551
551
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
552
552
|
stdout: typeof Schema.String;
|
|
553
553
|
}>, Schema.Struct<{
|
|
554
554
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
555
555
|
stderr: typeof Schema.String;
|
|
556
|
-
}>]
|
|
556
|
+
}>]>;
|
|
557
557
|
}>;
|
|
558
558
|
}>;
|
|
559
559
|
type SystemMessage = typeof SystemMessage.Type;
|
|
@@ -561,7 +561,7 @@ declare const Data: <TA, TR>(schema: Schema.Schema<TA | null, Uint8Array, TR>) =
|
|
|
561
561
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
562
562
|
data: Schema.Struct<{
|
|
563
563
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
564
|
-
endCursor: Schema.
|
|
564
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
565
565
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
566
566
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
567
567
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -582,13 +582,13 @@ declare const ResponseWithoutData: Schema.Union<[Schema.Struct<{
|
|
|
582
582
|
}>, Schema.Struct<{
|
|
583
583
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
584
584
|
systemMessage: Schema.Struct<{
|
|
585
|
-
output: Schema.
|
|
585
|
+
output: Schema.Union<[Schema.Struct<{
|
|
586
586
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
587
587
|
stdout: typeof Schema.String;
|
|
588
588
|
}>, Schema.Struct<{
|
|
589
589
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
590
590
|
stderr: typeof Schema.String;
|
|
591
|
-
}>]
|
|
591
|
+
}>]>;
|
|
592
592
|
}>;
|
|
593
593
|
}>]>;
|
|
594
594
|
type ResponseWithoutData = typeof ResponseWithoutData.Type;
|
|
@@ -596,7 +596,7 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
596
596
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
597
597
|
data: Schema.Struct<{
|
|
598
598
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
599
|
-
endCursor: Schema.
|
|
599
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
600
600
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
601
601
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
602
602
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -616,20 +616,20 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
616
616
|
}>, Schema.Struct<{
|
|
617
617
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
618
618
|
systemMessage: Schema.Struct<{
|
|
619
|
-
output: Schema.
|
|
619
|
+
output: Schema.Union<[Schema.Struct<{
|
|
620
620
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
621
621
|
stdout: typeof Schema.String;
|
|
622
622
|
}>, Schema.Struct<{
|
|
623
623
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
624
624
|
stderr: typeof Schema.String;
|
|
625
|
-
}>]
|
|
625
|
+
}>]>;
|
|
626
626
|
}>;
|
|
627
627
|
}>]>;
|
|
628
628
|
type StreamDataResponse<TA> = ResponseWithoutData | {
|
|
629
629
|
_tag: "data";
|
|
630
630
|
data: {
|
|
631
631
|
cursor?: Cursor | undefined;
|
|
632
|
-
endCursor
|
|
632
|
+
endCursor: Cursor;
|
|
633
633
|
finality: DataFinality;
|
|
634
634
|
production: DataProduction;
|
|
635
635
|
data: readonly (TA | null)[];
|
|
@@ -663,7 +663,7 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
663
663
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
664
664
|
data: Schema.Struct<{
|
|
665
665
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
666
|
-
endCursor: Schema.
|
|
666
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
667
667
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
668
668
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
669
669
|
data: Schema.Array$<Schema.Schema<TBlock | null, Uint8Array, never>>;
|
|
@@ -683,13 +683,13 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
683
683
|
}>, Schema.Struct<{
|
|
684
684
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
685
685
|
systemMessage: Schema.Struct<{
|
|
686
|
-
output: Schema.
|
|
686
|
+
output: Schema.Union<[Schema.Struct<{
|
|
687
687
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
688
688
|
stdout: typeof Schema.String;
|
|
689
689
|
}>, Schema.Struct<{
|
|
690
690
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
691
691
|
stderr: typeof Schema.String;
|
|
692
|
-
}>]
|
|
692
|
+
}>]>;
|
|
693
693
|
}>;
|
|
694
694
|
}>]>;
|
|
695
695
|
}
|
|
@@ -547,13 +547,13 @@ type StdErr = typeof StdErr.Type;
|
|
|
547
547
|
declare const SystemMessage: Schema.Struct<{
|
|
548
548
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
549
549
|
systemMessage: Schema.Struct<{
|
|
550
|
-
output: Schema.
|
|
550
|
+
output: Schema.Union<[Schema.Struct<{
|
|
551
551
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
552
552
|
stdout: typeof Schema.String;
|
|
553
553
|
}>, Schema.Struct<{
|
|
554
554
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
555
555
|
stderr: typeof Schema.String;
|
|
556
|
-
}>]
|
|
556
|
+
}>]>;
|
|
557
557
|
}>;
|
|
558
558
|
}>;
|
|
559
559
|
type SystemMessage = typeof SystemMessage.Type;
|
|
@@ -561,7 +561,7 @@ declare const Data: <TA, TR>(schema: Schema.Schema<TA | null, Uint8Array, TR>) =
|
|
|
561
561
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
562
562
|
data: Schema.Struct<{
|
|
563
563
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
564
|
-
endCursor: Schema.
|
|
564
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
565
565
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
566
566
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
567
567
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -582,13 +582,13 @@ declare const ResponseWithoutData: Schema.Union<[Schema.Struct<{
|
|
|
582
582
|
}>, Schema.Struct<{
|
|
583
583
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
584
584
|
systemMessage: Schema.Struct<{
|
|
585
|
-
output: Schema.
|
|
585
|
+
output: Schema.Union<[Schema.Struct<{
|
|
586
586
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
587
587
|
stdout: typeof Schema.String;
|
|
588
588
|
}>, Schema.Struct<{
|
|
589
589
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
590
590
|
stderr: typeof Schema.String;
|
|
591
|
-
}>]
|
|
591
|
+
}>]>;
|
|
592
592
|
}>;
|
|
593
593
|
}>]>;
|
|
594
594
|
type ResponseWithoutData = typeof ResponseWithoutData.Type;
|
|
@@ -596,7 +596,7 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
596
596
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
597
597
|
data: Schema.Struct<{
|
|
598
598
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
599
|
-
endCursor: Schema.
|
|
599
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
600
600
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
601
601
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
602
602
|
data: Schema.Array$<Schema.Schema<TA | null, Uint8Array, TR>>;
|
|
@@ -616,20 +616,20 @@ declare const StreamDataResponse: <TA, TR>(data: Schema.Schema<TA | null, Uint8A
|
|
|
616
616
|
}>, Schema.Struct<{
|
|
617
617
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
618
618
|
systemMessage: Schema.Struct<{
|
|
619
|
-
output: Schema.
|
|
619
|
+
output: Schema.Union<[Schema.Struct<{
|
|
620
620
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
621
621
|
stdout: typeof Schema.String;
|
|
622
622
|
}>, Schema.Struct<{
|
|
623
623
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
624
624
|
stderr: typeof Schema.String;
|
|
625
|
-
}>]
|
|
625
|
+
}>]>;
|
|
626
626
|
}>;
|
|
627
627
|
}>]>;
|
|
628
628
|
type StreamDataResponse<TA> = ResponseWithoutData | {
|
|
629
629
|
_tag: "data";
|
|
630
630
|
data: {
|
|
631
631
|
cursor?: Cursor | undefined;
|
|
632
|
-
endCursor
|
|
632
|
+
endCursor: Cursor;
|
|
633
633
|
finality: DataFinality;
|
|
634
634
|
production: DataProduction;
|
|
635
635
|
data: readonly (TA | null)[];
|
|
@@ -663,7 +663,7 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
663
663
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
664
664
|
data: Schema.Struct<{
|
|
665
665
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
666
|
-
endCursor: Schema.
|
|
666
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
667
667
|
finality: Schema.transform<Schema.Enums<typeof DataFinality$1>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
668
668
|
production: Schema.transform<Schema.Enums<typeof DataProduction$1>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
669
669
|
data: Schema.Array$<Schema.Schema<TBlock | null, Uint8Array, never>>;
|
|
@@ -683,13 +683,13 @@ declare class StreamConfig<TFilter, TBlock> {
|
|
|
683
683
|
}>, Schema.Struct<{
|
|
684
684
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
685
685
|
systemMessage: Schema.Struct<{
|
|
686
|
-
output: Schema.
|
|
686
|
+
output: Schema.Union<[Schema.Struct<{
|
|
687
687
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
688
688
|
stdout: typeof Schema.String;
|
|
689
689
|
}>, Schema.Struct<{
|
|
690
690
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
691
691
|
stderr: typeof Schema.String;
|
|
692
|
-
}>]
|
|
692
|
+
}>]>;
|
|
693
693
|
}>;
|
|
694
694
|
}>]>;
|
|
695
695
|
}
|
package/dist/testing/index.cjs
CHANGED
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.
|
|
1
|
+
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.8f86bf80.cjs';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
@@ -40,7 +40,7 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
40
40
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
41
41
|
data: Schema.Struct<{
|
|
42
42
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
43
|
-
endCursor: Schema.
|
|
43
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
44
44
|
finality: Schema.transform<Schema.Enums<typeof DataFinality>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
45
45
|
production: Schema.transform<Schema.Enums<typeof DataProduction>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
46
46
|
data: Schema.Array$<Schema.Schema<{
|
|
@@ -62,13 +62,13 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
62
62
|
}>, Schema.Struct<{
|
|
63
63
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
64
64
|
systemMessage: Schema.Struct<{
|
|
65
|
-
output: Schema.
|
|
65
|
+
output: Schema.Union<[Schema.Struct<{
|
|
66
66
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
67
67
|
stdout: typeof Schema.String;
|
|
68
68
|
}>, Schema.Struct<{
|
|
69
69
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
70
70
|
stderr: typeof Schema.String;
|
|
71
|
-
}>]
|
|
71
|
+
}>]>;
|
|
72
72
|
}>;
|
|
73
73
|
}>]>;
|
|
74
74
|
type MockStreamResponse = typeof MockStreamResponse.Type;
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.
|
|
1
|
+
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.8f86bf80.mjs';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
@@ -40,7 +40,7 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
40
40
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
41
41
|
data: Schema.Struct<{
|
|
42
42
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
43
|
-
endCursor: Schema.
|
|
43
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
44
44
|
finality: Schema.transform<Schema.Enums<typeof DataFinality>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
45
45
|
production: Schema.transform<Schema.Enums<typeof DataProduction>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
46
46
|
data: Schema.Array$<Schema.Schema<{
|
|
@@ -62,13 +62,13 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
62
62
|
}>, Schema.Struct<{
|
|
63
63
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
64
64
|
systemMessage: Schema.Struct<{
|
|
65
|
-
output: Schema.
|
|
65
|
+
output: Schema.Union<[Schema.Struct<{
|
|
66
66
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
67
67
|
stdout: typeof Schema.String;
|
|
68
68
|
}>, Schema.Struct<{
|
|
69
69
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
70
70
|
stderr: typeof Schema.String;
|
|
71
|
-
}>]
|
|
71
|
+
}>]>;
|
|
72
72
|
}>;
|
|
73
73
|
}>]>;
|
|
74
74
|
type MockStreamResponse = typeof MockStreamResponse.Type;
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.
|
|
1
|
+
import { G as Client, t as StreamDataRequest, E as StreamDataOptions, y as StreamDataResponse, S as StatusRequest, A as ClientCallOptions, m as StatusResponse, z as StreamConfig, c as Cursor, C as CursorProto, N as DataFinality, O as DataProduction } from '../shared/protocol.8f86bf80.js';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
@@ -40,7 +40,7 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
40
40
|
_tag: Schema.PropertySignature<":", "data", "$case", ":", "data", false, never>;
|
|
41
41
|
data: Schema.Struct<{
|
|
42
42
|
cursor: Schema.optional<Schema.Schema<Cursor, CursorProto, never>>;
|
|
43
|
-
endCursor: Schema.
|
|
43
|
+
endCursor: Schema.Schema<Cursor, CursorProto, never>;
|
|
44
44
|
finality: Schema.transform<Schema.Enums<typeof DataFinality>, Schema.Literal<["finalized", "accepted", "pending", "unknown"]>>;
|
|
45
45
|
production: Schema.transform<Schema.Enums<typeof DataProduction>, Schema.Literal<["backfill", "live", "unknown"]>>;
|
|
46
46
|
data: Schema.Array$<Schema.Schema<{
|
|
@@ -62,13 +62,13 @@ declare const MockStreamResponse: Schema.Union<[Schema.Struct<{
|
|
|
62
62
|
}>, Schema.Struct<{
|
|
63
63
|
_tag: Schema.PropertySignature<":", "systemMessage", "$case", ":", "systemMessage", false, never>;
|
|
64
64
|
systemMessage: Schema.Struct<{
|
|
65
|
-
output: Schema.
|
|
65
|
+
output: Schema.Union<[Schema.Struct<{
|
|
66
66
|
_tag: Schema.PropertySignature<":", "stdout", "$case", ":", "stdout", false, never>;
|
|
67
67
|
stdout: typeof Schema.String;
|
|
68
68
|
}>, Schema.Struct<{
|
|
69
69
|
_tag: Schema.PropertySignature<":", "stderr", "$case", ":", "stderr", false, never>;
|
|
70
70
|
stderr: typeof Schema.String;
|
|
71
|
-
}>]
|
|
71
|
+
}>]>;
|
|
72
72
|
}>;
|
|
73
73
|
}>]>;
|
|
74
74
|
type MockStreamResponse = typeof MockStreamResponse.Type;
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from '@effect/schema';
|
|
2
|
-
import { M as MockFilter$1, r as MockBlock$1, q as StreamConfig, S as StreamDataResponse } from '../shared/protocol.
|
|
2
|
+
import { M as MockFilter$1, r as MockBlock$1, q as StreamConfig, S as StreamDataResponse } from '../shared/protocol.07359592.mjs';
|
|
3
3
|
import 'protobufjs/minimal.js';
|
|
4
4
|
import 'effect';
|
|
5
5
|
import 'viem';
|
package/package.json
CHANGED
package/src/stream.test.ts
CHANGED
|
@@ -96,6 +96,10 @@ describe("StreamDataResponse", () => {
|
|
|
96
96
|
finality: "accepted",
|
|
97
97
|
data: [{ value: "hello" }, { value: "world" }],
|
|
98
98
|
production: "backfill",
|
|
99
|
+
endCursor: {
|
|
100
|
+
orderKey: 5_000_000n,
|
|
101
|
+
uniqueKey: "0x1234567890",
|
|
102
|
+
},
|
|
99
103
|
},
|
|
100
104
|
} as const;
|
|
101
105
|
|
|
@@ -120,6 +124,16 @@ describe("StreamDataResponse", () => {
|
|
|
120
124
|
100,
|
|
121
125
|
],
|
|
122
126
|
],
|
|
127
|
+
"endCursor": {
|
|
128
|
+
"orderKey": 5000000n,
|
|
129
|
+
"uniqueKey": Uint8Array [
|
|
130
|
+
18,
|
|
131
|
+
52,
|
|
132
|
+
86,
|
|
133
|
+
120,
|
|
134
|
+
144,
|
|
135
|
+
],
|
|
136
|
+
},
|
|
123
137
|
"finality": 2,
|
|
124
138
|
"production": 1,
|
|
125
139
|
},
|
package/src/stream.ts
CHANGED
|
@@ -126,7 +126,7 @@ export type StdErr = typeof StdErr.Type;
|
|
|
126
126
|
export const SystemMessage = Schema.Struct({
|
|
127
127
|
_tag: tag("systemMessage"),
|
|
128
128
|
systemMessage: Schema.Struct({
|
|
129
|
-
output: Schema.
|
|
129
|
+
output: Schema.Union(StdOut, StdErr),
|
|
130
130
|
}),
|
|
131
131
|
});
|
|
132
132
|
|
|
@@ -139,7 +139,7 @@ export const Data = <TA, TR>(
|
|
|
139
139
|
_tag: tag("data"),
|
|
140
140
|
data: Schema.Struct({
|
|
141
141
|
cursor: Schema.optional(Cursor),
|
|
142
|
-
endCursor:
|
|
142
|
+
endCursor: Cursor,
|
|
143
143
|
finality: DataFinality,
|
|
144
144
|
production: DataProduction,
|
|
145
145
|
data: Schema.Array(schema),
|
|
@@ -164,7 +164,7 @@ export type StreamDataResponse<TA> =
|
|
|
164
164
|
_tag: "data";
|
|
165
165
|
data: {
|
|
166
166
|
cursor?: Cursor | undefined;
|
|
167
|
-
endCursor
|
|
167
|
+
endCursor: Cursor;
|
|
168
168
|
finality: DataFinality;
|
|
169
169
|
production: DataProduction;
|
|
170
170
|
data: readonly (TA | null)[];
|
|
@@ -13,6 +13,10 @@ describe("MockClient", () => {
|
|
|
13
13
|
finality: "finalized",
|
|
14
14
|
data: [{ data: "hello" }],
|
|
15
15
|
production: "backfill",
|
|
16
|
+
endCursor: {
|
|
17
|
+
orderKey: 5_000_000n,
|
|
18
|
+
uniqueKey: "0x1234567890",
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
},
|
|
18
22
|
];
|
|
@@ -33,6 +37,10 @@ describe("MockClient", () => {
|
|
|
33
37
|
"data": "hello",
|
|
34
38
|
},
|
|
35
39
|
],
|
|
40
|
+
"endCursor": {
|
|
41
|
+
"orderKey": 5000000n,
|
|
42
|
+
"uniqueKey": "0x1234567890",
|
|
43
|
+
},
|
|
36
44
|
"finality": "finalized",
|
|
37
45
|
"production": "backfill",
|
|
38
46
|
},
|
|
@@ -50,6 +58,10 @@ describe("MockClient", () => {
|
|
|
50
58
|
finality: "finalized",
|
|
51
59
|
data: [{ data: "hello" }, null],
|
|
52
60
|
production: "backfill",
|
|
61
|
+
endCursor: {
|
|
62
|
+
orderKey: 5_000_000n,
|
|
63
|
+
uniqueKey: "0x1234567890",
|
|
64
|
+
},
|
|
53
65
|
},
|
|
54
66
|
},
|
|
55
67
|
];
|
|
@@ -71,6 +83,10 @@ describe("MockClient", () => {
|
|
|
71
83
|
},
|
|
72
84
|
null,
|
|
73
85
|
],
|
|
86
|
+
"endCursor": {
|
|
87
|
+
"orderKey": 5000000n,
|
|
88
|
+
"uniqueKey": "0x1234567890",
|
|
89
|
+
},
|
|
74
90
|
"finality": "finalized",
|
|
75
91
|
"production": "backfill",
|
|
76
92
|
},
|