@sentio/protos 3.9.0-rc.11 → 3.9.0-rc.13
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/google/protobuf/empty.d.ts +10 -9
- package/lib/google/protobuf/empty.d.ts.map +1 -1
- package/lib/google/protobuf/empty.js +10 -5
- package/lib/google/protobuf/empty.js.map +1 -1
- package/lib/google/protobuf/struct.d.ts +23 -37
- package/lib/google/protobuf/struct.d.ts.map +1 -1
- package/lib/google/protobuf/struct.js +83 -44
- package/lib/google/protobuf/struct.js.map +1 -1
- package/lib/google/protobuf/timestamp.d.ts +10 -9
- package/lib/google/protobuf/timestamp.d.ts.map +1 -1
- package/lib/google/protobuf/timestamp.js +21 -22
- package/lib/google/protobuf/timestamp.js.map +1 -1
- package/lib/google/type/money.d.ts +10 -9
- package/lib/google/type/money.d.ts.map +1 -1
- package/lib/google/type/money.js +28 -24
- package/lib/google/type/money.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +146 -1097
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +2688 -1467
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +127 -909
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +2822 -1537
- package/lib/service/common/protos/common.js.map +1 -1
- package/package.json +5 -6
- package/src/google/protobuf/empty.ts +22 -7
- package/src/google/protobuf/struct.ts +123 -56
- package/src/google/protobuf/timestamp.ts +33 -26
- package/src/google/type/money.ts +40 -28
- package/src/processor/protos/processor.ts +2941 -1686
- package/src/service/common/protos/common.ts +3272 -1904
- package/lib/chainquery/protos/chainquery.d.ts +0 -607
- package/lib/chainquery/protos/chainquery.d.ts.map +0 -1
- package/lib/chainquery/protos/chainquery.js +0 -1701
- package/lib/chainquery/protos/chainquery.js.map +0 -1
- package/src/chainquery/protos/chainquery.ts +0 -2126
package/src/google/type/money.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8-patch.2
|
|
4
|
+
// protoc v6.33.5
|
|
5
|
+
// source: google/type/money.proto
|
|
6
|
+
|
|
1
7
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal.js";
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
4
9
|
|
|
5
10
|
export interface Money {
|
|
6
11
|
currencyCode: string;
|
|
@@ -9,19 +14,19 @@ export interface Money {
|
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
function createBaseMoney(): Money {
|
|
12
|
-
return { currencyCode: "", units:
|
|
17
|
+
return { currencyCode: "", units: 0n, nanos: 0 };
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
export const Money = {
|
|
16
|
-
encode(message: Money, writer:
|
|
20
|
+
export const Money: MessageFns<Money> = {
|
|
21
|
+
encode(message: Money, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
17
22
|
if (message.currencyCode !== "") {
|
|
18
23
|
writer.uint32(10).string(message.currencyCode);
|
|
19
24
|
}
|
|
20
|
-
if (message.units !==
|
|
25
|
+
if (message.units !== 0n) {
|
|
21
26
|
if (BigInt.asIntN(64, message.units) !== message.units) {
|
|
22
27
|
throw new globalThis.Error("value provided for field message.units of type int64 too large");
|
|
23
28
|
}
|
|
24
|
-
writer.uint32(16).int64(message.units
|
|
29
|
+
writer.uint32(16).int64(message.units);
|
|
25
30
|
}
|
|
26
31
|
if (message.nanos !== 0) {
|
|
27
32
|
writer.uint32(24).int32(message.nanos);
|
|
@@ -29,47 +34,54 @@ export const Money = {
|
|
|
29
34
|
return writer;
|
|
30
35
|
},
|
|
31
36
|
|
|
32
|
-
decode(input:
|
|
33
|
-
const reader = input instanceof
|
|
34
|
-
|
|
37
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Money {
|
|
38
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
35
40
|
const message = createBaseMoney();
|
|
36
41
|
while (reader.pos < end) {
|
|
37
42
|
const tag = reader.uint32();
|
|
38
43
|
switch (tag >>> 3) {
|
|
39
|
-
case 1:
|
|
44
|
+
case 1: {
|
|
40
45
|
if (tag !== 10) {
|
|
41
46
|
break;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
message.currencyCode = reader.string();
|
|
45
50
|
continue;
|
|
46
|
-
|
|
51
|
+
}
|
|
52
|
+
case 2: {
|
|
47
53
|
if (tag !== 16) {
|
|
48
54
|
break;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
|
-
message.units =
|
|
57
|
+
message.units = reader.int64() as bigint;
|
|
52
58
|
continue;
|
|
53
|
-
|
|
59
|
+
}
|
|
60
|
+
case 3: {
|
|
54
61
|
if (tag !== 24) {
|
|
55
62
|
break;
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
message.nanos = reader.int32();
|
|
59
66
|
continue;
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
if ((tag & 7) === 4 || tag === 0) {
|
|
62
70
|
break;
|
|
63
71
|
}
|
|
64
|
-
reader.
|
|
72
|
+
reader.skip(tag & 7);
|
|
65
73
|
}
|
|
66
74
|
return message;
|
|
67
75
|
},
|
|
68
76
|
|
|
69
77
|
fromJSON(object: any): Money {
|
|
70
78
|
return {
|
|
71
|
-
currencyCode: isSet(object.currencyCode)
|
|
72
|
-
|
|
79
|
+
currencyCode: isSet(object.currencyCode)
|
|
80
|
+
? globalThis.String(object.currencyCode)
|
|
81
|
+
: isSet(object.currency_code)
|
|
82
|
+
? globalThis.String(object.currency_code)
|
|
83
|
+
: "",
|
|
84
|
+
units: isSet(object.units) ? BigInt(object.units) : 0n,
|
|
73
85
|
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
74
86
|
};
|
|
75
87
|
},
|
|
@@ -79,7 +91,7 @@ export const Money = {
|
|
|
79
91
|
if (message.currencyCode !== "") {
|
|
80
92
|
obj.currencyCode = message.currencyCode;
|
|
81
93
|
}
|
|
82
|
-
if (message.units !==
|
|
94
|
+
if (message.units !== 0n) {
|
|
83
95
|
obj.units = message.units.toString();
|
|
84
96
|
}
|
|
85
97
|
if (message.nanos !== 0) {
|
|
@@ -94,7 +106,7 @@ export const Money = {
|
|
|
94
106
|
fromPartial(object: DeepPartial<Money>): Money {
|
|
95
107
|
const message = createBaseMoney();
|
|
96
108
|
message.currencyCode = object.currencyCode ?? "";
|
|
97
|
-
message.units = object.units ??
|
|
109
|
+
message.units = object.units ?? 0n;
|
|
98
110
|
message.nanos = object.nanos ?? 0;
|
|
99
111
|
return message;
|
|
100
112
|
},
|
|
@@ -108,15 +120,15 @@ type DeepPartial<T> = T extends Builtin ? T
|
|
|
108
120
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
109
121
|
: Partial<T>;
|
|
110
122
|
|
|
111
|
-
function longToBigint(long: Long) {
|
|
112
|
-
return BigInt(long.toString());
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (_m0.util.Long !== Long) {
|
|
116
|
-
_m0.util.Long = Long as any;
|
|
117
|
-
_m0.configure();
|
|
118
|
-
}
|
|
119
|
-
|
|
120
123
|
function isSet(value: any): boolean {
|
|
121
124
|
return value !== null && value !== undefined;
|
|
122
125
|
}
|
|
126
|
+
|
|
127
|
+
interface MessageFns<T> {
|
|
128
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
129
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
130
|
+
fromJSON(object: any): T;
|
|
131
|
+
toJSON(message: T): unknown;
|
|
132
|
+
create(base?: DeepPartial<T>): T;
|
|
133
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
134
|
+
}
|