@sentio/sdk 1.34.0 → 1.34.1
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/lib/gen/chainquery/protos/chainquery.d.ts +1 -1
- package/lib/gen/chainquery/protos/chainquery.js +108 -211
- package/lib/gen/chainquery/protos/chainquery.js.map +1 -1
- package/lib/gen/google/protobuf/empty.js.map +1 -1
- package/lib/gen/google/protobuf/timestamp.js +5 -9
- package/lib/gen/google/protobuf/timestamp.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +127 -27
- package/lib/gen/processor/protos/processor.js +789 -701
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/price/protos/price.d.ts +4 -4
- package/lib/gen/service/price/protos/price.js +15 -27
- package/lib/gen/service/price/protos/price.js.map +1 -1
- package/lib/release.config.js +2 -2
- package/lib/service.d.ts +6 -2
- package/lib/service.js +27 -19
- package/lib/service.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +6 -2
- package/lib/testing/test-processor-server.js +15 -5
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/token.d.ts +1 -1
- package/lib/utils/token.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/chainquery/protos/chainquery.ts +171 -379
- package/src/gen/google/protobuf/empty.ts +7 -19
- package/src/gen/google/protobuf/timestamp.ts +11 -31
- package/src/gen/processor/protos/processor.ts +1064 -1286
- package/src/gen/service/price/protos/price.ts +38 -103
- package/src/service.ts +33 -22
- package/src/testing/test-processor-server.ts +18 -9
- package/src/utils/token.ts +1 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
|
|
5
|
-
export interface Empty {
|
|
5
|
+
export interface Empty {
|
|
6
|
+
}
|
|
6
7
|
|
|
7
8
|
function createBaseEmpty(): Empty {
|
|
8
9
|
return {};
|
|
@@ -43,25 +44,12 @@ export const Empty = {
|
|
|
43
44
|
},
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
type Builtin =
|
|
47
|
-
| Date
|
|
48
|
-
| Function
|
|
49
|
-
| Uint8Array
|
|
50
|
-
| string
|
|
51
|
-
| number
|
|
52
|
-
| boolean
|
|
53
|
-
| undefined;
|
|
47
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
54
48
|
|
|
55
|
-
type DeepPartial<T> = T extends Builtin
|
|
56
|
-
? T
|
|
57
|
-
: T extends
|
|
58
|
-
?
|
|
59
|
-
: T extends Array<infer U>
|
|
60
|
-
? Array<DeepPartial<U>>
|
|
61
|
-
: T extends ReadonlyArray<infer U>
|
|
62
|
-
? ReadonlyArray<DeepPartial<U>>
|
|
63
|
-
: T extends {}
|
|
64
|
-
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
49
|
+
type DeepPartial<T> = T extends Builtin ? T
|
|
50
|
+
: T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
51
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
52
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
65
53
|
: Partial<T>;
|
|
66
54
|
|
|
67
55
|
if (_m0.util.Long !== Long) {
|
|
@@ -12,10 +12,7 @@ function createBaseTimestamp(): Timestamp {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const Timestamp = {
|
|
15
|
-
encode(
|
|
16
|
-
message: Timestamp,
|
|
17
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
18
|
-
): _m0.Writer {
|
|
15
|
+
encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
19
16
|
if (!message.seconds.isZero()) {
|
|
20
17
|
writer.uint32(8).int64(message.seconds);
|
|
21
18
|
}
|
|
@@ -48,51 +45,34 @@ export const Timestamp = {
|
|
|
48
45
|
|
|
49
46
|
fromJSON(object: any): Timestamp {
|
|
50
47
|
return {
|
|
51
|
-
seconds: isSet(object.seconds)
|
|
52
|
-
? Long.fromValue(object.seconds)
|
|
53
|
-
: Long.ZERO,
|
|
48
|
+
seconds: isSet(object.seconds) ? Long.fromValue(object.seconds) : Long.ZERO,
|
|
54
49
|
nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
|
|
55
50
|
};
|
|
56
51
|
},
|
|
57
52
|
|
|
58
53
|
toJSON(message: Timestamp): unknown {
|
|
59
54
|
const obj: any = {};
|
|
60
|
-
message.seconds !== undefined &&
|
|
61
|
-
(obj.seconds = (message.seconds || Long.ZERO).toString());
|
|
55
|
+
message.seconds !== undefined && (obj.seconds = (message.seconds || Long.ZERO).toString());
|
|
62
56
|
message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));
|
|
63
57
|
return obj;
|
|
64
58
|
},
|
|
65
59
|
|
|
66
60
|
fromPartial(object: DeepPartial<Timestamp>): Timestamp {
|
|
67
61
|
const message = createBaseTimestamp();
|
|
68
|
-
message.seconds =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
: Long.ZERO;
|
|
62
|
+
message.seconds = (object.seconds !== undefined && object.seconds !== null)
|
|
63
|
+
? Long.fromValue(object.seconds)
|
|
64
|
+
: Long.ZERO;
|
|
72
65
|
message.nanos = object.nanos ?? 0;
|
|
73
66
|
return message;
|
|
74
67
|
},
|
|
75
68
|
};
|
|
76
69
|
|
|
77
|
-
type Builtin =
|
|
78
|
-
| Date
|
|
79
|
-
| Function
|
|
80
|
-
| Uint8Array
|
|
81
|
-
| string
|
|
82
|
-
| number
|
|
83
|
-
| boolean
|
|
84
|
-
| undefined;
|
|
70
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
85
71
|
|
|
86
|
-
type DeepPartial<T> = T extends Builtin
|
|
87
|
-
? T
|
|
88
|
-
: T extends
|
|
89
|
-
?
|
|
90
|
-
: T extends Array<infer U>
|
|
91
|
-
? Array<DeepPartial<U>>
|
|
92
|
-
: T extends ReadonlyArray<infer U>
|
|
93
|
-
? ReadonlyArray<DeepPartial<U>>
|
|
94
|
-
: T extends {}
|
|
95
|
-
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
72
|
+
type DeepPartial<T> = T extends Builtin ? T
|
|
73
|
+
: T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
74
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
75
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
96
76
|
: Partial<T>;
|
|
97
77
|
|
|
98
78
|
if (_m0.util.Long !== Long) {
|