Skip to content

Commit

Permalink
Merge pull request #379 from celo-org/jcortejoso/batcher-compressor-o…
Browse files Browse the repository at this point in the history
…ptions

Adding compression options for op-batcher
  • Loading branch information
jcortejoso authored Aug 13, 2024
2 parents a5bf40c + f0c2be8 commit 478fbc7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/op-batcher/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: op-batcher
apiVersion: v2
version: 0.1.8
version: 0.1.9
description: Celo implementation for op-batcher client (Optimism Rollup)
home: https://clabs.co
sources:
Expand Down
4 changes: 3 additions & 1 deletion charts/op-batcher/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# op-batcher

![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)

Celo implementation for op-batcher client (Optimism Rollup)

Expand All @@ -26,6 +26,8 @@ Celo implementation for op-batcher client (Optimism Rollup)
| affinity | object | `{}` | |
| config.batchType | string | `""` | |
| config.blobTargetNumFrames | string | `""` | |
| config.compressionAlgo | string | `""` | |
| config.compressor | string | `""` | |
| config.dataAvailabilityType | string | `"calldata"` | |
| config.feeLimitMultiplier | int | `5` | |
| config.l2Url | string | `""` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/op-batcher/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ spec:
{{- with .Values.config.batchType }}
--batch-type={{ . }} \
{{- end }}
{{- with .Values.config.compressionAlgo }}
--compression-algo={{ . }} \
{{- end }}
{{ with .Values.config.compressor }}
--compressor={{ . }} \
{{- end }}
{{- with .Values.config.maxChannelDuration }}
--max-channel-duration={{ toString . }} \
{{- end }}
Expand Down
6 changes: 4 additions & 2 deletions charts/op-batcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,14 @@ secrets:
## Main op-batcher config
config:
l2Url: "" # HTTP provider URL for the L2 engine. If multiple URLs are provided, they should match the number of rollup-rpcs
dataAvailabilityType: calldata # The data availability type to use for submitting batches to the L1. Valid options: calldata, blobs
batchType: "" # The batch type. 0 for SingularBatch and 1 for SpanBatch
rollupUrl: "" # HTTP provider URL for rollup node. If multiple URLs are provided, they should match the number of l2-eth-rpcs
pollInterval: 1s # How frequently to poll L2 for new blocks
subSafetyMargin: 6 # Safety margin (in #L1blocks) for batch transaction submission to ensure safe channel inclusion on L1.
numConfirmations: 1 # Number of confirmations which we will wait after sending a transaction
dataAvailabilityType: calldata # The data availability type to use for submitting batches to the L1. Valid options: calldata, blobs
batchType: "" # The batch type. 0 for SingularBatch and 1 for SpanBatch
compressionAlgo: "" # The compression algorithm to use. Valid options: zlib, brotli, brotli-9, brotli-10, brotli-11
compressor: "" # The type of compressor. Valid options: ratio, shadow, none
blobTargetNumFrames: "" # The target number of frames to create per channel. Controls number of blobs per blob tx, if using Blob DA.
safeAbortNonceTooLowCount: 3 # Number of ErrNonceTooLow observations required to give up on a tx at a particular nonce without receiving confirmation
resubmissionTimeout: 30s # Duration we will wait before resubmitting a transaction to L1
Expand Down

0 comments on commit 478fbc7

Please sign in to comment.