-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVM Rollup + DAL Nodes support #579
Merged
Merged
Changes from 41 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
fced193
introduce smart rollups statefulsets
nicolasochem bbf5487
ensure it starts
nicolasochem a538c02
fix rpc endpoint
nicolasochem ac8e372
add bootstrap param injection
nicolasochem b936ecb
add an empty boot sector for now
nicolasochem 267c75d
put bootstrap rollup params that work in values.yaml example
nicolasochem 6b2e5b0
fix example
nicolasochem a73a341
remove leftover signer code
nicolasochem 41ebc13
add rollup ingress
nicolasochem f018884
set path type properly
nicolasochem f17a9d2
make rollup node listen on 0.0.0.0
nicolasochem 7950c49
use debug container, pass boot sector of evm rollup
nicolasochem d0f63b1
use debug image in chain initiator to inject wasm
nicolasochem 8c33ac7
make debug image work
nicolasochem 63bca97
put hex of kernel in activation
nicolasochem cd21109
add debug statements
nicolasochem ae62943
fix typo
nicolasochem a0974ee
fix enumerate
nicolasochem 5f98486
revert config gen changes as the rollup is not in utils container
nicolasochem 6893519
add a function to replace file with its content in hex
nicolasochem be07479
remove sleep
nicolasochem 9a769db
add evm proxy
nicolasochem ecc6c27
add evm proxy script
nicolasochem 6c1a232
add "run" to evm-proxy cmd
nicolasochem c14f56d
add evm proxy service
nicolasochem eecc09b
add ingress for evm proxy
nicolasochem 1fe5e8a
add comment to chain-initiator
nicolasochem 23d3d25
add persistent data dir for rollup node
nicolasochem b48dd97
support several evm rollups
nicolasochem 2c84253
fix path type for nginx
nicolasochem cfbaa30
DAL initial
nicolasochem d5f8ebd
add service ports
nicolasochem 8a2d0ab
new syntax for evm proxy
nicolasochem aba1a5a
Merge remote-tracking branch 'origin/evm_rollup' into evm_rollup
nicolasochem 28f8187
fix ports, remove wrong DAL vars
nicolasochem 3d2e62e
DAL permissions fix
nicolasochem aa5e27d
DAL: use unsafe SRS in config-init
nicolasochem ffda22e
dal node new syntax
nicolasochem edb23b4
Merge remote-tracking branch 'origin/master' into evm_rollup
nicolasochem fa9299c
add ability for the baker to pick a DAL node
nicolasochem 811d6c6
remove debug container workaround - evm rollup is now in main container
nicolasochem 892d955
new EVM rollup model: installer kernel + small files
nicolasochem 9839dc7
remove usafe srs param
nicolasochem a5a20c5
fix xxd command
nicolasochem 7308c14
fix xxd in activation script as well
nicolasochem 3b6d07b
set -e: fail activation when a command fails
nicolasochem bf877fb
support for bootstrap profile in DAL
nicolasochem cecb905
fix newlines in dal script
nicolasochem 3e749f3
switch to --mode dev on evm proxy
nicolasochem 945e698
switch to universal smart rollup node (instead of proto-dependent)
nicolasochem 5db2e15
ensure you can add annotations to your evm proxy and evm node
nicolasochem a79d589
proper match for annotation
nicolasochem abcef9f
add option to pass public IP to dal nodes
nicolasochem 4c8766e
add ability to pass attester profiles to DAL node
nicolasochem bd10f33
dal: add ability to specify peer
nicolasochem ea864f0
new evm proxy CLI
nicolasochem 191040e
actually mondaynet doesn't have evm rollup
nicolasochem 197c8c9
remove --mode dev for evm proxy
nicolasochem f69fc07
put evm proxy in dev mode again
nicolasochem 80af9d2
Merge branch 'master' into evm_rollup
nicolasochem 4f7f5e6
replace `--version dev` with `--devmode`
nicolasochem 59a1fc9
fix disappearing ingress issue
nicolasochem 20b7564
DAL update to 50Gi
nicolasochem e1a6dba
Merge branch 'master' into evm_rollup
nicolasochem 2f5ac91
Merge branch 'master' into evm_rollup
nicolasochem 230e93d
DAL comments
nicolasochem 8377099
optional hardcoded identity for DAL nodes
nicolasochem 4ea8e52
add ability to set storage size of dal nodes in values.yaml
nicolasochem 5d18e9d
remove tmp changes
nicolasochem b414882
fix tests
nicolasochem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set -ex | ||
|
||
TEZ_VAR=/var/tezos | ||
TEZ_BIN=/usr/local/bin | ||
DAL_DATA_DIR="$TEZ_VAR/dal" | ||
|
||
mkdir -p ${DAL_DATA_DIR} | ||
|
||
CMD="$TEZ_BIN/octez-dal-node \ | ||
run \ | ||
--data-dir ${DAL_DATA_DIR} \ | ||
--endpoint http://tezos-node-rpc:8732 \ | ||
--net-addr 0.0.0.0:11732 \ | ||
--rpc-addr 0.0.0.0:10732 \ | ||
--use-unsafe-srs-for-tests" | ||
nicolasochem marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
exec $CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set -ex | ||
|
||
TEZ_BIN=/usr/local/bin | ||
|
||
CMD="$TEZ_BIN/octez-evm-proxy-server run \ | ||
with endpoint http://rollup-${MY_POD_NAME}:8932 \ | ||
--rpc-addr 0.0.0.0" | ||
|
||
exec $CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set -ex | ||
|
||
TEZ_VAR=/var/tezos | ||
TEZ_BIN=/usr/local/bin | ||
CLIENT_DIR="$TEZ_VAR/client" | ||
ROLLUP_DATA_DIR="$TEZ_VAR/rollup" | ||
|
||
xxd -ps -c 0 /usr/local/share/tezos/evm_kernel.wasm | tr -d '\n' > /var/tezos/smart-rollup-boot-sector | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comment here whats going on? |
||
CMD="$TEZ_BIN/octez-smart-rollup-node-alpha \ | ||
--endpoint http://tezos-node-rpc:8732 \ | ||
-d $CLIENT_DIR \ | ||
run operator for ${ROLLUP_ADDRESS} with operators ${OPERATOR_ACCOUNT} \ | ||
--data-dir ${ROLLUP_DATA_DIR} \ | ||
--boot-sector-file /var/tezos/smart-rollup-boot-sector \ | ||
--rpc-addr 0.0.0.0" | ||
|
||
exec $CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{{- range $k, $v := .Values.dalNodes }} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dal-{{ $k }} | ||
namespace: {{ $.Release.Namespace }} | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 10732 | ||
name: rpc | ||
- port: 11732 | ||
name: p2p | ||
selector: | ||
app: dal-{{ $k }} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: dal-{{ $k }} | ||
namespace: {{ $.Release.Namespace }} | ||
spec: | ||
podManagementPolicy: Parallel | ||
replicas: 1 | ||
serviceName: dal-{{ $k }} | ||
selector: | ||
matchLabels: | ||
app: dal-{{ $k }} | ||
template: | ||
metadata: | ||
labels: | ||
app: dal-{{ $k }} | ||
spec: | ||
containers: | ||
- name: octez-dal-node | ||
image: "{{ $.Values.images.octez }}" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 10732 | ||
name: rpc | ||
- containerPort: 11732 | ||
name: p2p | ||
command: | ||
- /bin/sh | ||
volumeMounts: | ||
- mountPath: /var/tezos | ||
name: var-volume | ||
args: | ||
- "-c" | ||
- | | ||
{{ tpl ($.Files.Get "scripts/dal-node.sh") $ | indent 12 }} | ||
securityContext: | ||
fsGroup: 1000 | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: var-volume | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "15Gi" | ||
--- | ||
{{- if $v.ingress | default false }} | ||
{{- if $v.ingress.enabled | default false }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: dal-{{ $k }} | ||
namespace: {{ $.Release.Namespace }} | ||
{{- with $v.ingress.labels }} | ||
labels: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with $v.ingress.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ingressClassName: {{ $v.ingress.className }} | ||
{{- if $v.ingress.tls }} | ||
tls: | ||
{{- range $v.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
- host: {{ $v.ingress.host }} | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: / | ||
backend: | ||
service: | ||
name: dal-{{ $k }} | ||
port: | ||
name: rpc | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this all for?