@sentio/sdk 1.19.2 → 1.19.4
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/core/aptos-processor.d.ts +19 -0
- package/lib/core/aptos-processor.js +59 -1
- package/lib/core/aptos-processor.js.map +1 -1
- package/lib/core/generic-processor.test.js +1 -1
- package/lib/core/generic-processor.test.js.map +1 -1
- package/lib/core/logger.d.ts +5 -2
- package/lib/core/logger.js +10 -4
- package/lib/core/logger.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +165 -163
- package/lib/gen/processor/protos/processor.js +455 -482
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/processor-runner.js +1 -1
- package/lib/processor-runner.js.map +1 -1
- package/lib/service.d.ts +13 -7
- package/lib/service.js +102 -18
- package/lib/service.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +15 -15
- package/lib/testing/test-processor-server.js +9 -4
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/tests/erc20.test.js +1 -1
- package/lib/tests/erc20.test.js.map +1 -1
- package/lib/tests/logger.test.js +1 -1
- package/lib/tests/logger.test.js.map +1 -1
- package/lib/utils/erc20.test.js +0 -1
- package/lib/utils/erc20.test.js.map +1 -1
- package/package.json +1 -1
- package/src/core/aptos-processor.ts +70 -0
- package/src/core/generic-processor.test.ts +1 -1
- package/src/core/logger.ts +12 -4
- package/src/gen/processor/protos/processor.ts +606 -650
- package/src/processor-runner.ts +1 -1
- package/src/service.ts +126 -34
- package/src/testing/test-processor-server.ts +27 -32
- package/src/tests/erc20.test.ts +1 -1
- package/src/tests/logger.test.ts +1 -1
- package/src/utils/erc20.test.ts +1 -4
|
@@ -6,11 +6,13 @@ import _m0 from "protobufjs/minimal";
|
|
|
6
6
|
|
|
7
7
|
export enum HandlerType {
|
|
8
8
|
UNKNOWN = 0,
|
|
9
|
-
|
|
9
|
+
ETH_LOG = 1,
|
|
10
10
|
BLOCK = 2,
|
|
11
11
|
TRANSACTION = 3,
|
|
12
12
|
INSTRUCTION = 4,
|
|
13
|
-
|
|
13
|
+
ETH_TRACE = 5,
|
|
14
|
+
APT_EVENT = 6,
|
|
15
|
+
APT_CALL = 7,
|
|
14
16
|
UNRECOGNIZED = -1,
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -20,8 +22,8 @@ export function handlerTypeFromJSON(object: any): HandlerType {
|
|
|
20
22
|
case "UNKNOWN":
|
|
21
23
|
return HandlerType.UNKNOWN;
|
|
22
24
|
case 1:
|
|
23
|
-
case "
|
|
24
|
-
return HandlerType.
|
|
25
|
+
case "ETH_LOG":
|
|
26
|
+
return HandlerType.ETH_LOG;
|
|
25
27
|
case 2:
|
|
26
28
|
case "BLOCK":
|
|
27
29
|
return HandlerType.BLOCK;
|
|
@@ -32,8 +34,14 @@ export function handlerTypeFromJSON(object: any): HandlerType {
|
|
|
32
34
|
case "INSTRUCTION":
|
|
33
35
|
return HandlerType.INSTRUCTION;
|
|
34
36
|
case 5:
|
|
35
|
-
case "
|
|
36
|
-
return HandlerType.
|
|
37
|
+
case "ETH_TRACE":
|
|
38
|
+
return HandlerType.ETH_TRACE;
|
|
39
|
+
case 6:
|
|
40
|
+
case "APT_EVENT":
|
|
41
|
+
return HandlerType.APT_EVENT;
|
|
42
|
+
case 7:
|
|
43
|
+
case "APT_CALL":
|
|
44
|
+
return HandlerType.APT_CALL;
|
|
37
45
|
case -1:
|
|
38
46
|
case "UNRECOGNIZED":
|
|
39
47
|
default:
|
|
@@ -45,16 +53,20 @@ export function handlerTypeToJSON(object: HandlerType): string {
|
|
|
45
53
|
switch (object) {
|
|
46
54
|
case HandlerType.UNKNOWN:
|
|
47
55
|
return "UNKNOWN";
|
|
48
|
-
case HandlerType.
|
|
49
|
-
return "
|
|
56
|
+
case HandlerType.ETH_LOG:
|
|
57
|
+
return "ETH_LOG";
|
|
50
58
|
case HandlerType.BLOCK:
|
|
51
59
|
return "BLOCK";
|
|
52
60
|
case HandlerType.TRANSACTION:
|
|
53
61
|
return "TRANSACTION";
|
|
54
62
|
case HandlerType.INSTRUCTION:
|
|
55
63
|
return "INSTRUCTION";
|
|
56
|
-
case HandlerType.
|
|
57
|
-
return "
|
|
64
|
+
case HandlerType.ETH_TRACE:
|
|
65
|
+
return "ETH_TRACE";
|
|
66
|
+
case HandlerType.APT_EVENT:
|
|
67
|
+
return "APT_EVENT";
|
|
68
|
+
case HandlerType.APT_CALL:
|
|
69
|
+
return "APT_CALL";
|
|
58
70
|
case HandlerType.UNRECOGNIZED:
|
|
59
71
|
default:
|
|
60
72
|
return "UNRECOGNIZED";
|
|
@@ -130,9 +142,11 @@ export interface ContractConfig {
|
|
|
130
142
|
blockConfigs: BlockHandlerConfig[];
|
|
131
143
|
logConfigs: LogHandlerConfig[];
|
|
132
144
|
traceConfigs: TraceHandlerConfig[];
|
|
145
|
+
aptosEventConfigs: AptosEventHandlerConfig[];
|
|
146
|
+
aptosCallConfigs: AptosCallHandlerConfig[];
|
|
147
|
+
instructionConfig: InstructionHandlerConfig | undefined;
|
|
133
148
|
startBlock: Long;
|
|
134
149
|
endBlock: Long;
|
|
135
|
-
instructionConfig: InstructionHandlerConfig | undefined;
|
|
136
150
|
processorType: string;
|
|
137
151
|
}
|
|
138
152
|
|
|
@@ -178,25 +192,28 @@ export interface InstructionHandlerConfig {
|
|
|
178
192
|
rawDataInstruction: boolean;
|
|
179
193
|
}
|
|
180
194
|
|
|
181
|
-
export interface
|
|
182
|
-
|
|
195
|
+
export interface AptosEventHandlerConfig {
|
|
196
|
+
filters: AptosEventFilter[];
|
|
197
|
+
handlerId: number;
|
|
183
198
|
}
|
|
184
199
|
|
|
185
|
-
export interface
|
|
186
|
-
|
|
200
|
+
export interface AptosEventFilter {
|
|
201
|
+
type: string;
|
|
187
202
|
}
|
|
188
203
|
|
|
189
|
-
export interface
|
|
190
|
-
|
|
191
|
-
|
|
204
|
+
export interface AptosCallHandlerConfig {
|
|
205
|
+
filters: AptosCallFilter[];
|
|
206
|
+
handlerId: number;
|
|
192
207
|
}
|
|
193
208
|
|
|
194
|
-
export interface
|
|
195
|
-
|
|
209
|
+
export interface AptosCallFilter {
|
|
210
|
+
function: string;
|
|
211
|
+
typeArguments: string[];
|
|
212
|
+
withTypeArguments: boolean;
|
|
196
213
|
}
|
|
197
214
|
|
|
198
|
-
export interface
|
|
199
|
-
|
|
215
|
+
export interface Topic {
|
|
216
|
+
hashes: string[];
|
|
200
217
|
}
|
|
201
218
|
|
|
202
219
|
export interface ProcessTransactionsRequest {
|
|
@@ -208,38 +225,17 @@ export interface ProcessInstructionsRequest {
|
|
|
208
225
|
instructions: Instruction[];
|
|
209
226
|
}
|
|
210
227
|
|
|
211
|
-
export interface ProcessTransactionsResponse {
|
|
212
|
-
result: ProcessResult | undefined;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface ProcessInstructionsResponse {
|
|
216
|
-
result: ProcessResult | undefined;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
228
|
export interface ProcessBlocksRequest {
|
|
220
229
|
blockBindings: BlockBinding[];
|
|
221
230
|
}
|
|
222
231
|
|
|
223
|
-
export interface
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface LogBinding {
|
|
228
|
-
log: RawLog | undefined;
|
|
229
|
-
handlerId: number;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface RawLog {
|
|
233
|
-
raw: Uint8Array;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface TraceBinding {
|
|
237
|
-
trace: RawTrace | undefined;
|
|
238
|
-
handlerId: number;
|
|
232
|
+
export interface ProcessBindingsRequest {
|
|
233
|
+
bindings: DataBinding[];
|
|
239
234
|
}
|
|
240
235
|
|
|
241
|
-
export interface
|
|
242
|
-
|
|
236
|
+
export interface ProcessBindingResponse {
|
|
237
|
+
result: ProcessResult | undefined;
|
|
238
|
+
configUpdated: boolean;
|
|
243
239
|
}
|
|
244
240
|
|
|
245
241
|
export interface RawTransaction {
|
|
@@ -255,6 +251,16 @@ export interface Instruction {
|
|
|
255
251
|
parsed?: Uint8Array | undefined;
|
|
256
252
|
}
|
|
257
253
|
|
|
254
|
+
export interface Data {
|
|
255
|
+
raw: Uint8Array;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface DataBinding {
|
|
259
|
+
data: Data | undefined;
|
|
260
|
+
handlerId: number;
|
|
261
|
+
handlerType: HandlerType;
|
|
262
|
+
}
|
|
263
|
+
|
|
258
264
|
export interface BlockBinding {
|
|
259
265
|
block: RawBlock | undefined;
|
|
260
266
|
handlerIds: number[];
|
|
@@ -322,9 +328,11 @@ export interface CounterResult {
|
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
export interface LogResult {
|
|
331
|
+
name: string;
|
|
325
332
|
metadata: RecordMetaData | undefined;
|
|
326
333
|
level: LogLevel;
|
|
327
334
|
message: string;
|
|
335
|
+
attributes: string;
|
|
328
336
|
runtimeInfo: RuntimeInfo | undefined;
|
|
329
337
|
}
|
|
330
338
|
|
|
@@ -546,9 +554,11 @@ function createBaseContractConfig(): ContractConfig {
|
|
|
546
554
|
blockConfigs: [],
|
|
547
555
|
logConfigs: [],
|
|
548
556
|
traceConfigs: [],
|
|
557
|
+
aptosEventConfigs: [],
|
|
558
|
+
aptosCallConfigs: [],
|
|
559
|
+
instructionConfig: undefined,
|
|
549
560
|
startBlock: Long.UZERO,
|
|
550
561
|
endBlock: Long.UZERO,
|
|
551
|
-
instructionConfig: undefined,
|
|
552
562
|
processorType: "",
|
|
553
563
|
};
|
|
554
564
|
}
|
|
@@ -570,11 +580,11 @@ export const ContractConfig = {
|
|
|
570
580
|
for (const v of message.traceConfigs) {
|
|
571
581
|
TraceHandlerConfig.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
572
582
|
}
|
|
573
|
-
|
|
574
|
-
writer.uint32(
|
|
583
|
+
for (const v of message.aptosEventConfigs) {
|
|
584
|
+
AptosEventHandlerConfig.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
575
585
|
}
|
|
576
|
-
|
|
577
|
-
writer.uint32(
|
|
586
|
+
for (const v of message.aptosCallConfigs) {
|
|
587
|
+
AptosCallHandlerConfig.encode(v!, writer.uint32(82).fork()).ldelim();
|
|
578
588
|
}
|
|
579
589
|
if (message.instructionConfig !== undefined) {
|
|
580
590
|
InstructionHandlerConfig.encode(
|
|
@@ -582,6 +592,12 @@ export const ContractConfig = {
|
|
|
582
592
|
writer.uint32(50).fork()
|
|
583
593
|
).ldelim();
|
|
584
594
|
}
|
|
595
|
+
if (!message.startBlock.isZero()) {
|
|
596
|
+
writer.uint32(32).uint64(message.startBlock);
|
|
597
|
+
}
|
|
598
|
+
if (!message.endBlock.isZero()) {
|
|
599
|
+
writer.uint32(40).uint64(message.endBlock);
|
|
600
|
+
}
|
|
585
601
|
if (message.processorType !== "") {
|
|
586
602
|
writer.uint32(66).string(message.processorType);
|
|
587
603
|
}
|
|
@@ -613,11 +629,15 @@ export const ContractConfig = {
|
|
|
613
629
|
TraceHandlerConfig.decode(reader, reader.uint32())
|
|
614
630
|
);
|
|
615
631
|
break;
|
|
616
|
-
case
|
|
617
|
-
message.
|
|
632
|
+
case 9:
|
|
633
|
+
message.aptosEventConfigs.push(
|
|
634
|
+
AptosEventHandlerConfig.decode(reader, reader.uint32())
|
|
635
|
+
);
|
|
618
636
|
break;
|
|
619
|
-
case
|
|
620
|
-
message.
|
|
637
|
+
case 10:
|
|
638
|
+
message.aptosCallConfigs.push(
|
|
639
|
+
AptosCallHandlerConfig.decode(reader, reader.uint32())
|
|
640
|
+
);
|
|
621
641
|
break;
|
|
622
642
|
case 6:
|
|
623
643
|
message.instructionConfig = InstructionHandlerConfig.decode(
|
|
@@ -625,6 +645,12 @@ export const ContractConfig = {
|
|
|
625
645
|
reader.uint32()
|
|
626
646
|
);
|
|
627
647
|
break;
|
|
648
|
+
case 4:
|
|
649
|
+
message.startBlock = reader.uint64() as Long;
|
|
650
|
+
break;
|
|
651
|
+
case 5:
|
|
652
|
+
message.endBlock = reader.uint64() as Long;
|
|
653
|
+
break;
|
|
628
654
|
case 8:
|
|
629
655
|
message.processorType = reader.string();
|
|
630
656
|
break;
|
|
@@ -650,15 +676,25 @@ export const ContractConfig = {
|
|
|
650
676
|
traceConfigs: Array.isArray(object?.traceConfigs)
|
|
651
677
|
? object.traceConfigs.map((e: any) => TraceHandlerConfig.fromJSON(e))
|
|
652
678
|
: [],
|
|
679
|
+
aptosEventConfigs: Array.isArray(object?.aptosEventConfigs)
|
|
680
|
+
? object.aptosEventConfigs.map((e: any) =>
|
|
681
|
+
AptosEventHandlerConfig.fromJSON(e)
|
|
682
|
+
)
|
|
683
|
+
: [],
|
|
684
|
+
aptosCallConfigs: Array.isArray(object?.aptosCallConfigs)
|
|
685
|
+
? object.aptosCallConfigs.map((e: any) =>
|
|
686
|
+
AptosCallHandlerConfig.fromJSON(e)
|
|
687
|
+
)
|
|
688
|
+
: [],
|
|
689
|
+
instructionConfig: isSet(object.instructionConfig)
|
|
690
|
+
? InstructionHandlerConfig.fromJSON(object.instructionConfig)
|
|
691
|
+
: undefined,
|
|
653
692
|
startBlock: isSet(object.startBlock)
|
|
654
693
|
? Long.fromValue(object.startBlock)
|
|
655
694
|
: Long.UZERO,
|
|
656
695
|
endBlock: isSet(object.endBlock)
|
|
657
696
|
? Long.fromValue(object.endBlock)
|
|
658
697
|
: Long.UZERO,
|
|
659
|
-
instructionConfig: isSet(object.instructionConfig)
|
|
660
|
-
? InstructionHandlerConfig.fromJSON(object.instructionConfig)
|
|
661
|
-
: undefined,
|
|
662
698
|
processorType: isSet(object.processorType)
|
|
663
699
|
? String(object.processorType)
|
|
664
700
|
: "",
|
|
@@ -692,14 +728,28 @@ export const ContractConfig = {
|
|
|
692
728
|
} else {
|
|
693
729
|
obj.traceConfigs = [];
|
|
694
730
|
}
|
|
695
|
-
message.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
731
|
+
if (message.aptosEventConfigs) {
|
|
732
|
+
obj.aptosEventConfigs = message.aptosEventConfigs.map((e) =>
|
|
733
|
+
e ? AptosEventHandlerConfig.toJSON(e) : undefined
|
|
734
|
+
);
|
|
735
|
+
} else {
|
|
736
|
+
obj.aptosEventConfigs = [];
|
|
737
|
+
}
|
|
738
|
+
if (message.aptosCallConfigs) {
|
|
739
|
+
obj.aptosCallConfigs = message.aptosCallConfigs.map((e) =>
|
|
740
|
+
e ? AptosCallHandlerConfig.toJSON(e) : undefined
|
|
741
|
+
);
|
|
742
|
+
} else {
|
|
743
|
+
obj.aptosCallConfigs = [];
|
|
744
|
+
}
|
|
699
745
|
message.instructionConfig !== undefined &&
|
|
700
746
|
(obj.instructionConfig = message.instructionConfig
|
|
701
747
|
? InstructionHandlerConfig.toJSON(message.instructionConfig)
|
|
702
748
|
: undefined);
|
|
749
|
+
message.startBlock !== undefined &&
|
|
750
|
+
(obj.startBlock = (message.startBlock || Long.UZERO).toString());
|
|
751
|
+
message.endBlock !== undefined &&
|
|
752
|
+
(obj.endBlock = (message.endBlock || Long.UZERO).toString());
|
|
703
753
|
message.processorType !== undefined &&
|
|
704
754
|
(obj.processorType = message.processorType);
|
|
705
755
|
return obj;
|
|
@@ -717,6 +767,19 @@ export const ContractConfig = {
|
|
|
717
767
|
object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
|
|
718
768
|
message.traceConfigs =
|
|
719
769
|
object.traceConfigs?.map((e) => TraceHandlerConfig.fromPartial(e)) || [];
|
|
770
|
+
message.aptosEventConfigs =
|
|
771
|
+
object.aptosEventConfigs?.map((e) =>
|
|
772
|
+
AptosEventHandlerConfig.fromPartial(e)
|
|
773
|
+
) || [];
|
|
774
|
+
message.aptosCallConfigs =
|
|
775
|
+
object.aptosCallConfigs?.map((e) =>
|
|
776
|
+
AptosCallHandlerConfig.fromPartial(e)
|
|
777
|
+
) || [];
|
|
778
|
+
message.instructionConfig =
|
|
779
|
+
object.instructionConfig !== undefined &&
|
|
780
|
+
object.instructionConfig !== null
|
|
781
|
+
? InstructionHandlerConfig.fromPartial(object.instructionConfig)
|
|
782
|
+
: undefined;
|
|
720
783
|
message.startBlock =
|
|
721
784
|
object.startBlock !== undefined && object.startBlock !== null
|
|
722
785
|
? Long.fromValue(object.startBlock)
|
|
@@ -725,11 +788,6 @@ export const ContractConfig = {
|
|
|
725
788
|
object.endBlock !== undefined && object.endBlock !== null
|
|
726
789
|
? Long.fromValue(object.endBlock)
|
|
727
790
|
: Long.UZERO;
|
|
728
|
-
message.instructionConfig =
|
|
729
|
-
object.instructionConfig !== undefined &&
|
|
730
|
-
object.instructionConfig !== null
|
|
731
|
-
? InstructionHandlerConfig.fromPartial(object.instructionConfig)
|
|
732
|
-
: undefined;
|
|
733
791
|
message.processorType = object.processorType ?? "";
|
|
734
792
|
return message;
|
|
735
793
|
},
|
|
@@ -1315,27 +1373,41 @@ export const InstructionHandlerConfig = {
|
|
|
1315
1373
|
},
|
|
1316
1374
|
};
|
|
1317
1375
|
|
|
1318
|
-
function
|
|
1319
|
-
return {
|
|
1376
|
+
function createBaseAptosEventHandlerConfig(): AptosEventHandlerConfig {
|
|
1377
|
+
return { filters: [], handlerId: 0 };
|
|
1320
1378
|
}
|
|
1321
1379
|
|
|
1322
|
-
export const
|
|
1323
|
-
encode(
|
|
1324
|
-
|
|
1325
|
-
|
|
1380
|
+
export const AptosEventHandlerConfig = {
|
|
1381
|
+
encode(
|
|
1382
|
+
message: AptosEventHandlerConfig,
|
|
1383
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
1384
|
+
): _m0.Writer {
|
|
1385
|
+
for (const v of message.filters) {
|
|
1386
|
+
AptosEventFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1387
|
+
}
|
|
1388
|
+
if (message.handlerId !== 0) {
|
|
1389
|
+
writer.uint32(16).int32(message.handlerId);
|
|
1326
1390
|
}
|
|
1327
1391
|
return writer;
|
|
1328
1392
|
},
|
|
1329
1393
|
|
|
1330
|
-
decode(
|
|
1394
|
+
decode(
|
|
1395
|
+
input: _m0.Reader | Uint8Array,
|
|
1396
|
+
length?: number
|
|
1397
|
+
): AptosEventHandlerConfig {
|
|
1331
1398
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1332
1399
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1333
|
-
const message =
|
|
1400
|
+
const message = createBaseAptosEventHandlerConfig();
|
|
1334
1401
|
while (reader.pos < end) {
|
|
1335
1402
|
const tag = reader.uint32();
|
|
1336
1403
|
switch (tag >>> 3) {
|
|
1337
1404
|
case 1:
|
|
1338
|
-
message.
|
|
1405
|
+
message.filters.push(
|
|
1406
|
+
AptosEventFilter.decode(reader, reader.uint32())
|
|
1407
|
+
);
|
|
1408
|
+
break;
|
|
1409
|
+
case 2:
|
|
1410
|
+
message.handlerId = reader.int32();
|
|
1339
1411
|
break;
|
|
1340
1412
|
default:
|
|
1341
1413
|
reader.skipType(tag & 7);
|
|
@@ -1345,55 +1417,64 @@ export const Topic = {
|
|
|
1345
1417
|
return message;
|
|
1346
1418
|
},
|
|
1347
1419
|
|
|
1348
|
-
fromJSON(object: any):
|
|
1420
|
+
fromJSON(object: any): AptosEventHandlerConfig {
|
|
1349
1421
|
return {
|
|
1350
|
-
|
|
1351
|
-
? object.
|
|
1422
|
+
filters: Array.isArray(object?.filters)
|
|
1423
|
+
? object.filters.map((e: any) => AptosEventFilter.fromJSON(e))
|
|
1352
1424
|
: [],
|
|
1425
|
+
handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
|
|
1353
1426
|
};
|
|
1354
1427
|
},
|
|
1355
1428
|
|
|
1356
|
-
toJSON(message:
|
|
1429
|
+
toJSON(message: AptosEventHandlerConfig): unknown {
|
|
1357
1430
|
const obj: any = {};
|
|
1358
|
-
if (message.
|
|
1359
|
-
obj.
|
|
1431
|
+
if (message.filters) {
|
|
1432
|
+
obj.filters = message.filters.map((e) =>
|
|
1433
|
+
e ? AptosEventFilter.toJSON(e) : undefined
|
|
1434
|
+
);
|
|
1360
1435
|
} else {
|
|
1361
|
-
obj.
|
|
1436
|
+
obj.filters = [];
|
|
1362
1437
|
}
|
|
1438
|
+
message.handlerId !== undefined &&
|
|
1439
|
+
(obj.handlerId = Math.round(message.handlerId));
|
|
1363
1440
|
return obj;
|
|
1364
1441
|
},
|
|
1365
1442
|
|
|
1366
|
-
fromPartial(
|
|
1367
|
-
|
|
1368
|
-
|
|
1443
|
+
fromPartial(
|
|
1444
|
+
object: DeepPartial<AptosEventHandlerConfig>
|
|
1445
|
+
): AptosEventHandlerConfig {
|
|
1446
|
+
const message = createBaseAptosEventHandlerConfig();
|
|
1447
|
+
message.filters =
|
|
1448
|
+
object.filters?.map((e) => AptosEventFilter.fromPartial(e)) || [];
|
|
1449
|
+
message.handlerId = object.handlerId ?? 0;
|
|
1369
1450
|
return message;
|
|
1370
1451
|
},
|
|
1371
1452
|
};
|
|
1372
1453
|
|
|
1373
|
-
function
|
|
1374
|
-
return {
|
|
1454
|
+
function createBaseAptosEventFilter(): AptosEventFilter {
|
|
1455
|
+
return { type: "" };
|
|
1375
1456
|
}
|
|
1376
1457
|
|
|
1377
|
-
export const
|
|
1458
|
+
export const AptosEventFilter = {
|
|
1378
1459
|
encode(
|
|
1379
|
-
message:
|
|
1460
|
+
message: AptosEventFilter,
|
|
1380
1461
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1381
1462
|
): _m0.Writer {
|
|
1382
|
-
|
|
1383
|
-
|
|
1463
|
+
if (message.type !== "") {
|
|
1464
|
+
writer.uint32(10).string(message.type);
|
|
1384
1465
|
}
|
|
1385
1466
|
return writer;
|
|
1386
1467
|
},
|
|
1387
1468
|
|
|
1388
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1469
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosEventFilter {
|
|
1389
1470
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1390
1471
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1391
|
-
const message =
|
|
1472
|
+
const message = createBaseAptosEventFilter();
|
|
1392
1473
|
while (reader.pos < end) {
|
|
1393
1474
|
const tag = reader.uint32();
|
|
1394
1475
|
switch (tag >>> 3) {
|
|
1395
1476
|
case 1:
|
|
1396
|
-
message.
|
|
1477
|
+
message.type = reader.string();
|
|
1397
1478
|
break;
|
|
1398
1479
|
default:
|
|
1399
1480
|
reader.skipType(tag & 7);
|
|
@@ -1403,64 +1484,58 @@ export const ProcessLogsRequest = {
|
|
|
1403
1484
|
return message;
|
|
1404
1485
|
},
|
|
1405
1486
|
|
|
1406
|
-
fromJSON(object: any):
|
|
1487
|
+
fromJSON(object: any): AptosEventFilter {
|
|
1407
1488
|
return {
|
|
1408
|
-
|
|
1409
|
-
? object.logBindings.map((e: any) => LogBinding.fromJSON(e))
|
|
1410
|
-
: [],
|
|
1489
|
+
type: isSet(object.type) ? String(object.type) : "",
|
|
1411
1490
|
};
|
|
1412
1491
|
},
|
|
1413
1492
|
|
|
1414
|
-
toJSON(message:
|
|
1493
|
+
toJSON(message: AptosEventFilter): unknown {
|
|
1415
1494
|
const obj: any = {};
|
|
1416
|
-
|
|
1417
|
-
obj.logBindings = message.logBindings.map((e) =>
|
|
1418
|
-
e ? LogBinding.toJSON(e) : undefined
|
|
1419
|
-
);
|
|
1420
|
-
} else {
|
|
1421
|
-
obj.logBindings = [];
|
|
1422
|
-
}
|
|
1495
|
+
message.type !== undefined && (obj.type = message.type);
|
|
1423
1496
|
return obj;
|
|
1424
1497
|
},
|
|
1425
1498
|
|
|
1426
|
-
fromPartial(object: DeepPartial<
|
|
1427
|
-
const message =
|
|
1428
|
-
message.
|
|
1429
|
-
object.logBindings?.map((e) => LogBinding.fromPartial(e)) || [];
|
|
1499
|
+
fromPartial(object: DeepPartial<AptosEventFilter>): AptosEventFilter {
|
|
1500
|
+
const message = createBaseAptosEventFilter();
|
|
1501
|
+
message.type = object.type ?? "";
|
|
1430
1502
|
return message;
|
|
1431
1503
|
},
|
|
1432
1504
|
};
|
|
1433
1505
|
|
|
1434
|
-
function
|
|
1435
|
-
return {
|
|
1506
|
+
function createBaseAptosCallHandlerConfig(): AptosCallHandlerConfig {
|
|
1507
|
+
return { filters: [], handlerId: 0 };
|
|
1436
1508
|
}
|
|
1437
1509
|
|
|
1438
|
-
export const
|
|
1510
|
+
export const AptosCallHandlerConfig = {
|
|
1439
1511
|
encode(
|
|
1440
|
-
message:
|
|
1512
|
+
message: AptosCallHandlerConfig,
|
|
1441
1513
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1442
1514
|
): _m0.Writer {
|
|
1443
|
-
|
|
1444
|
-
|
|
1515
|
+
for (const v of message.filters) {
|
|
1516
|
+
AptosCallFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1445
1517
|
}
|
|
1446
|
-
if (message.
|
|
1447
|
-
writer.uint32(
|
|
1518
|
+
if (message.handlerId !== 0) {
|
|
1519
|
+
writer.uint32(16).int32(message.handlerId);
|
|
1448
1520
|
}
|
|
1449
1521
|
return writer;
|
|
1450
1522
|
},
|
|
1451
1523
|
|
|
1452
|
-
decode(
|
|
1524
|
+
decode(
|
|
1525
|
+
input: _m0.Reader | Uint8Array,
|
|
1526
|
+
length?: number
|
|
1527
|
+
): AptosCallHandlerConfig {
|
|
1453
1528
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1454
1529
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1455
|
-
const message =
|
|
1530
|
+
const message = createBaseAptosCallHandlerConfig();
|
|
1456
1531
|
while (reader.pos < end) {
|
|
1457
1532
|
const tag = reader.uint32();
|
|
1458
1533
|
switch (tag >>> 3) {
|
|
1459
1534
|
case 1:
|
|
1460
|
-
message.
|
|
1535
|
+
message.filters.push(AptosCallFilter.decode(reader, reader.uint32()));
|
|
1461
1536
|
break;
|
|
1462
|
-
case
|
|
1463
|
-
message.
|
|
1537
|
+
case 2:
|
|
1538
|
+
message.handlerId = reader.int32();
|
|
1464
1539
|
break;
|
|
1465
1540
|
default:
|
|
1466
1541
|
reader.skipType(tag & 7);
|
|
@@ -1470,68 +1545,76 @@ export const ProcessLogsResponse = {
|
|
|
1470
1545
|
return message;
|
|
1471
1546
|
},
|
|
1472
1547
|
|
|
1473
|
-
fromJSON(object: any):
|
|
1548
|
+
fromJSON(object: any): AptosCallHandlerConfig {
|
|
1474
1549
|
return {
|
|
1475
|
-
|
|
1476
|
-
?
|
|
1477
|
-
:
|
|
1478
|
-
|
|
1479
|
-
? Boolean(object.configUpdated)
|
|
1480
|
-
: false,
|
|
1550
|
+
filters: Array.isArray(object?.filters)
|
|
1551
|
+
? object.filters.map((e: any) => AptosCallFilter.fromJSON(e))
|
|
1552
|
+
: [],
|
|
1553
|
+
handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
|
|
1481
1554
|
};
|
|
1482
1555
|
},
|
|
1483
1556
|
|
|
1484
|
-
toJSON(message:
|
|
1557
|
+
toJSON(message: AptosCallHandlerConfig): unknown {
|
|
1485
1558
|
const obj: any = {};
|
|
1486
|
-
message.
|
|
1487
|
-
|
|
1488
|
-
?
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1559
|
+
if (message.filters) {
|
|
1560
|
+
obj.filters = message.filters.map((e) =>
|
|
1561
|
+
e ? AptosCallFilter.toJSON(e) : undefined
|
|
1562
|
+
);
|
|
1563
|
+
} else {
|
|
1564
|
+
obj.filters = [];
|
|
1565
|
+
}
|
|
1566
|
+
message.handlerId !== undefined &&
|
|
1567
|
+
(obj.handlerId = Math.round(message.handlerId));
|
|
1492
1568
|
return obj;
|
|
1493
1569
|
},
|
|
1494
1570
|
|
|
1495
|
-
fromPartial(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
message.
|
|
1571
|
+
fromPartial(
|
|
1572
|
+
object: DeepPartial<AptosCallHandlerConfig>
|
|
1573
|
+
): AptosCallHandlerConfig {
|
|
1574
|
+
const message = createBaseAptosCallHandlerConfig();
|
|
1575
|
+
message.filters =
|
|
1576
|
+
object.filters?.map((e) => AptosCallFilter.fromPartial(e)) || [];
|
|
1577
|
+
message.handlerId = object.handlerId ?? 0;
|
|
1502
1578
|
return message;
|
|
1503
1579
|
},
|
|
1504
1580
|
};
|
|
1505
1581
|
|
|
1506
|
-
function
|
|
1507
|
-
return {
|
|
1582
|
+
function createBaseAptosCallFilter(): AptosCallFilter {
|
|
1583
|
+
return { function: "", typeArguments: [], withTypeArguments: false };
|
|
1508
1584
|
}
|
|
1509
1585
|
|
|
1510
|
-
export const
|
|
1586
|
+
export const AptosCallFilter = {
|
|
1511
1587
|
encode(
|
|
1512
|
-
message:
|
|
1588
|
+
message: AptosCallFilter,
|
|
1513
1589
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1514
1590
|
): _m0.Writer {
|
|
1515
|
-
|
|
1516
|
-
|
|
1591
|
+
if (message.function !== "") {
|
|
1592
|
+
writer.uint32(10).string(message.function);
|
|
1593
|
+
}
|
|
1594
|
+
for (const v of message.typeArguments) {
|
|
1595
|
+
writer.uint32(18).string(v!);
|
|
1596
|
+
}
|
|
1597
|
+
if (message.withTypeArguments === true) {
|
|
1598
|
+
writer.uint32(24).bool(message.withTypeArguments);
|
|
1517
1599
|
}
|
|
1518
1600
|
return writer;
|
|
1519
1601
|
},
|
|
1520
1602
|
|
|
1521
|
-
decode(
|
|
1522
|
-
input: _m0.Reader | Uint8Array,
|
|
1523
|
-
length?: number
|
|
1524
|
-
): ProcessTracesRequest {
|
|
1603
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosCallFilter {
|
|
1525
1604
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1526
1605
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1527
|
-
const message =
|
|
1606
|
+
const message = createBaseAptosCallFilter();
|
|
1528
1607
|
while (reader.pos < end) {
|
|
1529
1608
|
const tag = reader.uint32();
|
|
1530
1609
|
switch (tag >>> 3) {
|
|
1531
1610
|
case 1:
|
|
1532
|
-
message.
|
|
1533
|
-
|
|
1534
|
-
|
|
1611
|
+
message.function = reader.string();
|
|
1612
|
+
break;
|
|
1613
|
+
case 2:
|
|
1614
|
+
message.typeArguments.push(reader.string());
|
|
1615
|
+
break;
|
|
1616
|
+
case 3:
|
|
1617
|
+
message.withTypeArguments = reader.bool();
|
|
1535
1618
|
break;
|
|
1536
1619
|
default:
|
|
1537
1620
|
reader.skipType(tag & 7);
|
|
@@ -1541,61 +1624,61 @@ export const ProcessTracesRequest = {
|
|
|
1541
1624
|
return message;
|
|
1542
1625
|
},
|
|
1543
1626
|
|
|
1544
|
-
fromJSON(object: any):
|
|
1627
|
+
fromJSON(object: any): AptosCallFilter {
|
|
1545
1628
|
return {
|
|
1546
|
-
|
|
1547
|
-
|
|
1629
|
+
function: isSet(object.function) ? String(object.function) : "",
|
|
1630
|
+
typeArguments: Array.isArray(object?.typeArguments)
|
|
1631
|
+
? object.typeArguments.map((e: any) => String(e))
|
|
1548
1632
|
: [],
|
|
1633
|
+
withTypeArguments: isSet(object.withTypeArguments)
|
|
1634
|
+
? Boolean(object.withTypeArguments)
|
|
1635
|
+
: false,
|
|
1549
1636
|
};
|
|
1550
1637
|
},
|
|
1551
1638
|
|
|
1552
|
-
toJSON(message:
|
|
1639
|
+
toJSON(message: AptosCallFilter): unknown {
|
|
1553
1640
|
const obj: any = {};
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
);
|
|
1641
|
+
message.function !== undefined && (obj.function = message.function);
|
|
1642
|
+
if (message.typeArguments) {
|
|
1643
|
+
obj.typeArguments = message.typeArguments.map((e) => e);
|
|
1558
1644
|
} else {
|
|
1559
|
-
obj.
|
|
1645
|
+
obj.typeArguments = [];
|
|
1560
1646
|
}
|
|
1647
|
+
message.withTypeArguments !== undefined &&
|
|
1648
|
+
(obj.withTypeArguments = message.withTypeArguments);
|
|
1561
1649
|
return obj;
|
|
1562
1650
|
},
|
|
1563
1651
|
|
|
1564
|
-
fromPartial(object: DeepPartial<
|
|
1565
|
-
const message =
|
|
1566
|
-
message.
|
|
1567
|
-
|
|
1652
|
+
fromPartial(object: DeepPartial<AptosCallFilter>): AptosCallFilter {
|
|
1653
|
+
const message = createBaseAptosCallFilter();
|
|
1654
|
+
message.function = object.function ?? "";
|
|
1655
|
+
message.typeArguments = object.typeArguments?.map((e) => e) || [];
|
|
1656
|
+
message.withTypeArguments = object.withTypeArguments ?? false;
|
|
1568
1657
|
return message;
|
|
1569
1658
|
},
|
|
1570
1659
|
};
|
|
1571
1660
|
|
|
1572
|
-
function
|
|
1573
|
-
return {
|
|
1661
|
+
function createBaseTopic(): Topic {
|
|
1662
|
+
return { hashes: [] };
|
|
1574
1663
|
}
|
|
1575
1664
|
|
|
1576
|
-
export const
|
|
1577
|
-
encode(
|
|
1578
|
-
message
|
|
1579
|
-
|
|
1580
|
-
): _m0.Writer {
|
|
1581
|
-
if (message.result !== undefined) {
|
|
1582
|
-
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1665
|
+
export const Topic = {
|
|
1666
|
+
encode(message: Topic, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1667
|
+
for (const v of message.hashes) {
|
|
1668
|
+
writer.uint32(10).string(v!);
|
|
1583
1669
|
}
|
|
1584
1670
|
return writer;
|
|
1585
1671
|
},
|
|
1586
1672
|
|
|
1587
|
-
decode(
|
|
1588
|
-
input: _m0.Reader | Uint8Array,
|
|
1589
|
-
length?: number
|
|
1590
|
-
): ProcessTracesResponse {
|
|
1673
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Topic {
|
|
1591
1674
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1592
1675
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1593
|
-
const message =
|
|
1676
|
+
const message = createBaseTopic();
|
|
1594
1677
|
while (reader.pos < end) {
|
|
1595
1678
|
const tag = reader.uint32();
|
|
1596
1679
|
switch (tag >>> 3) {
|
|
1597
1680
|
case 1:
|
|
1598
|
-
message.
|
|
1681
|
+
message.hashes.push(reader.string());
|
|
1599
1682
|
break;
|
|
1600
1683
|
default:
|
|
1601
1684
|
reader.skipType(tag & 7);
|
|
@@ -1605,31 +1688,27 @@ export const ProcessTracesResponse = {
|
|
|
1605
1688
|
return message;
|
|
1606
1689
|
},
|
|
1607
1690
|
|
|
1608
|
-
fromJSON(object: any):
|
|
1691
|
+
fromJSON(object: any): Topic {
|
|
1609
1692
|
return {
|
|
1610
|
-
|
|
1611
|
-
?
|
|
1612
|
-
:
|
|
1693
|
+
hashes: Array.isArray(object?.hashes)
|
|
1694
|
+
? object.hashes.map((e: any) => String(e))
|
|
1695
|
+
: [],
|
|
1613
1696
|
};
|
|
1614
1697
|
},
|
|
1615
1698
|
|
|
1616
|
-
toJSON(message:
|
|
1699
|
+
toJSON(message: Topic): unknown {
|
|
1617
1700
|
const obj: any = {};
|
|
1618
|
-
message.
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1701
|
+
if (message.hashes) {
|
|
1702
|
+
obj.hashes = message.hashes.map((e) => e);
|
|
1703
|
+
} else {
|
|
1704
|
+
obj.hashes = [];
|
|
1705
|
+
}
|
|
1622
1706
|
return obj;
|
|
1623
1707
|
},
|
|
1624
1708
|
|
|
1625
|
-
fromPartial(
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
const message = createBaseProcessTracesResponse();
|
|
1629
|
-
message.result =
|
|
1630
|
-
object.result !== undefined && object.result !== null
|
|
1631
|
-
? ProcessResult.fromPartial(object.result)
|
|
1632
|
-
: undefined;
|
|
1709
|
+
fromPartial(object: DeepPartial<Topic>): Topic {
|
|
1710
|
+
const message = createBaseTopic();
|
|
1711
|
+
message.hashes = object.hashes?.map((e) => e) || [];
|
|
1633
1712
|
return message;
|
|
1634
1713
|
},
|
|
1635
1714
|
};
|
|
@@ -1739,337 +1818,7 @@ export const ProcessInstructionsRequest = {
|
|
|
1739
1818
|
case 1:
|
|
1740
1819
|
message.instructions.push(
|
|
1741
1820
|
Instruction.decode(reader, reader.uint32())
|
|
1742
|
-
);
|
|
1743
|
-
break;
|
|
1744
|
-
default:
|
|
1745
|
-
reader.skipType(tag & 7);
|
|
1746
|
-
break;
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
return message;
|
|
1750
|
-
},
|
|
1751
|
-
|
|
1752
|
-
fromJSON(object: any): ProcessInstructionsRequest {
|
|
1753
|
-
return {
|
|
1754
|
-
instructions: Array.isArray(object?.instructions)
|
|
1755
|
-
? object.instructions.map((e: any) => Instruction.fromJSON(e))
|
|
1756
|
-
: [],
|
|
1757
|
-
};
|
|
1758
|
-
},
|
|
1759
|
-
|
|
1760
|
-
toJSON(message: ProcessInstructionsRequest): unknown {
|
|
1761
|
-
const obj: any = {};
|
|
1762
|
-
if (message.instructions) {
|
|
1763
|
-
obj.instructions = message.instructions.map((e) =>
|
|
1764
|
-
e ? Instruction.toJSON(e) : undefined
|
|
1765
|
-
);
|
|
1766
|
-
} else {
|
|
1767
|
-
obj.instructions = [];
|
|
1768
|
-
}
|
|
1769
|
-
return obj;
|
|
1770
|
-
},
|
|
1771
|
-
|
|
1772
|
-
fromPartial(
|
|
1773
|
-
object: DeepPartial<ProcessInstructionsRequest>
|
|
1774
|
-
): ProcessInstructionsRequest {
|
|
1775
|
-
const message = createBaseProcessInstructionsRequest();
|
|
1776
|
-
message.instructions =
|
|
1777
|
-
object.instructions?.map((e) => Instruction.fromPartial(e)) || [];
|
|
1778
|
-
return message;
|
|
1779
|
-
},
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
function createBaseProcessTransactionsResponse(): ProcessTransactionsResponse {
|
|
1783
|
-
return { result: undefined };
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
export const ProcessTransactionsResponse = {
|
|
1787
|
-
encode(
|
|
1788
|
-
message: ProcessTransactionsResponse,
|
|
1789
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1790
|
-
): _m0.Writer {
|
|
1791
|
-
if (message.result !== undefined) {
|
|
1792
|
-
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1793
|
-
}
|
|
1794
|
-
return writer;
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1797
|
-
decode(
|
|
1798
|
-
input: _m0.Reader | Uint8Array,
|
|
1799
|
-
length?: number
|
|
1800
|
-
): ProcessTransactionsResponse {
|
|
1801
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1802
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1803
|
-
const message = createBaseProcessTransactionsResponse();
|
|
1804
|
-
while (reader.pos < end) {
|
|
1805
|
-
const tag = reader.uint32();
|
|
1806
|
-
switch (tag >>> 3) {
|
|
1807
|
-
case 1:
|
|
1808
|
-
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1809
|
-
break;
|
|
1810
|
-
default:
|
|
1811
|
-
reader.skipType(tag & 7);
|
|
1812
|
-
break;
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
return message;
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
fromJSON(object: any): ProcessTransactionsResponse {
|
|
1819
|
-
return {
|
|
1820
|
-
result: isSet(object.result)
|
|
1821
|
-
? ProcessResult.fromJSON(object.result)
|
|
1822
|
-
: undefined,
|
|
1823
|
-
};
|
|
1824
|
-
},
|
|
1825
|
-
|
|
1826
|
-
toJSON(message: ProcessTransactionsResponse): unknown {
|
|
1827
|
-
const obj: any = {};
|
|
1828
|
-
message.result !== undefined &&
|
|
1829
|
-
(obj.result = message.result
|
|
1830
|
-
? ProcessResult.toJSON(message.result)
|
|
1831
|
-
: undefined);
|
|
1832
|
-
return obj;
|
|
1833
|
-
},
|
|
1834
|
-
|
|
1835
|
-
fromPartial(
|
|
1836
|
-
object: DeepPartial<ProcessTransactionsResponse>
|
|
1837
|
-
): ProcessTransactionsResponse {
|
|
1838
|
-
const message = createBaseProcessTransactionsResponse();
|
|
1839
|
-
message.result =
|
|
1840
|
-
object.result !== undefined && object.result !== null
|
|
1841
|
-
? ProcessResult.fromPartial(object.result)
|
|
1842
|
-
: undefined;
|
|
1843
|
-
return message;
|
|
1844
|
-
},
|
|
1845
|
-
};
|
|
1846
|
-
|
|
1847
|
-
function createBaseProcessInstructionsResponse(): ProcessInstructionsResponse {
|
|
1848
|
-
return { result: undefined };
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
export const ProcessInstructionsResponse = {
|
|
1852
|
-
encode(
|
|
1853
|
-
message: ProcessInstructionsResponse,
|
|
1854
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1855
|
-
): _m0.Writer {
|
|
1856
|
-
if (message.result !== undefined) {
|
|
1857
|
-
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1858
|
-
}
|
|
1859
|
-
return writer;
|
|
1860
|
-
},
|
|
1861
|
-
|
|
1862
|
-
decode(
|
|
1863
|
-
input: _m0.Reader | Uint8Array,
|
|
1864
|
-
length?: number
|
|
1865
|
-
): ProcessInstructionsResponse {
|
|
1866
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1867
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1868
|
-
const message = createBaseProcessInstructionsResponse();
|
|
1869
|
-
while (reader.pos < end) {
|
|
1870
|
-
const tag = reader.uint32();
|
|
1871
|
-
switch (tag >>> 3) {
|
|
1872
|
-
case 1:
|
|
1873
|
-
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1874
|
-
break;
|
|
1875
|
-
default:
|
|
1876
|
-
reader.skipType(tag & 7);
|
|
1877
|
-
break;
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
return message;
|
|
1881
|
-
},
|
|
1882
|
-
|
|
1883
|
-
fromJSON(object: any): ProcessInstructionsResponse {
|
|
1884
|
-
return {
|
|
1885
|
-
result: isSet(object.result)
|
|
1886
|
-
? ProcessResult.fromJSON(object.result)
|
|
1887
|
-
: undefined,
|
|
1888
|
-
};
|
|
1889
|
-
},
|
|
1890
|
-
|
|
1891
|
-
toJSON(message: ProcessInstructionsResponse): unknown {
|
|
1892
|
-
const obj: any = {};
|
|
1893
|
-
message.result !== undefined &&
|
|
1894
|
-
(obj.result = message.result
|
|
1895
|
-
? ProcessResult.toJSON(message.result)
|
|
1896
|
-
: undefined);
|
|
1897
|
-
return obj;
|
|
1898
|
-
},
|
|
1899
|
-
|
|
1900
|
-
fromPartial(
|
|
1901
|
-
object: DeepPartial<ProcessInstructionsResponse>
|
|
1902
|
-
): ProcessInstructionsResponse {
|
|
1903
|
-
const message = createBaseProcessInstructionsResponse();
|
|
1904
|
-
message.result =
|
|
1905
|
-
object.result !== undefined && object.result !== null
|
|
1906
|
-
? ProcessResult.fromPartial(object.result)
|
|
1907
|
-
: undefined;
|
|
1908
|
-
return message;
|
|
1909
|
-
},
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
function createBaseProcessBlocksRequest(): ProcessBlocksRequest {
|
|
1913
|
-
return { blockBindings: [] };
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
export const ProcessBlocksRequest = {
|
|
1917
|
-
encode(
|
|
1918
|
-
message: ProcessBlocksRequest,
|
|
1919
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1920
|
-
): _m0.Writer {
|
|
1921
|
-
for (const v of message.blockBindings) {
|
|
1922
|
-
BlockBinding.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1923
|
-
}
|
|
1924
|
-
return writer;
|
|
1925
|
-
},
|
|
1926
|
-
|
|
1927
|
-
decode(
|
|
1928
|
-
input: _m0.Reader | Uint8Array,
|
|
1929
|
-
length?: number
|
|
1930
|
-
): ProcessBlocksRequest {
|
|
1931
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1932
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1933
|
-
const message = createBaseProcessBlocksRequest();
|
|
1934
|
-
while (reader.pos < end) {
|
|
1935
|
-
const tag = reader.uint32();
|
|
1936
|
-
switch (tag >>> 3) {
|
|
1937
|
-
case 2:
|
|
1938
|
-
message.blockBindings.push(
|
|
1939
|
-
BlockBinding.decode(reader, reader.uint32())
|
|
1940
|
-
);
|
|
1941
|
-
break;
|
|
1942
|
-
default:
|
|
1943
|
-
reader.skipType(tag & 7);
|
|
1944
|
-
break;
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
return message;
|
|
1948
|
-
},
|
|
1949
|
-
|
|
1950
|
-
fromJSON(object: any): ProcessBlocksRequest {
|
|
1951
|
-
return {
|
|
1952
|
-
blockBindings: Array.isArray(object?.blockBindings)
|
|
1953
|
-
? object.blockBindings.map((e: any) => BlockBinding.fromJSON(e))
|
|
1954
|
-
: [],
|
|
1955
|
-
};
|
|
1956
|
-
},
|
|
1957
|
-
|
|
1958
|
-
toJSON(message: ProcessBlocksRequest): unknown {
|
|
1959
|
-
const obj: any = {};
|
|
1960
|
-
if (message.blockBindings) {
|
|
1961
|
-
obj.blockBindings = message.blockBindings.map((e) =>
|
|
1962
|
-
e ? BlockBinding.toJSON(e) : undefined
|
|
1963
|
-
);
|
|
1964
|
-
} else {
|
|
1965
|
-
obj.blockBindings = [];
|
|
1966
|
-
}
|
|
1967
|
-
return obj;
|
|
1968
|
-
},
|
|
1969
|
-
|
|
1970
|
-
fromPartial(object: DeepPartial<ProcessBlocksRequest>): ProcessBlocksRequest {
|
|
1971
|
-
const message = createBaseProcessBlocksRequest();
|
|
1972
|
-
message.blockBindings =
|
|
1973
|
-
object.blockBindings?.map((e) => BlockBinding.fromPartial(e)) || [];
|
|
1974
|
-
return message;
|
|
1975
|
-
},
|
|
1976
|
-
};
|
|
1977
|
-
|
|
1978
|
-
function createBaseProcessBlocksResponse(): ProcessBlocksResponse {
|
|
1979
|
-
return { result: undefined };
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
export const ProcessBlocksResponse = {
|
|
1983
|
-
encode(
|
|
1984
|
-
message: ProcessBlocksResponse,
|
|
1985
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1986
|
-
): _m0.Writer {
|
|
1987
|
-
if (message.result !== undefined) {
|
|
1988
|
-
ProcessResult.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
1989
|
-
}
|
|
1990
|
-
return writer;
|
|
1991
|
-
},
|
|
1992
|
-
|
|
1993
|
-
decode(
|
|
1994
|
-
input: _m0.Reader | Uint8Array,
|
|
1995
|
-
length?: number
|
|
1996
|
-
): ProcessBlocksResponse {
|
|
1997
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1998
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1999
|
-
const message = createBaseProcessBlocksResponse();
|
|
2000
|
-
while (reader.pos < end) {
|
|
2001
|
-
const tag = reader.uint32();
|
|
2002
|
-
switch (tag >>> 3) {
|
|
2003
|
-
case 2:
|
|
2004
|
-
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
2005
|
-
break;
|
|
2006
|
-
default:
|
|
2007
|
-
reader.skipType(tag & 7);
|
|
2008
|
-
break;
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
return message;
|
|
2012
|
-
},
|
|
2013
|
-
|
|
2014
|
-
fromJSON(object: any): ProcessBlocksResponse {
|
|
2015
|
-
return {
|
|
2016
|
-
result: isSet(object.result)
|
|
2017
|
-
? ProcessResult.fromJSON(object.result)
|
|
2018
|
-
: undefined,
|
|
2019
|
-
};
|
|
2020
|
-
},
|
|
2021
|
-
|
|
2022
|
-
toJSON(message: ProcessBlocksResponse): unknown {
|
|
2023
|
-
const obj: any = {};
|
|
2024
|
-
message.result !== undefined &&
|
|
2025
|
-
(obj.result = message.result
|
|
2026
|
-
? ProcessResult.toJSON(message.result)
|
|
2027
|
-
: undefined);
|
|
2028
|
-
return obj;
|
|
2029
|
-
},
|
|
2030
|
-
|
|
2031
|
-
fromPartial(
|
|
2032
|
-
object: DeepPartial<ProcessBlocksResponse>
|
|
2033
|
-
): ProcessBlocksResponse {
|
|
2034
|
-
const message = createBaseProcessBlocksResponse();
|
|
2035
|
-
message.result =
|
|
2036
|
-
object.result !== undefined && object.result !== null
|
|
2037
|
-
? ProcessResult.fromPartial(object.result)
|
|
2038
|
-
: undefined;
|
|
2039
|
-
return message;
|
|
2040
|
-
},
|
|
2041
|
-
};
|
|
2042
|
-
|
|
2043
|
-
function createBaseLogBinding(): LogBinding {
|
|
2044
|
-
return { log: undefined, handlerId: 0 };
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
export const LogBinding = {
|
|
2048
|
-
encode(
|
|
2049
|
-
message: LogBinding,
|
|
2050
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2051
|
-
): _m0.Writer {
|
|
2052
|
-
if (message.log !== undefined) {
|
|
2053
|
-
RawLog.encode(message.log, writer.uint32(10).fork()).ldelim();
|
|
2054
|
-
}
|
|
2055
|
-
if (message.handlerId !== 0) {
|
|
2056
|
-
writer.uint32(16).int32(message.handlerId);
|
|
2057
|
-
}
|
|
2058
|
-
return writer;
|
|
2059
|
-
},
|
|
2060
|
-
|
|
2061
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): LogBinding {
|
|
2062
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2063
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2064
|
-
const message = createBaseLogBinding();
|
|
2065
|
-
while (reader.pos < end) {
|
|
2066
|
-
const tag = reader.uint32();
|
|
2067
|
-
switch (tag >>> 3) {
|
|
2068
|
-
case 1:
|
|
2069
|
-
message.log = RawLog.decode(reader, reader.uint32());
|
|
2070
|
-
break;
|
|
2071
|
-
case 2:
|
|
2072
|
-
message.handlerId = reader.int32();
|
|
1821
|
+
);
|
|
2073
1822
|
break;
|
|
2074
1823
|
default:
|
|
2075
1824
|
reader.skipType(tag & 7);
|
|
@@ -2079,57 +1828,65 @@ export const LogBinding = {
|
|
|
2079
1828
|
return message;
|
|
2080
1829
|
},
|
|
2081
1830
|
|
|
2082
|
-
fromJSON(object: any):
|
|
1831
|
+
fromJSON(object: any): ProcessInstructionsRequest {
|
|
2083
1832
|
return {
|
|
2084
|
-
|
|
2085
|
-
|
|
1833
|
+
instructions: Array.isArray(object?.instructions)
|
|
1834
|
+
? object.instructions.map((e: any) => Instruction.fromJSON(e))
|
|
1835
|
+
: [],
|
|
2086
1836
|
};
|
|
2087
1837
|
},
|
|
2088
1838
|
|
|
2089
|
-
toJSON(message:
|
|
1839
|
+
toJSON(message: ProcessInstructionsRequest): unknown {
|
|
2090
1840
|
const obj: any = {};
|
|
2091
|
-
message.
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
1841
|
+
if (message.instructions) {
|
|
1842
|
+
obj.instructions = message.instructions.map((e) =>
|
|
1843
|
+
e ? Instruction.toJSON(e) : undefined
|
|
1844
|
+
);
|
|
1845
|
+
} else {
|
|
1846
|
+
obj.instructions = [];
|
|
1847
|
+
}
|
|
2095
1848
|
return obj;
|
|
2096
1849
|
},
|
|
2097
1850
|
|
|
2098
|
-
fromPartial(
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
message.handlerId = object.handlerId ?? 0;
|
|
1851
|
+
fromPartial(
|
|
1852
|
+
object: DeepPartial<ProcessInstructionsRequest>
|
|
1853
|
+
): ProcessInstructionsRequest {
|
|
1854
|
+
const message = createBaseProcessInstructionsRequest();
|
|
1855
|
+
message.instructions =
|
|
1856
|
+
object.instructions?.map((e) => Instruction.fromPartial(e)) || [];
|
|
2105
1857
|
return message;
|
|
2106
1858
|
},
|
|
2107
1859
|
};
|
|
2108
1860
|
|
|
2109
|
-
function
|
|
2110
|
-
return {
|
|
1861
|
+
function createBaseProcessBlocksRequest(): ProcessBlocksRequest {
|
|
1862
|
+
return { blockBindings: [] };
|
|
2111
1863
|
}
|
|
2112
1864
|
|
|
2113
|
-
export const
|
|
1865
|
+
export const ProcessBlocksRequest = {
|
|
2114
1866
|
encode(
|
|
2115
|
-
message:
|
|
1867
|
+
message: ProcessBlocksRequest,
|
|
2116
1868
|
writer: _m0.Writer = _m0.Writer.create()
|
|
2117
1869
|
): _m0.Writer {
|
|
2118
|
-
|
|
2119
|
-
writer.uint32(
|
|
1870
|
+
for (const v of message.blockBindings) {
|
|
1871
|
+
BlockBinding.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
2120
1872
|
}
|
|
2121
1873
|
return writer;
|
|
2122
1874
|
},
|
|
2123
1875
|
|
|
2124
|
-
decode(
|
|
1876
|
+
decode(
|
|
1877
|
+
input: _m0.Reader | Uint8Array,
|
|
1878
|
+
length?: number
|
|
1879
|
+
): ProcessBlocksRequest {
|
|
2125
1880
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2126
1881
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2127
|
-
const message =
|
|
1882
|
+
const message = createBaseProcessBlocksRequest();
|
|
2128
1883
|
while (reader.pos < end) {
|
|
2129
1884
|
const tag = reader.uint32();
|
|
2130
1885
|
switch (tag >>> 3) {
|
|
2131
|
-
case
|
|
2132
|
-
message.
|
|
1886
|
+
case 2:
|
|
1887
|
+
message.blockBindings.push(
|
|
1888
|
+
BlockBinding.decode(reader, reader.uint32())
|
|
1889
|
+
);
|
|
2133
1890
|
break;
|
|
2134
1891
|
default:
|
|
2135
1892
|
reader.skipType(tag & 7);
|
|
@@ -2139,58 +1896,61 @@ export const RawLog = {
|
|
|
2139
1896
|
return message;
|
|
2140
1897
|
},
|
|
2141
1898
|
|
|
2142
|
-
fromJSON(object: any):
|
|
1899
|
+
fromJSON(object: any): ProcessBlocksRequest {
|
|
2143
1900
|
return {
|
|
2144
|
-
|
|
1901
|
+
blockBindings: Array.isArray(object?.blockBindings)
|
|
1902
|
+
? object.blockBindings.map((e: any) => BlockBinding.fromJSON(e))
|
|
1903
|
+
: [],
|
|
2145
1904
|
};
|
|
2146
1905
|
},
|
|
2147
1906
|
|
|
2148
|
-
toJSON(message:
|
|
1907
|
+
toJSON(message: ProcessBlocksRequest): unknown {
|
|
2149
1908
|
const obj: any = {};
|
|
2150
|
-
message.
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
)
|
|
1909
|
+
if (message.blockBindings) {
|
|
1910
|
+
obj.blockBindings = message.blockBindings.map((e) =>
|
|
1911
|
+
e ? BlockBinding.toJSON(e) : undefined
|
|
1912
|
+
);
|
|
1913
|
+
} else {
|
|
1914
|
+
obj.blockBindings = [];
|
|
1915
|
+
}
|
|
2154
1916
|
return obj;
|
|
2155
1917
|
},
|
|
2156
1918
|
|
|
2157
|
-
fromPartial(object: DeepPartial<
|
|
2158
|
-
const message =
|
|
2159
|
-
message.
|
|
1919
|
+
fromPartial(object: DeepPartial<ProcessBlocksRequest>): ProcessBlocksRequest {
|
|
1920
|
+
const message = createBaseProcessBlocksRequest();
|
|
1921
|
+
message.blockBindings =
|
|
1922
|
+
object.blockBindings?.map((e) => BlockBinding.fromPartial(e)) || [];
|
|
2160
1923
|
return message;
|
|
2161
1924
|
},
|
|
2162
1925
|
};
|
|
2163
1926
|
|
|
2164
|
-
function
|
|
2165
|
-
return {
|
|
1927
|
+
function createBaseProcessBindingsRequest(): ProcessBindingsRequest {
|
|
1928
|
+
return { bindings: [] };
|
|
2166
1929
|
}
|
|
2167
1930
|
|
|
2168
|
-
export const
|
|
1931
|
+
export const ProcessBindingsRequest = {
|
|
2169
1932
|
encode(
|
|
2170
|
-
message:
|
|
1933
|
+
message: ProcessBindingsRequest,
|
|
2171
1934
|
writer: _m0.Writer = _m0.Writer.create()
|
|
2172
1935
|
): _m0.Writer {
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
}
|
|
2176
|
-
if (message.handlerId !== 0) {
|
|
2177
|
-
writer.uint32(16).int32(message.handlerId);
|
|
1936
|
+
for (const v of message.bindings) {
|
|
1937
|
+
DataBinding.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2178
1938
|
}
|
|
2179
1939
|
return writer;
|
|
2180
1940
|
},
|
|
2181
1941
|
|
|
2182
|
-
decode(
|
|
1942
|
+
decode(
|
|
1943
|
+
input: _m0.Reader | Uint8Array,
|
|
1944
|
+
length?: number
|
|
1945
|
+
): ProcessBindingsRequest {
|
|
2183
1946
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2184
1947
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2185
|
-
const message =
|
|
1948
|
+
const message = createBaseProcessBindingsRequest();
|
|
2186
1949
|
while (reader.pos < end) {
|
|
2187
1950
|
const tag = reader.uint32();
|
|
2188
1951
|
switch (tag >>> 3) {
|
|
2189
1952
|
case 1:
|
|
2190
|
-
message.
|
|
2191
|
-
break;
|
|
2192
|
-
case 2:
|
|
2193
|
-
message.handlerId = reader.int32();
|
|
1953
|
+
message.bindings.push(DataBinding.decode(reader, reader.uint32()));
|
|
2194
1954
|
break;
|
|
2195
1955
|
default:
|
|
2196
1956
|
reader.skipType(tag & 7);
|
|
@@ -2200,57 +1960,69 @@ export const TraceBinding = {
|
|
|
2200
1960
|
return message;
|
|
2201
1961
|
},
|
|
2202
1962
|
|
|
2203
|
-
fromJSON(object: any):
|
|
1963
|
+
fromJSON(object: any): ProcessBindingsRequest {
|
|
2204
1964
|
return {
|
|
2205
|
-
|
|
2206
|
-
|
|
1965
|
+
bindings: Array.isArray(object?.bindings)
|
|
1966
|
+
? object.bindings.map((e: any) => DataBinding.fromJSON(e))
|
|
1967
|
+
: [],
|
|
2207
1968
|
};
|
|
2208
1969
|
},
|
|
2209
1970
|
|
|
2210
|
-
toJSON(message:
|
|
1971
|
+
toJSON(message: ProcessBindingsRequest): unknown {
|
|
2211
1972
|
const obj: any = {};
|
|
2212
|
-
message.
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
1973
|
+
if (message.bindings) {
|
|
1974
|
+
obj.bindings = message.bindings.map((e) =>
|
|
1975
|
+
e ? DataBinding.toJSON(e) : undefined
|
|
1976
|
+
);
|
|
1977
|
+
} else {
|
|
1978
|
+
obj.bindings = [];
|
|
1979
|
+
}
|
|
2216
1980
|
return obj;
|
|
2217
1981
|
},
|
|
2218
1982
|
|
|
2219
|
-
fromPartial(
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
message.handlerId = object.handlerId ?? 0;
|
|
1983
|
+
fromPartial(
|
|
1984
|
+
object: DeepPartial<ProcessBindingsRequest>
|
|
1985
|
+
): ProcessBindingsRequest {
|
|
1986
|
+
const message = createBaseProcessBindingsRequest();
|
|
1987
|
+
message.bindings =
|
|
1988
|
+
object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
|
|
2226
1989
|
return message;
|
|
2227
1990
|
},
|
|
2228
1991
|
};
|
|
2229
1992
|
|
|
2230
|
-
function
|
|
2231
|
-
return {
|
|
1993
|
+
function createBaseProcessBindingResponse(): ProcessBindingResponse {
|
|
1994
|
+
return { result: undefined, configUpdated: false };
|
|
2232
1995
|
}
|
|
2233
1996
|
|
|
2234
|
-
export const
|
|
1997
|
+
export const ProcessBindingResponse = {
|
|
2235
1998
|
encode(
|
|
2236
|
-
message:
|
|
1999
|
+
message: ProcessBindingResponse,
|
|
2237
2000
|
writer: _m0.Writer = _m0.Writer.create()
|
|
2238
2001
|
): _m0.Writer {
|
|
2239
|
-
if (message.
|
|
2240
|
-
writer.uint32(10).
|
|
2002
|
+
if (message.result !== undefined) {
|
|
2003
|
+
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
2004
|
+
}
|
|
2005
|
+
if (message.configUpdated === true) {
|
|
2006
|
+
writer.uint32(32).bool(message.configUpdated);
|
|
2241
2007
|
}
|
|
2242
2008
|
return writer;
|
|
2243
2009
|
},
|
|
2244
2010
|
|
|
2245
|
-
decode(
|
|
2011
|
+
decode(
|
|
2012
|
+
input: _m0.Reader | Uint8Array,
|
|
2013
|
+
length?: number
|
|
2014
|
+
): ProcessBindingResponse {
|
|
2246
2015
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2247
2016
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2248
|
-
const message =
|
|
2017
|
+
const message = createBaseProcessBindingResponse();
|
|
2249
2018
|
while (reader.pos < end) {
|
|
2250
2019
|
const tag = reader.uint32();
|
|
2251
2020
|
switch (tag >>> 3) {
|
|
2252
2021
|
case 1:
|
|
2253
|
-
message.
|
|
2022
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
2023
|
+
break;
|
|
2024
|
+
case 4:
|
|
2025
|
+
message.configUpdated = reader.bool();
|
|
2254
2026
|
break;
|
|
2255
2027
|
default:
|
|
2256
2028
|
reader.skipType(tag & 7);
|
|
@@ -2260,24 +2032,37 @@ export const RawTrace = {
|
|
|
2260
2032
|
return message;
|
|
2261
2033
|
},
|
|
2262
2034
|
|
|
2263
|
-
fromJSON(object: any):
|
|
2035
|
+
fromJSON(object: any): ProcessBindingResponse {
|
|
2264
2036
|
return {
|
|
2265
|
-
|
|
2037
|
+
result: isSet(object.result)
|
|
2038
|
+
? ProcessResult.fromJSON(object.result)
|
|
2039
|
+
: undefined,
|
|
2040
|
+
configUpdated: isSet(object.configUpdated)
|
|
2041
|
+
? Boolean(object.configUpdated)
|
|
2042
|
+
: false,
|
|
2266
2043
|
};
|
|
2267
2044
|
},
|
|
2268
2045
|
|
|
2269
|
-
toJSON(message:
|
|
2046
|
+
toJSON(message: ProcessBindingResponse): unknown {
|
|
2270
2047
|
const obj: any = {};
|
|
2271
|
-
message.
|
|
2272
|
-
(obj.
|
|
2273
|
-
|
|
2274
|
-
|
|
2048
|
+
message.result !== undefined &&
|
|
2049
|
+
(obj.result = message.result
|
|
2050
|
+
? ProcessResult.toJSON(message.result)
|
|
2051
|
+
: undefined);
|
|
2052
|
+
message.configUpdated !== undefined &&
|
|
2053
|
+
(obj.configUpdated = message.configUpdated);
|
|
2275
2054
|
return obj;
|
|
2276
2055
|
},
|
|
2277
2056
|
|
|
2278
|
-
fromPartial(
|
|
2279
|
-
|
|
2280
|
-
|
|
2057
|
+
fromPartial(
|
|
2058
|
+
object: DeepPartial<ProcessBindingResponse>
|
|
2059
|
+
): ProcessBindingResponse {
|
|
2060
|
+
const message = createBaseProcessBindingResponse();
|
|
2061
|
+
message.result =
|
|
2062
|
+
object.result !== undefined && object.result !== null
|
|
2063
|
+
? ProcessResult.fromPartial(object.result)
|
|
2064
|
+
: undefined;
|
|
2065
|
+
message.configUpdated = object.configUpdated ?? false;
|
|
2281
2066
|
return message;
|
|
2282
2067
|
},
|
|
2283
2068
|
};
|
|
@@ -2464,6 +2249,136 @@ export const Instruction = {
|
|
|
2464
2249
|
},
|
|
2465
2250
|
};
|
|
2466
2251
|
|
|
2252
|
+
function createBaseData(): Data {
|
|
2253
|
+
return { raw: new Uint8Array() };
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
export const Data = {
|
|
2257
|
+
encode(message: Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2258
|
+
if (message.raw.length !== 0) {
|
|
2259
|
+
writer.uint32(10).bytes(message.raw);
|
|
2260
|
+
}
|
|
2261
|
+
return writer;
|
|
2262
|
+
},
|
|
2263
|
+
|
|
2264
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data {
|
|
2265
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2266
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2267
|
+
const message = createBaseData();
|
|
2268
|
+
while (reader.pos < end) {
|
|
2269
|
+
const tag = reader.uint32();
|
|
2270
|
+
switch (tag >>> 3) {
|
|
2271
|
+
case 1:
|
|
2272
|
+
message.raw = reader.bytes();
|
|
2273
|
+
break;
|
|
2274
|
+
default:
|
|
2275
|
+
reader.skipType(tag & 7);
|
|
2276
|
+
break;
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
return message;
|
|
2280
|
+
},
|
|
2281
|
+
|
|
2282
|
+
fromJSON(object: any): Data {
|
|
2283
|
+
return {
|
|
2284
|
+
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
|
|
2285
|
+
};
|
|
2286
|
+
},
|
|
2287
|
+
|
|
2288
|
+
toJSON(message: Data): unknown {
|
|
2289
|
+
const obj: any = {};
|
|
2290
|
+
message.raw !== undefined &&
|
|
2291
|
+
(obj.raw = base64FromBytes(
|
|
2292
|
+
message.raw !== undefined ? message.raw : new Uint8Array()
|
|
2293
|
+
));
|
|
2294
|
+
return obj;
|
|
2295
|
+
},
|
|
2296
|
+
|
|
2297
|
+
fromPartial(object: DeepPartial<Data>): Data {
|
|
2298
|
+
const message = createBaseData();
|
|
2299
|
+
message.raw = object.raw ?? new Uint8Array();
|
|
2300
|
+
return message;
|
|
2301
|
+
},
|
|
2302
|
+
};
|
|
2303
|
+
|
|
2304
|
+
function createBaseDataBinding(): DataBinding {
|
|
2305
|
+
return { data: undefined, handlerId: 0, handlerType: 0 };
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
export const DataBinding = {
|
|
2309
|
+
encode(
|
|
2310
|
+
message: DataBinding,
|
|
2311
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
2312
|
+
): _m0.Writer {
|
|
2313
|
+
if (message.data !== undefined) {
|
|
2314
|
+
Data.encode(message.data, writer.uint32(10).fork()).ldelim();
|
|
2315
|
+
}
|
|
2316
|
+
if (message.handlerId !== 0) {
|
|
2317
|
+
writer.uint32(16).int32(message.handlerId);
|
|
2318
|
+
}
|
|
2319
|
+
if (message.handlerType !== 0) {
|
|
2320
|
+
writer.uint32(24).int32(message.handlerType);
|
|
2321
|
+
}
|
|
2322
|
+
return writer;
|
|
2323
|
+
},
|
|
2324
|
+
|
|
2325
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding {
|
|
2326
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2328
|
+
const message = createBaseDataBinding();
|
|
2329
|
+
while (reader.pos < end) {
|
|
2330
|
+
const tag = reader.uint32();
|
|
2331
|
+
switch (tag >>> 3) {
|
|
2332
|
+
case 1:
|
|
2333
|
+
message.data = Data.decode(reader, reader.uint32());
|
|
2334
|
+
break;
|
|
2335
|
+
case 2:
|
|
2336
|
+
message.handlerId = reader.int32();
|
|
2337
|
+
break;
|
|
2338
|
+
case 3:
|
|
2339
|
+
message.handlerType = reader.int32() as any;
|
|
2340
|
+
break;
|
|
2341
|
+
default:
|
|
2342
|
+
reader.skipType(tag & 7);
|
|
2343
|
+
break;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
return message;
|
|
2347
|
+
},
|
|
2348
|
+
|
|
2349
|
+
fromJSON(object: any): DataBinding {
|
|
2350
|
+
return {
|
|
2351
|
+
data: isSet(object.data) ? Data.fromJSON(object.data) : undefined,
|
|
2352
|
+
handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
|
|
2353
|
+
handlerType: isSet(object.handlerType)
|
|
2354
|
+
? handlerTypeFromJSON(object.handlerType)
|
|
2355
|
+
: 0,
|
|
2356
|
+
};
|
|
2357
|
+
},
|
|
2358
|
+
|
|
2359
|
+
toJSON(message: DataBinding): unknown {
|
|
2360
|
+
const obj: any = {};
|
|
2361
|
+
message.data !== undefined &&
|
|
2362
|
+
(obj.data = message.data ? Data.toJSON(message.data) : undefined);
|
|
2363
|
+
message.handlerId !== undefined &&
|
|
2364
|
+
(obj.handlerId = Math.round(message.handlerId));
|
|
2365
|
+
message.handlerType !== undefined &&
|
|
2366
|
+
(obj.handlerType = handlerTypeToJSON(message.handlerType));
|
|
2367
|
+
return obj;
|
|
2368
|
+
},
|
|
2369
|
+
|
|
2370
|
+
fromPartial(object: DeepPartial<DataBinding>): DataBinding {
|
|
2371
|
+
const message = createBaseDataBinding();
|
|
2372
|
+
message.data =
|
|
2373
|
+
object.data !== undefined && object.data !== null
|
|
2374
|
+
? Data.fromPartial(object.data)
|
|
2375
|
+
: undefined;
|
|
2376
|
+
message.handlerId = object.handlerId ?? 0;
|
|
2377
|
+
message.handlerType = object.handlerType ?? 0;
|
|
2378
|
+
return message;
|
|
2379
|
+
},
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2467
2382
|
function createBaseBlockBinding(): BlockBinding {
|
|
2468
2383
|
return { block: undefined, handlerIds: [] };
|
|
2469
2384
|
}
|
|
@@ -3449,7 +3364,14 @@ export const CounterResult = {
|
|
|
3449
3364
|
};
|
|
3450
3365
|
|
|
3451
3366
|
function createBaseLogResult(): LogResult {
|
|
3452
|
-
return {
|
|
3367
|
+
return {
|
|
3368
|
+
name: "",
|
|
3369
|
+
metadata: undefined,
|
|
3370
|
+
level: 0,
|
|
3371
|
+
message: "",
|
|
3372
|
+
attributes: "",
|
|
3373
|
+
runtimeInfo: undefined,
|
|
3374
|
+
};
|
|
3453
3375
|
}
|
|
3454
3376
|
|
|
3455
3377
|
export const LogResult = {
|
|
@@ -3457,6 +3379,9 @@ export const LogResult = {
|
|
|
3457
3379
|
message: LogResult,
|
|
3458
3380
|
writer: _m0.Writer = _m0.Writer.create()
|
|
3459
3381
|
): _m0.Writer {
|
|
3382
|
+
if (message.name !== "") {
|
|
3383
|
+
writer.uint32(42).string(message.name);
|
|
3384
|
+
}
|
|
3460
3385
|
if (message.metadata !== undefined) {
|
|
3461
3386
|
RecordMetaData.encode(
|
|
3462
3387
|
message.metadata,
|
|
@@ -3469,6 +3394,9 @@ export const LogResult = {
|
|
|
3469
3394
|
if (message.message !== "") {
|
|
3470
3395
|
writer.uint32(26).string(message.message);
|
|
3471
3396
|
}
|
|
3397
|
+
if (message.attributes !== "") {
|
|
3398
|
+
writer.uint32(50).string(message.attributes);
|
|
3399
|
+
}
|
|
3472
3400
|
if (message.runtimeInfo !== undefined) {
|
|
3473
3401
|
RuntimeInfo.encode(
|
|
3474
3402
|
message.runtimeInfo,
|
|
@@ -3485,6 +3413,9 @@ export const LogResult = {
|
|
|
3485
3413
|
while (reader.pos < end) {
|
|
3486
3414
|
const tag = reader.uint32();
|
|
3487
3415
|
switch (tag >>> 3) {
|
|
3416
|
+
case 5:
|
|
3417
|
+
message.name = reader.string();
|
|
3418
|
+
break;
|
|
3488
3419
|
case 1:
|
|
3489
3420
|
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
|
3490
3421
|
break;
|
|
@@ -3494,6 +3425,9 @@ export const LogResult = {
|
|
|
3494
3425
|
case 3:
|
|
3495
3426
|
message.message = reader.string();
|
|
3496
3427
|
break;
|
|
3428
|
+
case 6:
|
|
3429
|
+
message.attributes = reader.string();
|
|
3430
|
+
break;
|
|
3497
3431
|
case 4:
|
|
3498
3432
|
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
|
3499
3433
|
break;
|
|
@@ -3507,11 +3441,13 @@ export const LogResult = {
|
|
|
3507
3441
|
|
|
3508
3442
|
fromJSON(object: any): LogResult {
|
|
3509
3443
|
return {
|
|
3444
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
3510
3445
|
metadata: isSet(object.metadata)
|
|
3511
3446
|
? RecordMetaData.fromJSON(object.metadata)
|
|
3512
3447
|
: undefined,
|
|
3513
3448
|
level: isSet(object.level) ? logLevelFromJSON(object.level) : 0,
|
|
3514
3449
|
message: isSet(object.message) ? String(object.message) : "",
|
|
3450
|
+
attributes: isSet(object.attributes) ? String(object.attributes) : "",
|
|
3515
3451
|
runtimeInfo: isSet(object.runtimeInfo)
|
|
3516
3452
|
? RuntimeInfo.fromJSON(object.runtimeInfo)
|
|
3517
3453
|
: undefined,
|
|
@@ -3520,12 +3456,14 @@ export const LogResult = {
|
|
|
3520
3456
|
|
|
3521
3457
|
toJSON(message: LogResult): unknown {
|
|
3522
3458
|
const obj: any = {};
|
|
3459
|
+
message.name !== undefined && (obj.name = message.name);
|
|
3523
3460
|
message.metadata !== undefined &&
|
|
3524
3461
|
(obj.metadata = message.metadata
|
|
3525
3462
|
? RecordMetaData.toJSON(message.metadata)
|
|
3526
3463
|
: undefined);
|
|
3527
3464
|
message.level !== undefined && (obj.level = logLevelToJSON(message.level));
|
|
3528
3465
|
message.message !== undefined && (obj.message = message.message);
|
|
3466
|
+
message.attributes !== undefined && (obj.attributes = message.attributes);
|
|
3529
3467
|
message.runtimeInfo !== undefined &&
|
|
3530
3468
|
(obj.runtimeInfo = message.runtimeInfo
|
|
3531
3469
|
? RuntimeInfo.toJSON(message.runtimeInfo)
|
|
@@ -3535,12 +3473,14 @@ export const LogResult = {
|
|
|
3535
3473
|
|
|
3536
3474
|
fromPartial(object: DeepPartial<LogResult>): LogResult {
|
|
3537
3475
|
const message = createBaseLogResult();
|
|
3476
|
+
message.name = object.name ?? "";
|
|
3538
3477
|
message.metadata =
|
|
3539
3478
|
object.metadata !== undefined && object.metadata !== null
|
|
3540
3479
|
? RecordMetaData.fromPartial(object.metadata)
|
|
3541
3480
|
: undefined;
|
|
3542
3481
|
message.level = object.level ?? 0;
|
|
3543
3482
|
message.message = object.message ?? "";
|
|
3483
|
+
message.attributes = object.attributes ?? "";
|
|
3544
3484
|
message.runtimeInfo =
|
|
3545
3485
|
object.runtimeInfo !== undefined && object.runtimeInfo !== null
|
|
3546
3486
|
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
|
@@ -3580,17 +3520,17 @@ export const ProcessorDefinition = {
|
|
|
3580
3520
|
},
|
|
3581
3521
|
processLogs: {
|
|
3582
3522
|
name: "ProcessLogs",
|
|
3583
|
-
requestType:
|
|
3523
|
+
requestType: ProcessBindingsRequest,
|
|
3584
3524
|
requestStream: false,
|
|
3585
|
-
responseType:
|
|
3525
|
+
responseType: ProcessBindingResponse,
|
|
3586
3526
|
responseStream: false,
|
|
3587
3527
|
options: {},
|
|
3588
3528
|
},
|
|
3589
3529
|
processTraces: {
|
|
3590
3530
|
name: "ProcessTraces",
|
|
3591
|
-
requestType:
|
|
3531
|
+
requestType: ProcessBindingsRequest,
|
|
3592
3532
|
requestStream: false,
|
|
3593
|
-
responseType:
|
|
3533
|
+
responseType: ProcessBindingResponse,
|
|
3594
3534
|
responseStream: false,
|
|
3595
3535
|
options: {},
|
|
3596
3536
|
},
|
|
@@ -3598,7 +3538,15 @@ export const ProcessorDefinition = {
|
|
|
3598
3538
|
name: "ProcessTransactions",
|
|
3599
3539
|
requestType: ProcessTransactionsRequest,
|
|
3600
3540
|
requestStream: false,
|
|
3601
|
-
responseType:
|
|
3541
|
+
responseType: ProcessBindingResponse,
|
|
3542
|
+
responseStream: false,
|
|
3543
|
+
options: {},
|
|
3544
|
+
},
|
|
3545
|
+
processInstructions: {
|
|
3546
|
+
name: "ProcessInstructions",
|
|
3547
|
+
requestType: ProcessInstructionsRequest,
|
|
3548
|
+
requestStream: false,
|
|
3549
|
+
responseType: ProcessBindingResponse,
|
|
3602
3550
|
responseStream: false,
|
|
3603
3551
|
options: {},
|
|
3604
3552
|
},
|
|
@@ -3606,15 +3554,15 @@ export const ProcessorDefinition = {
|
|
|
3606
3554
|
name: "ProcessBlocks",
|
|
3607
3555
|
requestType: ProcessBlocksRequest,
|
|
3608
3556
|
requestStream: false,
|
|
3609
|
-
responseType:
|
|
3557
|
+
responseType: ProcessBindingResponse,
|
|
3610
3558
|
responseStream: false,
|
|
3611
3559
|
options: {},
|
|
3612
3560
|
},
|
|
3613
|
-
|
|
3614
|
-
name: "
|
|
3615
|
-
requestType:
|
|
3561
|
+
processBindings: {
|
|
3562
|
+
name: "ProcessBindings",
|
|
3563
|
+
requestType: ProcessBindingsRequest,
|
|
3616
3564
|
requestStream: false,
|
|
3617
|
-
responseType:
|
|
3565
|
+
responseType: ProcessBindingResponse,
|
|
3618
3566
|
responseStream: false,
|
|
3619
3567
|
options: {},
|
|
3620
3568
|
},
|
|
@@ -3635,25 +3583,29 @@ export interface ProcessorServiceImplementation<CallContextExt = {}> {
|
|
|
3635
3583
|
context: CallContext & CallContextExt
|
|
3636
3584
|
): Promise<DeepPartial<ProcessConfigResponse>>;
|
|
3637
3585
|
processLogs(
|
|
3638
|
-
request:
|
|
3586
|
+
request: ProcessBindingsRequest,
|
|
3639
3587
|
context: CallContext & CallContextExt
|
|
3640
|
-
): Promise<DeepPartial<
|
|
3588
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3641
3589
|
processTraces(
|
|
3642
|
-
request:
|
|
3590
|
+
request: ProcessBindingsRequest,
|
|
3643
3591
|
context: CallContext & CallContextExt
|
|
3644
|
-
): Promise<DeepPartial<
|
|
3592
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3645
3593
|
processTransactions(
|
|
3646
3594
|
request: ProcessTransactionsRequest,
|
|
3647
3595
|
context: CallContext & CallContextExt
|
|
3648
|
-
): Promise<DeepPartial<
|
|
3596
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3597
|
+
processInstructions(
|
|
3598
|
+
request: ProcessInstructionsRequest,
|
|
3599
|
+
context: CallContext & CallContextExt
|
|
3600
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3649
3601
|
processBlocks(
|
|
3650
3602
|
request: ProcessBlocksRequest,
|
|
3651
3603
|
context: CallContext & CallContextExt
|
|
3652
|
-
): Promise<DeepPartial<
|
|
3653
|
-
|
|
3654
|
-
request:
|
|
3604
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3605
|
+
processBindings(
|
|
3606
|
+
request: ProcessBindingsRequest,
|
|
3655
3607
|
context: CallContext & CallContextExt
|
|
3656
|
-
): Promise<DeepPartial<
|
|
3608
|
+
): Promise<DeepPartial<ProcessBindingResponse>>;
|
|
3657
3609
|
}
|
|
3658
3610
|
|
|
3659
3611
|
export interface ProcessorClient<CallOptionsExt = {}> {
|
|
@@ -3670,25 +3622,29 @@ export interface ProcessorClient<CallOptionsExt = {}> {
|
|
|
3670
3622
|
options?: CallOptions & CallOptionsExt
|
|
3671
3623
|
): Promise<ProcessConfigResponse>;
|
|
3672
3624
|
processLogs(
|
|
3673
|
-
request: DeepPartial<
|
|
3625
|
+
request: DeepPartial<ProcessBindingsRequest>,
|
|
3674
3626
|
options?: CallOptions & CallOptionsExt
|
|
3675
|
-
): Promise<
|
|
3627
|
+
): Promise<ProcessBindingResponse>;
|
|
3676
3628
|
processTraces(
|
|
3677
|
-
request: DeepPartial<
|
|
3629
|
+
request: DeepPartial<ProcessBindingsRequest>,
|
|
3678
3630
|
options?: CallOptions & CallOptionsExt
|
|
3679
|
-
): Promise<
|
|
3631
|
+
): Promise<ProcessBindingResponse>;
|
|
3680
3632
|
processTransactions(
|
|
3681
3633
|
request: DeepPartial<ProcessTransactionsRequest>,
|
|
3682
3634
|
options?: CallOptions & CallOptionsExt
|
|
3683
|
-
): Promise<
|
|
3635
|
+
): Promise<ProcessBindingResponse>;
|
|
3636
|
+
processInstructions(
|
|
3637
|
+
request: DeepPartial<ProcessInstructionsRequest>,
|
|
3638
|
+
options?: CallOptions & CallOptionsExt
|
|
3639
|
+
): Promise<ProcessBindingResponse>;
|
|
3684
3640
|
processBlocks(
|
|
3685
3641
|
request: DeepPartial<ProcessBlocksRequest>,
|
|
3686
3642
|
options?: CallOptions & CallOptionsExt
|
|
3687
|
-
): Promise<
|
|
3688
|
-
|
|
3689
|
-
request: DeepPartial<
|
|
3643
|
+
): Promise<ProcessBindingResponse>;
|
|
3644
|
+
processBindings(
|
|
3645
|
+
request: DeepPartial<ProcessBindingsRequest>,
|
|
3690
3646
|
options?: CallOptions & CallOptionsExt
|
|
3691
|
-
): Promise<
|
|
3647
|
+
): Promise<ProcessBindingResponse>;
|
|
3692
3648
|
}
|
|
3693
3649
|
|
|
3694
3650
|
declare var self: any | undefined;
|