Skip to content

Commit

Permalink
feat: silius v0.7.0 (#55)
Browse files Browse the repository at this point in the history
* feat: silius v0.7.0
  • Loading branch information
Vid201 authored May 12, 2024
1 parent b6441a7 commit e0dccf5
Show file tree
Hide file tree
Showing 13 changed files with 112 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Each bundler to run has a folder and yml file [./bundlers](./bundlers) folder
- see the `runbundler/.env` for global settings, like `FUND` for funded addresses.
- The bundler-specific RPC calls (eth_ and debug_) should be exposed on `BUNDLER_URL`
- To test bundler startup script:
* `./runbundler/runbundler.sh {./runblers/aabundler/aabundler.yml} start` - start the bundler (along with node, and deployed contract)
* `./runbundler/runbundler.sh {./bundlers/aabundler/aabundler.yml} start` - start the bundler (along with node, and deployed contract)
* `down` - stop all docker images.
* (or any other docker-compose command, such as `logs`)

Expand Down
2 changes: 1 addition & 1 deletion bundlers/silius/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BUNDLER_ACCOUNT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
BOOT_ENR=enr:-Iu4QKWfapgYurSypiE8Oa1ZdOyK8lC2BLytkihEd-b5QwWtd-szKPuncudIbUUQ9wHMhZk-cbzTsEUxS4QiTtrYKPwBgmlkgnY0gmlwhMCoZGWJc2VjcDI1NmsxoQJEdmi_LPA0b8j2BHHDsyGi_Y086wDplSGNVe96M4sWnIN0Y3CCIyiDdWRwgiMo
33 changes: 33 additions & 0 deletions bundlers/silius/p2p-boot.yml-v06
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
services:
bundler:
ports: [ "3000:3000" ]
image: ghcr.io/silius-rs/silius:latest
command: node
--eth-client-address $ETH_RPC_URL
--datadir data/silius
--mnemonic-file /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--entry-points $ENTRYPOINT
--http --http.addr 0.0.0.0
--http.port 3000
--http.api eth,debug,web3
--poll-interval "5"
--enable-p2p
--p2p.addr $BUNDLER_IP
--p2p.baddr $BUNDLER_IP
volumes:
- ./keys:/root
- ./p2p-boot:/data/silius/p2p
networks:
default:
p2p:
ipv4_address: $BUNDLER_IP

bundler-verify:
image: docker
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
depends_on:
bundler:
condition: service_started
command: echo docker exec runbundler-bundler-1 cat /data/silius/p2p/node-enr
1 change: 1 addition & 0 deletions bundlers/silius/p2p-boot/node-enr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enr:-Iu4QKWfapgYurSypiE8Oa1ZdOyK8lC2BLytkihEd-b5QwWtd-szKPuncudIbUUQ9wHMhZk-cbzTsEUxS4QiTtrYKPwBgmlkgnY0gmlwhMCoZGWJc2VjcDI1NmsxoQJEdmi_LPA0b8j2BHHDsyGi_Y086wDplSGNVe96M4sWnIN0Y3CCIyiDdWRwgiMo
1 change: 1 addition & 0 deletions bundlers/silius/p2p-boot/node-key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
 ��!4}���@;���v��|�� rC�<�ψRd�
25 changes: 25 additions & 0 deletions bundlers/silius/p2p-peer.yml-v06
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
bundler:
ports: [ "3001:3000" ]
image: ghcr.io/silius-rs/silius:latest
command: node
--eth-client-address $ETH_RPC_URL
--datadir data/silius
--mnemonic-file /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--entry-points $ENTRYPOINT
--http --http.addr 0.0.0.0
--http.port 3000
--http.api eth,debug,web3
--poll-interval "5"
--enable-p2p
--bootnodes $BOOT_ENR
--p2p.addr $BUNDLER2_IP
--p2p.baddr $BUNDLER2_IP
volumes:
- ./keys:/root
- ./p2p-peer:/data/silius/p2p
networks:
default:
p2p:
ipv4_address: $BUNDLER2_IP
1 change: 1 addition & 0 deletions bundlers/silius/p2p-peer/node-enr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enr:-Iu4QBIlfz_fSAGGmUkgPxFEvv_kgplO49l08Rg-la7v1zJoDYqvvatwDLl4Rk6xGXt0-OAd9Jakg-P8LNfPna-cvwABgmlkgnY0gmlwhMCoZGaJc2VjcDI1NmsxoQOKdUBFbAaoQIlmcvxyt2qn3yEwQK5fA3AUKElwyK1Zg4N0Y3CCIyiDdWRwgiMo
2 changes: 2 additions & 0 deletions bundlers/silius/p2p-peer/node-key
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 ǁ�%#J�
�c��u!��LʆI����%ev��
28 changes: 28 additions & 0 deletions bundlers/silius/silius.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:
bundler:
image: ghcr.io/silius-rs/silius:v07-latest
command:
- node
- --eth-client-address
- $ETH_RPC_URL
- --datadir
- data/silius
- --mnemonic-file
- /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- --beneficiary
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
- --entry-points
- $ENTRYPOINT
- --http
- --http.addr
- 0.0.0.0
- --http.port
- "3000"
- --http.api
- eth,debug,web3
- --poll-interval
- "5"
ports: [ '3000:3000' ]
volumes:
- ./keys:/root

6 changes: 4 additions & 2 deletions bundlers/silius/silius.yml-v06
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ services:
bundler:
image: ghcr.io/silius-rs/silius:latest
command:
- bundler
- node
- --eth-client-address
- $ETH_RPC_URL
- --datadir
- data/silius
- --mnemonic-file
- /root/${BUNDLER_ACCOUNT}
- /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- --beneficiary
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
- --entry-points
Expand All @@ -20,6 +20,8 @@ services:
- "3000"
- --http.api
- eth,debug,web3
- --poll-interval
- "5"
ports: [ '3000:3000' ]
volumes:
- ./keys:/root
Expand Down
4 changes: 4 additions & 0 deletions tests/silius-silius.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export BUNDLER_YML=bundlers/silius/p2p-boot.yml
export BUNDLER2_YML=bundlers/silius/p2p-peer.yml

export ENVFILE=bundlers/silius/.env
5 changes: 5 additions & 0 deletions tests/silius-skandha.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export BUNDLER_YML=bundlers/silius/p2p-boot.yml
export BUNDLER2_YML=bundlers/skandha/p2p-peer.yml

# the peer should use this enr to connect to
export ENVFILE=bundlers/silius/.env
6 changes: 6 additions & 0 deletions tests/skandha-silius.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export BUNDLER_YML=bundlers/skandha/p2p-boot.yml
export BUNDLER2_YML=bundlers/silius/p2p-peer.yml

#the skanha env file defines the BOOT_ENR that is exposed by p2p-boot.
# the peer should use this enr to connect to
export ENVFILE=bundlers/skandha/.env

0 comments on commit e0dccf5

Please sign in to comment.