Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

feat(bindings): update Go contract bindings #551

Merged
merged 4 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: update tests
  • Loading branch information
davidtaikocha committed Feb 15, 2024
commit c9419090f5df70f78e0b817bf48235c30bd2d99f
20 changes: 10 additions & 10 deletions internal/docker/docker_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ until cast chain-id --rpc-url "$L1_PROBE_URL" 2> /dev/null; do
sleep 1
done

# # check until L2 chain is ready
# L2_PROBE_URL=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==1 {print $2}')
# until cast chain-id --rpc-url "$L2_PROBE_URL" 2> /dev/null; do
# sleep 1
# done
# check until L2 chain is ready
L2_PROBE_URL=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==1 {print $2}')
until cast chain-id --rpc-url "$L2_PROBE_URL" 2> /dev/null; do
sleep 1
done

L1_NODE_PORT=$(docker port l1_node | grep '0.0.0.0' | awk -F ':' '{print $2}')
export L1_NODE_HTTP_ENDPOINT=http://localhost:$L1_NODE_PORT
export L1_NODE_WS_ENDPOINT=ws://localhost:$L1_NODE_PORT

export L2_EXECUTION_ENGINE_HTTP_ENDPOINT=http://localhost:28545
export L2_EXECUTION_ENGINE_WS_ENDPOINT=ws://localhost:28546
export L2_EXECUTION_ENGINE_AUTH_ENDPOINT=http://localhost:28551
export L2_EXECUTION_ENGINE_HTTP_ENDPOINT=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==1 {print $2}')
export L2_EXECUTION_ENGINE_WS_ENDPOINT=ws://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==2 {print $2}')
export L2_EXECUTION_ENGINE_AUTH_ENDPOINT=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==3 {print $2}')
export JWT_SECRET=$DIR/nodes/jwt.hex

echo -e "L1_NODE PORTS: \n$(docker port l1_node)"
# echo -e "L2_NODE PORTS: \n$(docker port l2_node)"
echo -e "L2_NODE PORTS: \n$(docker port l2_node)"

echo "L1_NODE_HTTP_ENDPOINT: $L1_NODE_HTTP_ENDPOINT"
echo "L1_NODE_WS_ENDPOINT: $L1_NODE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_HTTP_ENDPOINT: $L2_EXECUTION_ENGINE_HTTP_ENDPOINT"
echo "L2_EXECUTION_ENGINE_WS_ENDPOINT: $L2_EXECUTION_ENGINE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_AUTH_ENDPOINT: $L2_EXECUTION_ENGINE_AUTH_ENDPOINT"
echo "L2_EXECUTION_ENGINE_AUTH_ENDPOINT: $L2_EXECUTION_ENGINE_AUTH_ENDPOINT"
102 changes: 51 additions & 51 deletions internal/docker/nodes/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,54 +15,54 @@ services:
- --hardfork
- cancun

# l2_execution_engine:
# container_name: l2_node
# image: gcr.dockerproxy.com/evmchain/taiko-geth:taiko
# restart: unless-stopped
# pull_policy: always
# volumes:
# - .:/host
# ports:
# - "8545"
# - "8546"
# - "8551"
# command:
# - --nodiscover
# - --gcmode
# - archive
# - --syncmode
# - full
# - --datadir
# - /data/taiko-geth
# - --networkid
# - "167001"
# - --metrics
# - --metrics.expensive
# - --metrics.addr
# - "0.0.0.0"
# - --http
# - --http.addr
# - "0.0.0.0"
# - --http.vhosts
# - "*"
# - --http.corsdomain
# - "*"
# - --ws
# - --ws.addr
# - "0.0.0.0"
# - --ws.origins
# - "*"
# - --authrpc.addr
# - "0.0.0.0"
# - --authrpc.port
# - "8551"
# - --authrpc.vhosts
# - "*"
# - --authrpc.jwtsecret
# - /host/jwt.hex
# - --allow-insecure-unlock
# - --http.api
# - admin,debug,eth,net,web3,txpool,miner,taiko
# - --ws.api
# - admin,debug,eth,net,web3,txpool,miner,taiko
# - --taiko
l2_execution_engine:
container_name: l2_node
image: gcr.dockerproxy.com/evmchain/taiko-geth:taiko
restart: unless-stopped
pull_policy: always
volumes:
- .:/host
ports:
- "8545"
- "8546"
- "8551"
command:
- --nodiscover
- --gcmode
- archive
- --syncmode
- full
- --datadir
- /data/taiko-geth
- --networkid
- "167001"
- --metrics
- --metrics.expensive
- --metrics.addr
- "0.0.0.0"
- --http
- --http.addr
- "0.0.0.0"
- --http.vhosts
- "*"
- --http.corsdomain
- "*"
- --ws
- --ws.addr
- "0.0.0.0"
- --ws.origins
- "*"
- --authrpc.addr
- "0.0.0.0"
- --authrpc.port
- "8551"
- --authrpc.vhosts
- "*"
- --authrpc.jwtsecret
- /host/jwt.hex
- --allow-insecure-unlock
- --http.api
- admin,debug,eth,net,web3,txpool,miner,taiko
- --ws.api
- admin,debug,eth,net,web3,txpool,miner,taiko
- --taiko
2 changes: 1 addition & 1 deletion internal/docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source scripts/common.sh

DOCKER_SERVICE_LIST=("l1_node")
DOCKER_SERVICE_LIST=("l1_node" "l2_execution_engine")

# start docker compose service list
echo "start docker compose service: ${DOCKER_SERVICE_LIST[*]}"
Expand Down
Loading