Skip to content

Commit

Permalink
Oxfordnet
Browse files Browse the repository at this point in the history
  • Loading branch information
matsakiv committed Feb 11, 2024
1 parent 35d5110 commit 02b0eb4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
file: build/etherlink/Dockerfile
build-args: |
OCTEZ_TAG=master
OCTEZ_PROTO=PtNairob
OCTEZ_PROTO=Proxford
PACKAGE=evm_kernel
TEZOS_REPO=https://gitlab.com/baking-bad/tezos.git
TEZOS_REPO_BRANCH=feat/token-deposits
Expand All @@ -70,7 +70,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
env:
NETWORK: nairobinet
NETWORK: oxfordnet
steps:
- name: Deploy rollup
run: docker run -v "/var/run/docker.sock":"/var/run/docker.sock" -e NETWORK=${{ env.NETWORK }} -e OPERATOR_KEY=${{ secrets.OPERATOR_KEY }} ${{ needs.build.outputs.operator }} deploy_rollup | tee originate.out
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

.PHONY: test

-include envs/etherlink-nairobi.env
#-include envs/etherlink-nairobi.env
-include envs/etherlink-oxford.env

BIN_DIR:=$$PWD/bin
TARGET_DIR=$$PWD/target
Expand Down Expand Up @@ -87,10 +88,10 @@ run-facade:
--entrypoint=/usr/bin/octez-evm-node \
-p 127.0.0.1:8545:8545 \
etherlink:$(OCTEZ_TAG) \
run \
proxy \
with \
endpoint \
run \
proxy \
with \
endpoint \
http://operator:8932 \
--rpc-addr "0.0.0.0" \
--rpc-port 8545
4 changes: 2 additions & 2 deletions build/etherlink/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ deploy_rollup() {
exit 0
fi
fi

if [ ! -f "/root/kernel.wasm" ]; then
echo "Kernel not found"
exit 1
fi
kernel="$(xxd -p "/root/kernel.wasm" | tr -d '\n')"

octez-client --endpoint "$endpoint" originate smart rollup "rollup" from operator of kind wasm_2_0_0 of type "(or (or (pair bytes (ticket (pair nat (option bytes)))) bytes) bytes)" with kernel "$kernel" --burn-cap 999 --force | tee originate.out
operator_address=$(octez-client --endpoint "$endpoint" show address "operator" 2>&1 | grep Hash | grep -oE "tz.*")
octez-smart-rollup-node --base-dir "$client_dir" init operator config for "rollup" with operators "$operator_address" --data-dir "$rollup_dir"
Expand Down
5 changes: 5 additions & 0 deletions envs/etherlink-oxford.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OCTEZ_TAG=master
OCTEZ_PROTO=Proxford
NETWORK=oxfordnet
TEZOS_REPO=https://gitlab.com/baking-bad/tezos.git
TEZOS_REPO_BRANCH=feat/token-deposits

0 comments on commit 02b0eb4

Please sign in to comment.