-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherpc.dist.ts
55 lines (54 loc) · 1.48 KB
/
erpc.dist.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Example config in TypeScript, copy and create erpc.ts so the binary automatically imports it.
*/
import { createConfig, DataFinalityStateFinalized, DataFinalityStateUnfinalized } from "@erpc-cloud/config";
export default createConfig({
logLevel: "trace",
server: {
listenV4: true,
httpHostV4: "0.0.0.0",
httpPort: 4000,
},
database: {
evmJsonRpcCache: {
connectors: [
{
id: "default-memory",
driver: "memory",
memory: {
maxItems: 100000
}
}
],
policies: [
{
connector: 'default-memory',
network: '*',
method: '*',
finality: DataFinalityStateUnfinalized,
ttl: '10s'
},
{
connector: 'default-memory',
network: '*',
method: '*',
finality: DataFinalityStateFinalized,
ttl: undefined
}
]
}
},
projects: [
{
id: "main",
upstreams: [
{
endpoint: `alchemy://${process.env.ALCHEMY_API_KEY}`
},
{
endpoint: `${process.env.CUSTOM_RPC_1}`
}
]
}
]
})