Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Allow generic rollup genesis alloc (#152)
Browse files Browse the repository at this point in the history
This enables folks to set their own smart contracts through the alloc
instead of only balances.
  • Loading branch information
joroshiba authored Jan 9, 2024
1 parent ec41221 commit cd95329
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/rollup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.7.8
version: 0.7.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions charts/rollup/files/genesis/geth-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"difficulty": "10000000",
"gasLimit": "8000000",
"alloc": {
{{- range $index, $value := .Values.config.rollup.genesisAccounts }}
{{- range $index, $value := .Values.config.rollup.genesisAlloc }}
{{- if $index }},{{- end }}
"{{ $value.address }}": { "balance": "{{ $value.balance }}" }
"{{ $value.address }}": {{ toPrettyJson $value.value | indent 8 | trim }}
{{- end }}
}
}
9 changes: 5 additions & 4 deletions charts/rollup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ config:
# - "FirmOnly" -> blocks are only pulled from DA
# - "SoftAndFirm" -> blocks are pulled from both the sequencer and DA
executionCommitLevel: 'SoftAndFirm'
# Definitions around who has funding on startup
genesisAccounts:
# Initial genesis state allocations, can deploy contracts or set account balances
genesisAlloc:
- address: "0xaC21B97d35Bf75A7dAb16f35b111a50e78A72F30"
# The balance must be a string due to size
balance: "1000000000000000000000000000"
value:
# The balance must be a string due to size
balance: "1000000000000000000000000000"
optimism:
# set to true to enable op-stack integration, and setup rest of config
enabled: false
Expand Down

0 comments on commit cd95329

Please sign in to comment.