Skip to content

Commit 9b77bba

Browse files
committed
⬆️ Update to eRRPC v.0.0.19
1 parent 6db24c1 commit 9b77bba

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,28 @@ import type { OptionalField } from "./types/utils";
88
type ConfigWithOptionalServer = Omit<Config, "server" | "metrics"> & {
99
server?: OptionalField<
1010
ServerConfig,
11-
"httpPort" | "httpHostV4" | "httpHostV6"
11+
"httpPort" | "httpHostV4" | "httpHostV6" | "listenV4" | "listenV6"
12+
>;
13+
metrics?: OptionalField<
14+
MetricsConfig,
15+
"port" | "hostV4" | "hostV6" | "listenV4" | "listenV6"
1216
>;
13-
metrics?: OptionalField<MetricsConfig, "port" | "hostV4" | "hostV6">;
1417
};
1518

1619
// Default config for metrics and server
1720
const defaultServerConfig = {
1821
httpPort: 4000,
1922
httpHostV4: "0.0.0.0",
2023
httpHostV6: "[::]",
24+
listenV4: true,
25+
listenV6: true,
2126
};
2227
const defaultMetricsCofnig = {
2328
port: 4001,
2429
hostV4: "0.0.0.0",
2530
hostV6: "[::]",
31+
listenV4: true,
32+
listenV6: true,
2633
};
2734

2835
/**

src/generatedTypes/erpcTypes.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export interface Config {
1616
admin?: AdminConfig;
1717
}
1818
export interface ServerConfig {
19+
listenV4: boolean;
1920
httpHostV4: string;
21+
listenV6: boolean;
2022
httpHostV6: string;
2123
httpPort: number /* int */;
2224
maxTimeout: string;
@@ -122,7 +124,12 @@ export interface EvmUpstreamConfig {
122124
nodeType: EvmNodeType;
123125
engine: string;
124126
getLogsMaxBlockRange: number /* int */;
125-
syncing: boolean;
127+
statePollerInterval: string;
128+
/**
129+
* By default "Syncing" is marked as unknown (nil) and that means we will be retrying empty responses
130+
* from such upstream, unless we explicitly know that the upstream is fully synced (false).
131+
*/
132+
syncing?: boolean;
126133
}
127134
export interface FailsafeConfig {
128135
retry?: RetryPolicyConfig;
@@ -217,7 +224,9 @@ export interface NetworkStrategyConfig {
217224
}
218225
export interface MetricsConfig {
219226
enabled: boolean;
227+
listenV4: boolean;
220228
hostV4: string;
229+
listenV6: boolean;
221230
hostV6: string;
222231
port: number /* int */;
223232
}
@@ -230,7 +239,6 @@ export const EvmNodeTypeFull: EvmNodeType = "full";
230239
export const EvmNodeTypeArchive: EvmNodeType = "archive";
231240
export const EvmNodeTypeSequencer: EvmNodeType = "sequencer";
232241
export const EvmNodeTypeExecution: EvmNodeType = "execution";
233-
export type EvmBlockTracker = any;
234242

235243
//////////
236244
// source: network.go

0 commit comments

Comments
 (0)