@sentio/sdk 1.3.2 → 1.4.0
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/base-processor-template.d.ts +5 -5
- package/dist/base-processor-template.js.map +1 -1
- package/dist/base-processor.d.ts +4 -4
- package/dist/base-processor.js.map +1 -1
- package/dist/error.js +11 -10
- package/dist/error.js.map +1 -1
- package/dist/gen/processor/protos/processor.d.ts +139 -159
- package/dist/gen/processor/protos/processor.js +244 -214
- package/dist/gen/processor/protos/processor.js.map +1 -1
- package/dist/promise-or-void.d.ts +1 -0
- package/dist/{promise-or-value.js → promise-or-void.js} +1 -1
- package/dist/promise-or-void.js.map +1 -0
- package/dist/service.d.ts +6 -5
- package/dist/service.js +78 -72
- package/dist/service.js.map +1 -1
- package/dist/test/erc20.test.js +28 -18
- package/dist/test/erc20.test.js.map +1 -1
- package/dist/test/generic-processor.test.js +4 -4
- package/dist/test/generic-processor.test.js.map +1 -1
- package/dist/test/solana.test.js +9 -4
- package/dist/test/solana.test.js.map +1 -1
- package/package.json +2 -2
- package/dist/promise-or-value.d.ts +0 -1
- package/dist/promise-or-value.js.map +0 -1
|
@@ -4,18 +4,18 @@ import { BaseContract, EventFilter } from 'ethers';
|
|
|
4
4
|
import { Event } from '@ethersproject/contracts';
|
|
5
5
|
import { BaseProcessor } from './base-processor';
|
|
6
6
|
import { BindOptions } from './bind-options';
|
|
7
|
-
import {
|
|
7
|
+
import { PromiseOrVoid } from './promise-or-void';
|
|
8
8
|
export declare abstract class BaseProcessorTemplate<TContract extends BaseContract, TBoundContractView extends BoundContractView<TContract, ContractView<TContract>>> {
|
|
9
9
|
id: number;
|
|
10
10
|
binds: Set<string>;
|
|
11
|
-
blockHandlers: ((block: Block, ctx: Context<TContract, TBoundContractView>) =>
|
|
11
|
+
blockHandlers: ((block: Block, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid)[];
|
|
12
12
|
eventHandlers: {
|
|
13
|
-
handler: (event: Event, ctx: Context<TContract, TBoundContractView>) =>
|
|
13
|
+
handler: (event: Event, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid;
|
|
14
14
|
filter: EventFilter | EventFilter[];
|
|
15
15
|
}[];
|
|
16
16
|
constructor();
|
|
17
17
|
bind(options: BindOptions): BaseProcessor<TContract, TBoundContractView> | undefined;
|
|
18
|
-
onEvent(handler: (event: Event, ctx: Context<TContract, TBoundContractView>) =>
|
|
19
|
-
onBlock(handler: (block: Block, ctx: Context<TContract, TBoundContractView>) =>
|
|
18
|
+
onEvent(handler: (event: Event, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid, filter: EventFilter | EventFilter[]): this;
|
|
19
|
+
onBlock(handler: (block: Block, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid): this;
|
|
20
20
|
protected abstract bindInternal(options: BindOptions): BaseProcessor<TContract, TBoundContractView>;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-processor-template.js","sourceRoot":"","sources":["../src/base-processor-template.ts"],"names":[],"mappings":";;;;;;AAKA,iDAAiE;AAEjE,gDAAuB;AACvB,wDAAqD;AAGrD,MAAsB,qBAAqB;IAIzC,EAAE,CAAQ;IACV,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;IACzB,aAAa,
|
|
1
|
+
{"version":3,"file":"base-processor-template.js","sourceRoot":"","sources":["../src/base-processor-template.ts"],"names":[],"mappings":";;;;;;AAKA,iDAAiE;AAEjE,gDAAuB;AACvB,wDAAqD;AAGrD,MAAsB,qBAAqB;IAIzC,EAAE,CAAQ;IACV,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;IACzB,aAAa,GAAqF,EAAE,CAAA;IACpG,aAAa,GAGP,EAAE,CAAA;IAER;QACE,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAA;QACjD,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,IA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,GAAG,OAAO,CAAC,UAAU,CAAA;aACzC;SACF;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;gBACxC,QAAQ,CAAC,QAAQ,GAAG,cAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;aACtD;iBAAM;gBACL,QAAQ,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;aACrC;SACF;QACD,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAExD,OAAO,SAAS,CAAA;IAClB,CAAC;IAEM,OAAO,CACZ,OAAqF,EACrF,MAAmC;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;YACtB,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE,MAAM;SACf,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAEM,OAAO,CAAC,OAAqF;QAClG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAChC,OAAO,IAAI,CAAA;IACb,CAAC;CAGF;AAhFD,sDAgFC"}
|
package/dist/base-processor.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BaseContract, EventFilter } from '@ethersproject/contracts';
|
|
|
4
4
|
import { BoundContractView, Context, ContractView } from './context';
|
|
5
5
|
import { O11yResult } from './gen/processor/protos/processor';
|
|
6
6
|
import { BindInternalOptions, BindOptions } from './bind-options';
|
|
7
|
-
import {
|
|
7
|
+
import { PromiseOrVoid } from './promise-or-void';
|
|
8
8
|
export declare class EventsHandler {
|
|
9
9
|
filters: EventFilter[];
|
|
10
10
|
handler: (event: Log) => Promise<O11yResult>;
|
|
@@ -17,7 +17,7 @@ export declare abstract class BaseProcessor<TContract extends BaseContract, TBou
|
|
|
17
17
|
constructor(config: BindOptions);
|
|
18
18
|
protected abstract CreateBoundContractView(): TBoundContractView;
|
|
19
19
|
getChainId(): string;
|
|
20
|
-
onEvent(handler: (event: Event, ctx: Context<TContract, TBoundContractView>) =>
|
|
21
|
-
onBlock(handler: (block: Block, ctx: Context<TContract, TBoundContractView>) =>
|
|
22
|
-
onAllEvents(handler: (event: Log, ctx: Context<TContract, TBoundContractView>) =>
|
|
20
|
+
onEvent(handler: (event: Event, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid, filter: EventFilter | EventFilter[]): this;
|
|
21
|
+
onBlock(handler: (block: Block, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid): this;
|
|
22
|
+
onAllEvents(handler: (event: Log, ctx: Context<TContract, TBoundContractView>) => PromiseOrVoid): this;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-processor.js","sourceRoot":"","sources":["../src/base-processor.ts"],"names":[],"mappings":";;;;;;AAEA,wDAAiE;AAEjE,gDAAuB;AAEvB,uCAAoE;AAKpE,MAAa,aAAa;IACxB,OAAO,CAAe;IACtB,OAAO,CAAqC;CAC7C;AAHD,sCAGC;AAED,MAAsB,aAAa;IAIjC,aAAa,GAA8C,EAAE,CAAA;IAC7D,aAAa,GAAoB,EAAE,CAAA;IAEnC,IAAI,CAAQ;IACZ,MAAM,CAAqB;IAE3B,YAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG;YACZ,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,EAAE;YACvB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC5C,UAAU,EAAE,IAAI,cAAI,CAAC,CAAC,CAAC;SACxB,CAAA;QACD,IAAI,MAAM,CAAC,UAAU,EAAE;YACrB,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,QAAQ,EAAE;gBACzC,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,cAAI,CAAC,UAAU,CAAC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AM;gBAClB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACvB,CAAA;QACH,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAEM,WAAW,CAAC,OAAmF;QACpG,MAAM,QAAQ,GAAkB,EAAE,CAAA;QAClC,MAAM,WAAW,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAA;QAElD,KAAK,MAAM,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE;YACrC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE,GAAG;YACpC,OAAO,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QAC1B,CAAC,EAAE,QAAQ,CAAC,CAAA;IACd,CAAC;CACF;AAhHD,sCAgHC"}
|
package/dist/error.js
CHANGED
|
@@ -19,20 +19,21 @@ function transformEtherError(e, ctx) {
|
|
|
19
19
|
].join('\n');
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
].join('\n');
|
|
29
|
-
}
|
|
22
|
+
msg += [
|
|
23
|
+
// @ts-ignore expected error fields
|
|
24
|
+
"jsonrpc eth_call return '0x' (likely contract not existed): " + e.method + '(' + e.args.join(',') + ')',
|
|
25
|
+
// @ts-ignore expected error fields
|
|
26
|
+
'data: ' + e.transaction.data,
|
|
27
|
+
].join('\n');
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
return
|
|
30
|
+
return { name: 'ETHERS_ERROR', message: msg };
|
|
31
|
+
}
|
|
32
|
+
if (e.name === 'ETHERS_ERROR') {
|
|
33
|
+
return e;
|
|
33
34
|
}
|
|
34
35
|
// TODO gracefully handle more errors
|
|
35
|
-
msg = 'ethers call error\n' + e.stack?.toString();
|
|
36
|
+
msg = 'ethers call error\n' + e.message + '\n' + e.stack?.toString();
|
|
36
37
|
return new Error(msg);
|
|
37
38
|
}
|
|
38
39
|
exports.transformEtherError = transformEtherError;
|
package/dist/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAEA,mCAA+B;AAE/B,SAAgB,mBAAmB,CAAC,CAAQ,EAAE,GAAkC;IAC9E,IAAI,GAAG,GAAG,EAAE,CAAA;IACZ,mCAAmC;IACnC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAM,CAAC,cAAc,EAAE;QACpC,mCAAmC;QACnC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE;YACnB,IAAI,GAAG,EAAE;gBACP,GAAG,IAAI;oBACL,mCAAmC;oBACnC,8DAA8D,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG;oBACxG,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,GAAG,aAAa,GAAG,GAAG,CAAC,OAAO;oBAC5E,SAAS,GAAG,GAAG,CAAC,WAAW;oBAC3B,mCAAmC;oBACnC,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI;iBAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;aACb;iBAAM;gBACL,
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAEA,mCAA+B;AAE/B,SAAgB,mBAAmB,CAAC,CAAQ,EAAE,GAAkC;IAC9E,IAAI,GAAG,GAAG,EAAE,CAAA;IACZ,mCAAmC;IACnC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAM,CAAC,cAAc,EAAE;QACpC,mCAAmC;QACnC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE;YACnB,IAAI,GAAG,EAAE;gBACP,GAAG,IAAI;oBACL,mCAAmC;oBACnC,8DAA8D,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG;oBACxG,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,GAAG,aAAa,GAAG,GAAG,CAAC,OAAO;oBAC5E,SAAS,GAAG,GAAG,CAAC,WAAW;oBAC3B,mCAAmC;oBACnC,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI;iBAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;aACb;iBAAM;gBACL,GAAG,IAAI;oBACL,mCAAmC;oBACnC,8DAA8D,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG;oBACxG,mCAAmC;oBACnC,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI;iBAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;aACb;SACF;QACD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,EAAE,CAAA;KAC9C;IAED,IAAI,CAAC,CAAC,IAAI,KAAK,cAAc,EAAE;QAC7B,OAAO,CAAC,CAAA;KACT;IAED,qCAAqC;IAErC,GAAG,GAAG,qBAAqB,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;IACpE,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;AACvB,CAAC;AAnCD,kDAmCC"}
|
|
@@ -25,7 +25,8 @@ export interface ProcessConfigResponse {
|
|
|
25
25
|
}
|
|
26
26
|
export interface ContractConfig {
|
|
27
27
|
contract: ContractInfo | undefined;
|
|
28
|
-
blockConfig:
|
|
28
|
+
blockConfig: OldBlockHandlerConfig | undefined;
|
|
29
|
+
blockConfigs: BlockHandlerConfig[];
|
|
29
30
|
logConfigs: LogHandlerConfig[];
|
|
30
31
|
startBlock: Long;
|
|
31
32
|
endBlock: Long;
|
|
@@ -46,14 +47,17 @@ export interface TemplateInstance {
|
|
|
46
47
|
export interface StartRequest {
|
|
47
48
|
templateInstances: TemplateInstance[];
|
|
48
49
|
}
|
|
49
|
-
export interface
|
|
50
|
+
export interface OldBlockHandlerConfig {
|
|
50
51
|
numHandlers: number;
|
|
51
52
|
}
|
|
53
|
+
export interface BlockHandlerConfig {
|
|
54
|
+
handlerId: number;
|
|
55
|
+
}
|
|
52
56
|
export interface LogHandlerConfig {
|
|
53
|
-
|
|
57
|
+
filters: LogFilter[];
|
|
54
58
|
handlerId: number;
|
|
55
59
|
}
|
|
56
|
-
export interface
|
|
60
|
+
export interface LogFilter {
|
|
57
61
|
topics: Topic[];
|
|
58
62
|
}
|
|
59
63
|
export interface InstructionHandlerConfig {
|
|
@@ -64,37 +68,30 @@ export interface InstructionHandlerConfig {
|
|
|
64
68
|
export interface Topic {
|
|
65
69
|
hashes: string[];
|
|
66
70
|
}
|
|
67
|
-
export interface
|
|
68
|
-
|
|
71
|
+
export interface ProcessLogsRequest {
|
|
72
|
+
logBindings: LogBinding[];
|
|
69
73
|
}
|
|
70
|
-
export interface
|
|
74
|
+
export interface ProcessLogsResponse {
|
|
71
75
|
result: O11yResult | undefined;
|
|
72
76
|
configUpdated: boolean;
|
|
73
77
|
}
|
|
74
|
-
export interface
|
|
78
|
+
export interface ProcessTransactionsRequest {
|
|
75
79
|
transaction: Transaction | undefined;
|
|
76
80
|
}
|
|
77
|
-
export interface
|
|
81
|
+
export interface ProcessInstructionsRequest {
|
|
78
82
|
instructions: Instruction[];
|
|
79
83
|
}
|
|
80
|
-
export interface
|
|
84
|
+
export interface ProcessTransactionsResponse {
|
|
81
85
|
result: O11yResult | undefined;
|
|
82
86
|
}
|
|
83
|
-
export interface
|
|
84
|
-
result: O11yResult | undefined;
|
|
85
|
-
}
|
|
86
|
-
export interface ProcessBlockRequest {
|
|
87
|
-
block: Block | undefined;
|
|
88
|
-
chainId: string;
|
|
89
|
-
}
|
|
90
|
-
export interface ProcessBlockResponse {
|
|
87
|
+
export interface ProcessInstructionsResponse {
|
|
91
88
|
result: O11yResult | undefined;
|
|
92
89
|
}
|
|
93
90
|
export interface ProcessBlocksRequest {
|
|
94
|
-
|
|
91
|
+
blockBindings: BlockBinding[];
|
|
95
92
|
}
|
|
96
93
|
export interface ProcessBlocksResponse {
|
|
97
|
-
|
|
94
|
+
result: O11yResult | undefined;
|
|
98
95
|
}
|
|
99
96
|
export interface LogBinding {
|
|
100
97
|
log: Log | undefined;
|
|
@@ -114,6 +111,11 @@ export interface Instruction {
|
|
|
114
111
|
programAccountId: string;
|
|
115
112
|
parsed?: Uint8Array | undefined;
|
|
116
113
|
}
|
|
114
|
+
export interface BlockBinding {
|
|
115
|
+
block: Block | undefined;
|
|
116
|
+
handlerIds: number[];
|
|
117
|
+
chainId: string;
|
|
118
|
+
}
|
|
117
119
|
export interface Block {
|
|
118
120
|
raw: Uint8Array;
|
|
119
121
|
}
|
|
@@ -208,6 +210,13 @@ export declare const StartRequest: {
|
|
|
208
210
|
toJSON(message: StartRequest): unknown;
|
|
209
211
|
fromPartial(object: DeepPartial<StartRequest>): StartRequest;
|
|
210
212
|
};
|
|
213
|
+
export declare const OldBlockHandlerConfig: {
|
|
214
|
+
encode(message: OldBlockHandlerConfig, writer?: _m0.Writer): _m0.Writer;
|
|
215
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OldBlockHandlerConfig;
|
|
216
|
+
fromJSON(object: any): OldBlockHandlerConfig;
|
|
217
|
+
toJSON(message: OldBlockHandlerConfig): unknown;
|
|
218
|
+
fromPartial(object: DeepPartial<OldBlockHandlerConfig>): OldBlockHandlerConfig;
|
|
219
|
+
};
|
|
211
220
|
export declare const BlockHandlerConfig: {
|
|
212
221
|
encode(message: BlockHandlerConfig, writer?: _m0.Writer): _m0.Writer;
|
|
213
222
|
decode(input: _m0.Reader | Uint8Array, length?: number): BlockHandlerConfig;
|
|
@@ -222,12 +231,12 @@ export declare const LogHandlerConfig: {
|
|
|
222
231
|
toJSON(message: LogHandlerConfig): unknown;
|
|
223
232
|
fromPartial(object: DeepPartial<LogHandlerConfig>): LogHandlerConfig;
|
|
224
233
|
};
|
|
225
|
-
export declare const
|
|
226
|
-
encode(message:
|
|
227
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
228
|
-
fromJSON(object: any):
|
|
229
|
-
toJSON(message:
|
|
230
|
-
fromPartial(object: DeepPartial<
|
|
234
|
+
export declare const LogFilter: {
|
|
235
|
+
encode(message: LogFilter, writer?: _m0.Writer): _m0.Writer;
|
|
236
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogFilter;
|
|
237
|
+
fromJSON(object: any): LogFilter;
|
|
238
|
+
toJSON(message: LogFilter): unknown;
|
|
239
|
+
fromPartial(object: DeepPartial<LogFilter>): LogFilter;
|
|
231
240
|
};
|
|
232
241
|
export declare const InstructionHandlerConfig: {
|
|
233
242
|
encode(message: InstructionHandlerConfig, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -243,61 +252,47 @@ export declare const Topic: {
|
|
|
243
252
|
toJSON(message: Topic): unknown;
|
|
244
253
|
fromPartial(object: DeepPartial<Topic>): Topic;
|
|
245
254
|
};
|
|
246
|
-
export declare const
|
|
247
|
-
encode(message:
|
|
248
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
249
|
-
fromJSON(object: any):
|
|
250
|
-
toJSON(message:
|
|
251
|
-
fromPartial(object: DeepPartial<
|
|
252
|
-
};
|
|
253
|
-
export declare const
|
|
254
|
-
encode(message:
|
|
255
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
256
|
-
fromJSON(object: any):
|
|
257
|
-
toJSON(message:
|
|
258
|
-
fromPartial(object: DeepPartial<
|
|
259
|
-
};
|
|
260
|
-
export declare const
|
|
261
|
-
encode(message:
|
|
262
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
263
|
-
fromJSON(object: any):
|
|
264
|
-
toJSON(message:
|
|
265
|
-
fromPartial(object: DeepPartial<
|
|
266
|
-
};
|
|
267
|
-
export declare const
|
|
268
|
-
encode(message:
|
|
269
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
270
|
-
fromJSON(object: any):
|
|
271
|
-
toJSON(message:
|
|
272
|
-
fromPartial(object: DeepPartial<
|
|
273
|
-
};
|
|
274
|
-
export declare const
|
|
275
|
-
encode(message:
|
|
276
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
277
|
-
fromJSON(object: any):
|
|
278
|
-
toJSON(message:
|
|
279
|
-
fromPartial(object: DeepPartial<
|
|
280
|
-
};
|
|
281
|
-
export declare const
|
|
282
|
-
encode(message:
|
|
283
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
284
|
-
fromJSON(object: any):
|
|
285
|
-
toJSON(message:
|
|
286
|
-
fromPartial(object: DeepPartial<
|
|
287
|
-
};
|
|
288
|
-
export declare const ProcessBlockRequest: {
|
|
289
|
-
encode(message: ProcessBlockRequest, writer?: _m0.Writer): _m0.Writer;
|
|
290
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBlockRequest;
|
|
291
|
-
fromJSON(object: any): ProcessBlockRequest;
|
|
292
|
-
toJSON(message: ProcessBlockRequest): unknown;
|
|
293
|
-
fromPartial(object: DeepPartial<ProcessBlockRequest>): ProcessBlockRequest;
|
|
294
|
-
};
|
|
295
|
-
export declare const ProcessBlockResponse: {
|
|
296
|
-
encode(message: ProcessBlockResponse, writer?: _m0.Writer): _m0.Writer;
|
|
297
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBlockResponse;
|
|
298
|
-
fromJSON(object: any): ProcessBlockResponse;
|
|
299
|
-
toJSON(message: ProcessBlockResponse): unknown;
|
|
300
|
-
fromPartial(object: DeepPartial<ProcessBlockResponse>): ProcessBlockResponse;
|
|
255
|
+
export declare const ProcessLogsRequest: {
|
|
256
|
+
encode(message: ProcessLogsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
257
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessLogsRequest;
|
|
258
|
+
fromJSON(object: any): ProcessLogsRequest;
|
|
259
|
+
toJSON(message: ProcessLogsRequest): unknown;
|
|
260
|
+
fromPartial(object: DeepPartial<ProcessLogsRequest>): ProcessLogsRequest;
|
|
261
|
+
};
|
|
262
|
+
export declare const ProcessLogsResponse: {
|
|
263
|
+
encode(message: ProcessLogsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
264
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessLogsResponse;
|
|
265
|
+
fromJSON(object: any): ProcessLogsResponse;
|
|
266
|
+
toJSON(message: ProcessLogsResponse): unknown;
|
|
267
|
+
fromPartial(object: DeepPartial<ProcessLogsResponse>): ProcessLogsResponse;
|
|
268
|
+
};
|
|
269
|
+
export declare const ProcessTransactionsRequest: {
|
|
270
|
+
encode(message: ProcessTransactionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
271
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsRequest;
|
|
272
|
+
fromJSON(object: any): ProcessTransactionsRequest;
|
|
273
|
+
toJSON(message: ProcessTransactionsRequest): unknown;
|
|
274
|
+
fromPartial(object: DeepPartial<ProcessTransactionsRequest>): ProcessTransactionsRequest;
|
|
275
|
+
};
|
|
276
|
+
export declare const ProcessInstructionsRequest: {
|
|
277
|
+
encode(message: ProcessInstructionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
278
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsRequest;
|
|
279
|
+
fromJSON(object: any): ProcessInstructionsRequest;
|
|
280
|
+
toJSON(message: ProcessInstructionsRequest): unknown;
|
|
281
|
+
fromPartial(object: DeepPartial<ProcessInstructionsRequest>): ProcessInstructionsRequest;
|
|
282
|
+
};
|
|
283
|
+
export declare const ProcessTransactionsResponse: {
|
|
284
|
+
encode(message: ProcessTransactionsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
285
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsResponse;
|
|
286
|
+
fromJSON(object: any): ProcessTransactionsResponse;
|
|
287
|
+
toJSON(message: ProcessTransactionsResponse): unknown;
|
|
288
|
+
fromPartial(object: DeepPartial<ProcessTransactionsResponse>): ProcessTransactionsResponse;
|
|
289
|
+
};
|
|
290
|
+
export declare const ProcessInstructionsResponse: {
|
|
291
|
+
encode(message: ProcessInstructionsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
292
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsResponse;
|
|
293
|
+
fromJSON(object: any): ProcessInstructionsResponse;
|
|
294
|
+
toJSON(message: ProcessInstructionsResponse): unknown;
|
|
295
|
+
fromPartial(object: DeepPartial<ProcessInstructionsResponse>): ProcessInstructionsResponse;
|
|
301
296
|
};
|
|
302
297
|
export declare const ProcessBlocksRequest: {
|
|
303
298
|
encode(message: ProcessBlocksRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -341,6 +336,13 @@ export declare const Instruction: {
|
|
|
341
336
|
toJSON(message: Instruction): unknown;
|
|
342
337
|
fromPartial(object: DeepPartial<Instruction>): Instruction;
|
|
343
338
|
};
|
|
339
|
+
export declare const BlockBinding: {
|
|
340
|
+
encode(message: BlockBinding, writer?: _m0.Writer): _m0.Writer;
|
|
341
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockBinding;
|
|
342
|
+
fromJSON(object: any): BlockBinding;
|
|
343
|
+
toJSON(message: BlockBinding): unknown;
|
|
344
|
+
fromPartial(object: DeepPartial<BlockBinding>): BlockBinding;
|
|
345
|
+
};
|
|
344
346
|
export declare const Block: {
|
|
345
347
|
encode(message: Block, writer?: _m0.Writer): _m0.Writer;
|
|
346
348
|
decode(input: _m0.Reader | Uint8Array, length?: number): Block;
|
|
@@ -409,26 +411,6 @@ export declare const ProcessorDefinition: {
|
|
|
409
411
|
readonly name: "Processor";
|
|
410
412
|
readonly fullName: "processor.Processor";
|
|
411
413
|
readonly methods: {
|
|
412
|
-
readonly getConfig: {
|
|
413
|
-
readonly name: "GetConfig";
|
|
414
|
-
readonly requestType: {
|
|
415
|
-
encode(_: ProcessConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
|
416
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessConfigRequest;
|
|
417
|
-
fromJSON(_: any): ProcessConfigRequest;
|
|
418
|
-
toJSON(_: ProcessConfigRequest): unknown;
|
|
419
|
-
fromPartial(_: DeepPartial<ProcessConfigRequest>): ProcessConfigRequest;
|
|
420
|
-
};
|
|
421
|
-
readonly requestStream: false;
|
|
422
|
-
readonly responseType: {
|
|
423
|
-
encode(message: ProcessConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
|
424
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessConfigResponse;
|
|
425
|
-
fromJSON(object: any): ProcessConfigResponse;
|
|
426
|
-
toJSON(message: ProcessConfigResponse): unknown;
|
|
427
|
-
fromPartial(object: DeepPartial<ProcessConfigResponse>): ProcessConfigResponse;
|
|
428
|
-
};
|
|
429
|
-
readonly responseStream: false;
|
|
430
|
-
readonly options: {};
|
|
431
|
-
};
|
|
432
414
|
readonly start: {
|
|
433
415
|
readonly name: "Start";
|
|
434
416
|
readonly requestType: {
|
|
@@ -469,62 +451,62 @@ export declare const ProcessorDefinition: {
|
|
|
469
451
|
readonly responseStream: false;
|
|
470
452
|
readonly options: {};
|
|
471
453
|
};
|
|
472
|
-
readonly
|
|
473
|
-
readonly name: "
|
|
454
|
+
readonly getConfig: {
|
|
455
|
+
readonly name: "GetConfig";
|
|
474
456
|
readonly requestType: {
|
|
475
|
-
encode(
|
|
476
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
477
|
-
fromJSON(
|
|
478
|
-
toJSON(
|
|
479
|
-
fromPartial(
|
|
457
|
+
encode(_: ProcessConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
|
458
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessConfigRequest;
|
|
459
|
+
fromJSON(_: any): ProcessConfigRequest;
|
|
460
|
+
toJSON(_: ProcessConfigRequest): unknown;
|
|
461
|
+
fromPartial(_: DeepPartial<ProcessConfigRequest>): ProcessConfigRequest;
|
|
480
462
|
};
|
|
481
463
|
readonly requestStream: false;
|
|
482
464
|
readonly responseType: {
|
|
483
|
-
encode(message:
|
|
484
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
485
|
-
fromJSON(object: any):
|
|
486
|
-
toJSON(message:
|
|
487
|
-
fromPartial(object: DeepPartial<
|
|
465
|
+
encode(message: ProcessConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
|
466
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessConfigResponse;
|
|
467
|
+
fromJSON(object: any): ProcessConfigResponse;
|
|
468
|
+
toJSON(message: ProcessConfigResponse): unknown;
|
|
469
|
+
fromPartial(object: DeepPartial<ProcessConfigResponse>): ProcessConfigResponse;
|
|
488
470
|
};
|
|
489
471
|
readonly responseStream: false;
|
|
490
472
|
readonly options: {};
|
|
491
473
|
};
|
|
492
|
-
readonly
|
|
493
|
-
readonly name: "
|
|
474
|
+
readonly processLogs: {
|
|
475
|
+
readonly name: "ProcessLogs";
|
|
494
476
|
readonly requestType: {
|
|
495
|
-
encode(message:
|
|
496
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
497
|
-
fromJSON(object: any):
|
|
498
|
-
toJSON(message:
|
|
499
|
-
fromPartial(object: DeepPartial<
|
|
477
|
+
encode(message: ProcessLogsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
478
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessLogsRequest;
|
|
479
|
+
fromJSON(object: any): ProcessLogsRequest;
|
|
480
|
+
toJSON(message: ProcessLogsRequest): unknown;
|
|
481
|
+
fromPartial(object: DeepPartial<ProcessLogsRequest>): ProcessLogsRequest;
|
|
500
482
|
};
|
|
501
483
|
readonly requestStream: false;
|
|
502
484
|
readonly responseType: {
|
|
503
|
-
encode(message:
|
|
504
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
505
|
-
fromJSON(object: any):
|
|
506
|
-
toJSON(message:
|
|
507
|
-
fromPartial(object: DeepPartial<
|
|
485
|
+
encode(message: ProcessLogsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
486
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessLogsResponse;
|
|
487
|
+
fromJSON(object: any): ProcessLogsResponse;
|
|
488
|
+
toJSON(message: ProcessLogsResponse): unknown;
|
|
489
|
+
fromPartial(object: DeepPartial<ProcessLogsResponse>): ProcessLogsResponse;
|
|
508
490
|
};
|
|
509
491
|
readonly responseStream: false;
|
|
510
492
|
readonly options: {};
|
|
511
493
|
};
|
|
512
|
-
readonly
|
|
513
|
-
readonly name: "
|
|
494
|
+
readonly processTransactions: {
|
|
495
|
+
readonly name: "ProcessTransactions";
|
|
514
496
|
readonly requestType: {
|
|
515
|
-
encode(message:
|
|
516
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
517
|
-
fromJSON(object: any):
|
|
518
|
-
toJSON(message:
|
|
519
|
-
fromPartial(object: DeepPartial<
|
|
497
|
+
encode(message: ProcessTransactionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
498
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsRequest;
|
|
499
|
+
fromJSON(object: any): ProcessTransactionsRequest;
|
|
500
|
+
toJSON(message: ProcessTransactionsRequest): unknown;
|
|
501
|
+
fromPartial(object: DeepPartial<ProcessTransactionsRequest>): ProcessTransactionsRequest;
|
|
520
502
|
};
|
|
521
503
|
readonly requestStream: false;
|
|
522
504
|
readonly responseType: {
|
|
523
|
-
encode(message:
|
|
524
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
525
|
-
fromJSON(object: any):
|
|
526
|
-
toJSON(message:
|
|
527
|
-
fromPartial(object: DeepPartial<
|
|
505
|
+
encode(message: ProcessTransactionsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
506
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsResponse;
|
|
507
|
+
fromJSON(object: any): ProcessTransactionsResponse;
|
|
508
|
+
toJSON(message: ProcessTransactionsResponse): unknown;
|
|
509
|
+
fromPartial(object: DeepPartial<ProcessTransactionsResponse>): ProcessTransactionsResponse;
|
|
528
510
|
};
|
|
529
511
|
readonly responseStream: false;
|
|
530
512
|
readonly options: {};
|
|
@@ -549,22 +531,22 @@ export declare const ProcessorDefinition: {
|
|
|
549
531
|
readonly responseStream: false;
|
|
550
532
|
readonly options: {};
|
|
551
533
|
};
|
|
552
|
-
readonly
|
|
553
|
-
readonly name: "
|
|
534
|
+
readonly processInstructions: {
|
|
535
|
+
readonly name: "ProcessInstructions";
|
|
554
536
|
readonly requestType: {
|
|
555
|
-
encode(message:
|
|
556
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
557
|
-
fromJSON(object: any):
|
|
558
|
-
toJSON(message:
|
|
559
|
-
fromPartial(object: DeepPartial<
|
|
537
|
+
encode(message: ProcessInstructionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
538
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsRequest;
|
|
539
|
+
fromJSON(object: any): ProcessInstructionsRequest;
|
|
540
|
+
toJSON(message: ProcessInstructionsRequest): unknown;
|
|
541
|
+
fromPartial(object: DeepPartial<ProcessInstructionsRequest>): ProcessInstructionsRequest;
|
|
560
542
|
};
|
|
561
543
|
readonly requestStream: false;
|
|
562
544
|
readonly responseType: {
|
|
563
|
-
encode(message:
|
|
564
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
565
|
-
fromJSON(object: any):
|
|
566
|
-
toJSON(message:
|
|
567
|
-
fromPartial(object: DeepPartial<
|
|
545
|
+
encode(message: ProcessInstructionsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
546
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsResponse;
|
|
547
|
+
fromJSON(object: any): ProcessInstructionsResponse;
|
|
548
|
+
toJSON(message: ProcessInstructionsResponse): unknown;
|
|
549
|
+
fromPartial(object: DeepPartial<ProcessInstructionsResponse>): ProcessInstructionsResponse;
|
|
568
550
|
};
|
|
569
551
|
readonly responseStream: false;
|
|
570
552
|
readonly options: {};
|
|
@@ -572,24 +554,22 @@ export declare const ProcessorDefinition: {
|
|
|
572
554
|
};
|
|
573
555
|
};
|
|
574
556
|
export interface ProcessorServiceImplementation<CallContextExt = {}> {
|
|
575
|
-
getConfig(request: ProcessConfigRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessConfigResponse>>;
|
|
576
557
|
start(request: StartRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
577
558
|
stop(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
559
|
+
getConfig(request: ProcessConfigRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessConfigResponse>>;
|
|
560
|
+
processLogs(request: ProcessLogsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessLogsResponse>>;
|
|
561
|
+
processTransactions(request: ProcessTransactionsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessTransactionsResponse>>;
|
|
581
562
|
processBlocks(request: ProcessBlocksRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBlocksResponse>>;
|
|
582
|
-
|
|
563
|
+
processInstructions(request: ProcessInstructionsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessInstructionsResponse>>;
|
|
583
564
|
}
|
|
584
565
|
export interface ProcessorClient<CallOptionsExt = {}> {
|
|
585
|
-
getConfig(request: DeepPartial<ProcessConfigRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessConfigResponse>;
|
|
586
566
|
start(request: DeepPartial<StartRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
587
567
|
stop(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
568
|
+
getConfig(request: DeepPartial<ProcessConfigRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessConfigResponse>;
|
|
569
|
+
processLogs(request: DeepPartial<ProcessLogsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessLogsResponse>;
|
|
570
|
+
processTransactions(request: DeepPartial<ProcessTransactionsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessTransactionsResponse>;
|
|
591
571
|
processBlocks(request: DeepPartial<ProcessBlocksRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBlocksResponse>;
|
|
592
|
-
|
|
572
|
+
processInstructions(request: DeepPartial<ProcessInstructionsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessInstructionsResponse>;
|
|
593
573
|
}
|
|
594
574
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
595
575
|
declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|