This repository was archived by the owner on Aug 19, 2025. It is now read-only.
forked from 0xPolygon/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathnode-config-schema.json
More file actions
2460 lines (2460 loc) · 76.1 KB
/
node-config-schema.json
File metadata and controls
2460 lines (2460 loc) · 76.1 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "github.com/0xPolygonHermez/zkevm-node/config/config",
"properties": {
"IsTrustedSequencer": {
"type": "boolean",
"description": "This define is a trusted node (`true`) or a permission less (`false`). If you don't known\nset to `false`",
"default": false
},
"ForkUpgradeBatchNumber": {
"type": "integer",
"description": "Last batch number before a forkid change (fork upgrade). That implies that\ngreater batch numbers are going to be trusted but no virtualized neither verified.\nSo after the batch number `ForkUpgradeBatchNumber` is virtualized and verified you could update\nthe system (SC,...) to new forkId and remove this value to allow the system to keep\nVirtualizing and verifying the new batchs.\nCheck issue [#2236](https://github.com/0xPolygonHermez/zkevm-node/issues/2236) to known more\nThis value overwrite `SequenceSender.ForkUpgradeBatchNumber`",
"default": 0
},
"ForkUpgradeNewForkId": {
"type": "integer",
"description": "Which is the new forkId",
"default": 0
},
"Log": {
"properties": {
"Environment": {
"type": "string",
"enum": [
"production",
"development"
],
"description": "Environment defining the log format (\"production\" or \"development\").\nIn development mode enables development mode (which makes DPanicLevel logs panic), uses a console encoder, writes to standard error, and disables sampling. Stacktraces are automatically included on logs of WarnLevel and above.\nCheck [here](https://pkg.go.dev/go.uber.org/zap@v1.24.0#NewDevelopmentConfig)",
"default": "development"
},
"Level": {
"type": "string",
"enum": [
"debug",
"info",
"warn",
"error",
"dpanic",
"panic",
"fatal"
],
"description": "Level of log. As lower value more logs are going to be generated",
"default": "info"
},
"Outputs": {
"items": {
"type": "string"
},
"type": "array",
"description": "Outputs",
"default": [
"stderr"
]
}
},
"additionalProperties": false,
"type": "object",
"description": "Configure Log level for all the services, allow also to store the logs in a file"
},
"Etherman": {
"properties": {
"URL": {
"type": "string",
"description": "URL is the URL of the Ethereum node for L1",
"default": "http://localhost:8545"
},
"ForkIDChunkSize": {
"type": "integer",
"description": "ForkIDChunkSize is the max interval for each call to L1 provider to get the forkIDs",
"default": 20000
},
"MultiGasProvider": {
"type": "boolean",
"description": "allow that L1 gas price calculation use multiples sources",
"default": false
},
"Etherscan": {
"properties": {
"ApiKey": {
"type": "string",
"description": "Need API key to use etherscan, if it's empty etherscan is not used",
"default": ""
},
"Url": {
"type": "string",
"description": "URL of the etherscan API. Overwritten with a hardcoded URL: \"https://api.etherscan.io/api?module=gastracker\u0026action=gasoracle\u0026apikey=\"",
"default": ""
}
},
"additionalProperties": false,
"type": "object",
"description": "Configuration for use Etherscan as used as gas provider, basically it needs the API-KEY"
}
},
"additionalProperties": false,
"type": "object",
"description": "Configuration of the etherman (client for access L1)"
},
"EthTxManager": {
"properties": {
"FrequencyToMonitorTxs": {
"type": "string",
"title": "Duration",
"description": "FrequencyToMonitorTxs frequency of the resending failed txs",
"default": "1s",
"examples": [
"1m",
"300ms"
]
},
"WaitTxToBeMined": {
"type": "string",
"title": "Duration",
"description": "WaitTxToBeMined time to wait after transaction was sent to the ethereum",
"default": "2m0s",
"examples": [
"1m",
"300ms"
]
},
"PrivateKeys": {
"items": {
"properties": {
"Path": {
"type": "string",
"description": "Path is the file path for the key store file"
},
"Password": {
"type": "string",
"description": "Password is the password to decrypt the key store file"
}
},
"additionalProperties": false,
"type": "object",
"description": "KeystoreFileConfig has all the information needed to load a private key from a key store file"
},
"type": "array",
"description": "PrivateKeys defines all the key store files that are going\nto be read in order to provide the private keys to sign the L1 txs"
},
"ForcedGas": {
"type": "integer",
"description": "ForcedGas is the amount of gas to be forced in case of gas estimation error",
"default": 0
},
"GasPriceMarginFactor": {
"type": "number",
"description": "GasPriceMarginFactor is used to multiply the suggested gas price provided by the network\nin order to allow a different gas price to be set for all the transactions and making it\neasier to have the txs prioritized in the pool, default value is 1.\n\nex:\nsuggested gas price: 100\nGasPriceMarginFactor: 1\ngas price = 100\n\nsuggested gas price: 100\nGasPriceMarginFactor: 1.1\ngas price = 110",
"default": 1
},
"MaxGasPriceLimit": {
"type": "integer",
"description": "MaxGasPriceLimit helps avoiding transactions to be sent over an specified\ngas price amount, default value is 0, which means no limit.\nIf the gas price provided by the network and adjusted by the GasPriceMarginFactor\nis greater than this configuration, transaction will have its gas price set to\nthe value configured in this config as the limit.\n\nex:\n\nsuggested gas price: 100\ngas price margin factor: 20%\nmax gas price limit: 150\ntx gas price = 120\n\nsuggested gas price: 100\ngas price margin factor: 20%\nmax gas price limit: 110\ntx gas price = 110",
"default": 0
},
"CustodialAssets": {
"properties": {
"Enable": {
"type": "boolean",
"description": "Enable is the flag to enable the custodial assets",
"default": false
},
"URL": {
"type": "string",
"description": "URL is the url to sign the custodial assets",
"default": "http://localhost:8080"
},
"Symbol": {
"type": "integer",
"description": "Symbol is the symbol of the network, 2 prd, 2882 devnet",
"default": 2882
},
"SequencerAddr": {
"items": {
"type": "integer"
},
"type": "array",
"maxItems": 20,
"minItems": 20,
"description": "SequencerAddr is the address of the sequencer",
"default": "0x1a13bddcc02d363366e04d4aa588d3c125b0ff6f"
},
"AggregatorAddr": {
"items": {
"type": "integer"
},
"type": "array",
"maxItems": 20,
"minItems": 20,
"description": "AggregatorAddr is the address of the aggregator",
"default": "0x66e39a1e507af777e8c385e2d91559e20e306303"
},
"WaitResultTimeout": {
"type": "string",
"title": "Duration",
"description": "WaitResultTimeout is the timeout to wait for the result of the custodial assets",
"default": "2m0s",
"examples": [
"1m",
"300ms"
]
},
"OperateTypeSeq": {
"type": "integer",
"description": "OperateTypeSeq is the operate type of the custodial assets for the sequencer",
"default": 3
},
"OperateTypeAgg": {
"type": "integer",
"description": "OperateTypeAgg is the operate type of the custodial assets for the aggregator",
"default": 4
},
"ProjectSymbol": {
"type": "integer",
"description": "ProjectSymbol is the project symbol of the custodial assets",
"default": 3011
},
"OperateSymbol": {
"type": "integer",
"description": "OperateSymbol is the operate symbol of the custodial assets",
"default": 2
},
"SysFrom": {
"type": "integer",
"description": "SysFrom is the sys from of the custodial assets",
"default": 3
},
"UserID": {
"type": "integer",
"description": "UserID is the user id of the custodial assets",
"default": 0
},
"OperateAmount": {
"type": "integer",
"description": "OperateAmount is the operate amount of the custodial assets",
"default": 0
},
"RequestSignURI": {
"type": "string",
"description": "RequestSignURI is the request sign uri of the custodial assets",
"default": "/priapi/v1/assetonchain/ecology/ecologyOperate"
},
"QuerySignURI": {
"type": "string",
"description": "QuerySignURI is the query sign uri of the custodial assets",
"default": "/priapi/v1/assetonchain/ecology/querySignDataByOrderNo"
},
"AccessKey": {
"type": "string",
"description": "AccessKey is the access key of the custodial assets",
"default": ""
},
"SecretKey": {
"type": "string",
"description": "SecretKey is the secret key of the custodial assets",
"default": ""
}
},
"additionalProperties": false,
"type": "object",
"description": "CustodialAssets is the configuration for the custodial assets"
}
},
"additionalProperties": false,
"type": "object",
"description": "Configuration for ethereum transaction manager"
},
"Pool": {
"properties": {
"IntervalToRefreshBlockedAddresses": {
"type": "string",
"title": "Duration",
"description": "IntervalToRefreshBlockedAddresses is the time it takes to sync the\nblocked address list from db to memory",
"default": "5m0s",
"examples": [
"1m",
"300ms"
]
},
"IntervalToRefreshWhiteAddresses": {
"type": "string",
"title": "Duration",
"description": "IntervalToRefreshWhiteAddresses is the time it takes to sync the\nwhite address list from db to memory",
"default": "1m0s",
"examples": [
"1m",
"300ms"
]
},
"EnableWhitelist": {
"type": "boolean",
"description": "EnableWhitelist is a flag to enable/disable the whitelist",
"default": false
},
"IntervalToRefreshGasPrices": {
"type": "string",
"title": "Duration",
"description": "IntervalToRefreshGasPrices is the time to wait to refresh the gas prices",
"default": "5s",
"examples": [
"1m",
"300ms"
]
},
"MaxTxBytesSize": {
"type": "integer",
"description": "MaxTxBytesSize is the max size of a transaction in bytes",
"default": 100132
},
"MaxTxDataBytesSize": {
"type": "integer",
"description": "MaxTxDataBytesSize is the max size of the data field of a transaction in bytes",
"default": 100000
},
"DB": {
"properties": {
"Name": {
"type": "string",
"description": "Database name",
"default": "pool_db"
},
"User": {
"type": "string",
"description": "Database User name",
"default": "pool_user"
},
"Password": {
"type": "string",
"description": "Database Password of the user",
"default": "pool_password"
},
"Host": {
"type": "string",
"description": "Host address of database",
"default": "xlayer-pool-db"
},
"Port": {
"type": "string",
"description": "Port Number of database",
"default": "5432"
},
"EnableLog": {
"type": "boolean",
"description": "EnableLog",
"default": false
},
"MaxConns": {
"type": "integer",
"description": "MaxConns is the maximum number of connections in the pool.",
"default": 200
}
},
"additionalProperties": false,
"type": "object",
"description": "DB is the database configuration"
},
"DefaultMinGasPriceAllowed": {
"type": "integer",
"description": "DefaultMinGasPriceAllowed is the default min gas price to suggest",
"default": 1000000000
},
"MinAllowedGasPriceInterval": {
"type": "string",
"title": "Duration",
"description": "MinAllowedGasPriceInterval is the interval to look back of the suggested min gas price for a tx",
"default": "5m0s",
"examples": [
"1m",
"300ms"
]
},
"PollMinAllowedGasPriceInterval": {
"type": "string",
"title": "Duration",
"description": "PollMinAllowedGasPriceInterval is the interval to poll the suggested min gas price for a tx",
"default": "15s",
"examples": [
"1m",
"300ms"
]
},
"AccountQueue": {
"type": "integer",
"description": "AccountQueue represents the maximum number of non-executable transaction slots permitted per account",
"default": 64
},
"GlobalQueue": {
"type": "integer",
"description": "GlobalQueue represents the maximum number of non-executable transaction slots for all accounts",
"default": 1024
},
"EffectiveGasPrice": {
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enabled is a flag to enable/disable the effective gas price",
"default": false
},
"L1GasPriceFactor": {
"type": "number",
"description": "L1GasPriceFactor is the percentage of the L1 gas price that will be used as the L2 min gas price",
"default": 0.25
},
"ByteGasCost": {
"type": "integer",
"description": "ByteGasCost is the gas cost per byte that is not 0",
"default": 16
},
"ZeroByteGasCost": {
"type": "integer",
"description": "ZeroByteGasCost is the gas cost per byte that is 0",
"default": 4
},
"NetProfit": {
"type": "number",
"description": "NetProfit is the profit margin to apply to the calculated breakEvenGasPrice",
"default": 1
},
"BreakEvenFactor": {
"type": "number",
"description": "BreakEvenFactor is the factor to apply to the calculated breakevenGasPrice when comparing it with the gasPriceSigned of a tx",
"default": 1.1
},
"FinalDeviationPct": {
"type": "integer",
"description": "FinalDeviationPct is the max allowed deviation percentage BreakEvenGasPrice on re-calculation",
"default": 10
},
"EthTransferGasPrice": {
"type": "integer",
"description": "EthTransferGasPrice is the fixed gas price returned as effective gas price for txs tha are ETH transfers (0 means disabled)\nOnly one of EthTransferGasPrice or EthTransferL1GasPriceFactor params can be different than 0. If both params are set to 0, the sequencer will halt and log an error",
"default": 0
},
"EthTransferL1GasPriceFactor": {
"type": "number",
"description": "EthTransferL1GasPriceFactor is the percentage of L1 gas price returned as effective gas price for txs tha are ETH transfers (0 means disabled)\nOnly one of EthTransferGasPrice or EthTransferL1GasPriceFactor params can be different than 0. If both params are set to 0, the sequencer will halt and log an error",
"default": 0
},
"L2GasPriceSuggesterFactor": {
"type": "number",
"description": "L2GasPriceSuggesterFactor is the factor to apply to L1 gas price to get the suggested L2 gas price used in the\ncalculations when the effective gas price is disabled (testing/metrics purposes)",
"default": 0.5
}
},
"additionalProperties": false,
"type": "object",
"description": "EffectiveGasPrice is the config for the effective gas price calculation"
},
"ForkID": {
"type": "integer",
"description": "ForkID is the current fork ID of the chain",
"default": 0
},
"TxFeeCap": {
"type": "number",
"description": "TxFeeCap is the global transaction fee(price * gaslimit) cap for\nsend-transaction variants. The unit is ether. 0 means no cap.",
"default": 1
},
"BlockedList": {
"items": {
"type": "string"
},
"type": "array",
"description": "XLayer config\nBlockedList is the blocked address list"
},
"FreeGasAddress": {
"items": {
"type": "string"
},
"type": "array",
"description": "FreeGasAddress is the default free gas address",
"default": [
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
]
},
"FreeClaimGasLimit": {
"type": "integer",
"description": "FreeClaimGasLimit is the max gas allowed use to do a free claim",
"default": 150000
},
"BridgeClaimMethodSigs": {
"items": {
"type": "string"
},
"type": "array",
"description": "BridgeClaimMethodSignature for tracking BridgeClaimMethodSignature method"
},
"EnableFreeGasByNonce": {
"type": "boolean",
"description": "EnableFreeGasByNonce enable free gas",
"default": false
},
"FreeGasExAddress": {
"items": {
"type": "string"
},
"type": "array",
"description": "FreeGasExAddress is the ex address which can be free gas for the transfer receiver"
},
"FreeGasCountPerAddr": {
"type": "integer",
"description": "FreeGasCountPerAddr is the count limit of free gas tx per address",
"default": 0
},
"FreeGasLimit": {
"type": "integer",
"description": "FreeGasLimit is the max gas allowed use to do a free gas tx",
"default": 0
},
"EnableFreeGasList": {
"type": "boolean",
"description": "EnableFreeGasList enable the special project of XLayer for free gas",
"default": false
},
"FreeGasList": {
"items": {
"properties": {
"Name": {
"type": "string"
},
"FromList": {
"items": {
"type": "string"
},
"type": "array"
},
"ToList": {
"items": {
"type": "string"
},
"type": "array"
},
"MethodSigs": {
"items": {
"type": "string"
},
"type": "array"
},
"GasPriceMultiple": {
"type": "number"
}
},
"additionalProperties": false,
"type": "object",
"description": "FreeGasInfo contains the details for what tx should be free"
},
"type": "array",
"description": "FreeGasList is the special project of XLayer"
}
},
"additionalProperties": false,
"type": "object",
"description": "Pool service configuration"
},
"RPC": {
"properties": {
"Host": {
"type": "string",
"description": "Host defines the network adapter that will be used to serve the HTTP requests",
"default": "0.0.0.0"
},
"Port": {
"type": "integer",
"description": "Port defines the port to serve the endpoints via HTTP",
"default": 8545
},
"ReadTimeout": {
"type": "string",
"title": "Duration",
"description": "ReadTimeout is the HTTP server read timeout\ncheck net/http.server.ReadTimeout and net/http.server.ReadHeaderTimeout",
"default": "1m0s",
"examples": [
"1m",
"300ms"
]
},
"WriteTimeout": {
"type": "string",
"title": "Duration",
"description": "WriteTimeout is the HTTP server write timeout\ncheck net/http.server.WriteTimeout",
"default": "1m0s",
"examples": [
"1m",
"300ms"
]
},
"MaxRequestsPerIPAndSecond": {
"type": "number",
"description": "MaxRequestsPerIPAndSecond defines how much requests a single IP can\nsend within a single second",
"default": 500
},
"SequencerNodeURI": {
"type": "string",
"description": "SequencerNodeURI is used allow Non-Sequencer nodes\nto relay transactions to the Sequencer node",
"default": ""
},
"MaxCumulativeGasUsed": {
"type": "integer",
"description": "MaxCumulativeGasUsed is the max gas allowed per batch",
"default": 0
},
"WebSockets": {
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enabled defines if the WebSocket requests are enabled or disabled",
"default": true
},
"Host": {
"type": "string",
"description": "Host defines the network adapter that will be used to serve the WS requests",
"default": "0.0.0.0"
},
"Port": {
"type": "integer",
"description": "Port defines the port to serve the endpoints via WS",
"default": 8546
},
"ReadLimit": {
"type": "integer",
"description": "ReadLimit defines the maximum size of a message read from the client (in bytes)",
"default": 104857600
}
},
"additionalProperties": false,
"type": "object",
"description": "WebSockets configuration"
},
"EnableL2SuggestedGasPricePolling": {
"type": "boolean",
"description": "EnableL2SuggestedGasPricePolling enables polling of the L2 gas price to block tx in the RPC with lower gas price.",
"default": true
},
"BatchRequestsEnabled": {
"type": "boolean",
"description": "BatchRequestsEnabled defines if the Batch requests are enabled or disabled",
"default": false
},
"BatchRequestsLimit": {
"type": "integer",
"description": "BatchRequestsLimit defines the limit of requests that can be incorporated into each batch request",
"default": 20
},
"L2Coinbase": {
"items": {
"type": "integer"
},
"type": "array",
"maxItems": 20,
"minItems": 20,
"description": "L2Coinbase defines which address is going to receive the fees"
},
"MaxLogsCount": {
"type": "integer",
"description": "MaxLogsCount is a configuration to set the max number of logs that can be returned\nin a single call to the state, if zero it means no limit",
"default": 10000
},
"MaxLogsBlockRange": {
"type": "integer",
"description": "MaxLogsBlockRange is a configuration to set the max range for block number when querying TXs\nlogs in a single call to the state, if zero it means no limit",
"default": 10000
},
"MaxNativeBlockHashBlockRange": {
"type": "integer",
"description": "MaxNativeBlockHashBlockRange is a configuration to set the max range for block number when querying\nnative block hashes in a single call to the state, if zero it means no limit",
"default": 60000
},
"EnableHttpLog": {
"type": "boolean",
"description": "EnableHttpLog allows the user to enable or disable the logs related to the HTTP\nrequests to be captured by the server.",
"default": true
},
"ZKCountersLimits": {
"properties": {
"MaxKeccakHashes": {
"type": "integer",
"default": 0
},
"MaxPoseidonHashes": {
"type": "integer",
"default": 0
},
"MaxPoseidonPaddings": {
"type": "integer",
"default": 0
},
"MaxMemAligns": {
"type": "integer",
"default": 0
},
"MaxArithmetics": {
"type": "integer",
"default": 0
},
"MaxBinaries": {
"type": "integer",
"default": 0
},
"MaxSteps": {
"type": "integer",
"default": 0
},
"MaxSHA256Hashes": {
"type": "integer",
"default": 0
}
},
"additionalProperties": false,
"type": "object",
"description": "ZKCountersLimits defines the ZK Counter limits"
},
"EnablePendingTransactionFilter": {
"type": "boolean",
"description": "XLayer config\nEnablePendingTransactionFilter enables pending transaction filter that can support query L2 pending transaction",
"default": false
},
"Nacos": {
"properties": {
"URLs": {
"type": "string",
"description": "URLs nacos server urls for discovery service of rest api, url is separated by \",\"",
"default": ""
},
"NamespaceId": {
"type": "string",
"description": "NamespaceId nacos namepace id for discovery service of rest api",
"default": ""
},
"ApplicationName": {
"type": "string",
"description": "ApplicationName rest application name in nacos",
"default": ""
},
"ExternalListenAddr": {
"type": "string",
"description": "ExternalListenAddr Set the rest-server external ip and port, when it is launched by Docker",
"default": ""
}
},
"additionalProperties": false,
"type": "object",
"description": "Nacos configuration"
},
"NacosWs": {
"properties": {
"URLs": {
"type": "string",
"description": "URLs nacos server urls for discovery service of rest api, url is separated by \",\"",
"default": ""
},
"NamespaceId": {
"type": "string",
"description": "NamespaceId nacos namepace id for discovery service of rest api",
"default": ""
},
"ApplicationName": {
"type": "string",
"description": "ApplicationName rest application name in nacos",
"default": ""
},
"ExternalListenAddr": {
"type": "string",
"description": "ExternalListenAddr Set the rest-server external ip and port, when it is launched by Docker",
"default": ""
}
},
"additionalProperties": false,
"type": "object",
"description": "NacosWs configuration"
},
"GasLimitFactor": {
"type": "number",
"description": "GasLimitFactor is used to multiply the suggested gas provided by the network\nin order to allow a enough gas to be set for all the transactions default value is 1.\n\nex:\nsuggested gas limit: 100\nGasLimitFactor: 1\ngas limit = 100\n\nsuggested gas limit: 100\nGasLimitFactor: 1.1\ngas limit = 110",
"default": 1
},
"EnableEstimateGasOpt": {
"type": "boolean",
"default": false
},
"EnableEstimateGasUltraOpt": {
"type": "boolean",
"default": false
},
"DisableAPIs": {
"items": {
"type": "string"
},
"type": "array",
"description": "DisableAPIs disable some API",
"default": []
},
"RateLimit": {
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enabled defines if the rate limit is enabled or disabled",
"default": false
},
"RateLimitApis": {
"items": {
"type": "string"
},
"type": "array",
"description": "RateLimitApis defines the apis that need to be rate limited",
"default": []
},
"RateLimitCount": {
"type": "integer",
"description": "RateLimitBurst defines the maximum burst size of requests",
"default": 100
},
"RateLimitDuration": {
"type": "integer",
"description": "RateLimitDuration defines the time window for the rate limit",
"default": 1
},
"SpecialApis": {
"items": {
"properties": {
"Api": {
"type": "string",
"description": "Api defines the api that need to be rate limited"
},
"Count": {
"type": "integer",
"description": "Count defines the maximum burst size of requests"
},
"Duration": {
"type": "integer",
"description": "Duration defines the time window for the rate limit"
}
},
"additionalProperties": false,
"type": "object",
"description": "RateLimitItem defines the special rate limit for some apis"
},
"type": "array",
"description": "SpecialApis defines the apis that need to be rate limited with special rate limit",
"default": []
}
},
"additionalProperties": false,
"type": "object",
"description": "RateLimit enable rate limit"
},
"DynamicGP": {
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enabled defines if the dynamic gas price is enabled or disabled",
"default": false
},
"CongestionTxThreshold": {
"type": "integer",
"description": "CongestionTxThreshold defines the tx threshold to measure whether there is congestion",
"default": 100
},
"CheckBatches": {
"type": "integer",
"description": "CheckBatches defines the number of recent Batches used to sample gas price",
"default": 5
},
"SampleNumber": {
"type": "integer",
"description": "SampleTxNumer defines the number of sampled gas prices in each batch",
"default": 3
},
"Percentile": {
"type": "integer",
"description": "Percentile defines the sampling weight of all sampled gas prices",
"default": 70
},
"MaxPrice": {
"type": "integer",
"description": "MaxPrice defines the dynamic gas price upper limit",
"default": 20000000000
},
"MinPrice": {
"type": "integer",
"description": "MinPrice defines the dynamic gas price lower limit",
"default": 2000000000
},
"UpdatePeriod": {
"type": "string",
"title": "Duration",
"description": "UpdatePeriod defines the time interval for updating dynamic gas price",
"default": "10s",
"examples": [
"1m",
"300ms"
]
}
},
"additionalProperties": false,
"type": "object",
"description": "DynamicGP defines the config of dynamic gas price"
},
"EnableInnerTxCacheDB": {
"type": "boolean",
"description": "EnableInnerTxCacheDB enables the inner tx cache db",
"default": false
},
"BridgeAddress": {
"items": {
"type": "integer"
},
"type": "array",
"maxItems": 20,
"minItems": 20,
"description": "BridgeAddress is the address of the bridge contract"
},
"ApiAuthentication": {
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enabled defines if the api authentication is enabled",
"default": false
},
"ApiKeys": {
"items": {
"properties": {
"Project": {
"type": "string",
"description": "Name defines the name of the key"
},
"Key": {
"type": "string",
"description": "Key defines the key"
},
"Timeout": {
"type": "string",
"description": "Timeout defines the timeout"
}
},
"additionalProperties": false,
"type": "object",
"description": "KeyItem is the api key item"
},
"type": "array",
"description": "ApiKeys defines the api keys",
"default": []
}
},
"additionalProperties": false,
"type": "object",
"description": "ApiAuthentication defines the authentication configuration for the API"
},
"ApiRelay": {
"properties": {
"Enabled": {
"type": "boolean",
"default": false
},
"DestURI": {
"type": "string",
"default": ""
},
"RPCs": {
"items": {
"type": "string"
},
"type": "array",
"default": []
},
"Rerun": {
"type": "boolean",
"default": false
},
"RelayAll": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false,
"type": "object",
"description": "ApiRelay defines the relay configuration for the API"
}
},
"additionalProperties": false,
"type": "object",
"description": "Configuration for RPC service. THis one offers a extended Ethereum JSON-RPC API interface to interact with the node"
},
"Synchronizer": {
"properties": {
"SyncInterval": {
"type": "string",
"title": "Duration",
"description": "SyncInterval is the delay interval between reading new rollup information",
"default": "1s",
"examples": [
"1m",
"300ms"
]
},
"SyncChunkSize": {
"type": "integer",
"description": "SyncChunkSize is the number of blocks to sync on each chunk",
"default": 100
},
"TrustedSequencerURL": {
"type": "string",