add files
This commit is contained in:
1 parent
47592012d2
commit
1b8c67375f
18 files changed
+353
No files matched your search
@@ -0,0 +1,4 @@
|
||||
files/validator_keys
|
||||
files/wallet
|
||||
files/validator.txt
|
||||
.env
|
||||
@@ -0,0 +1,18 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
#Creates a genesis state for the beacon chain using a YAML configuration file and
|
||||
# a deterministic set of 64 validators.
|
||||
create-beacon-chain-genesis:
|
||||
image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl@sha256:f84353a4b6552dbb2cd0f3249d7b02f1a18ccdd56dfb36a233b5814832aa5707"
|
||||
command:
|
||||
- testnet
|
||||
- generate-genesis
|
||||
- --fork=bellatrix
|
||||
- --deposit-json-file=/files/validator_keys/$DEPOSIT_DATA
|
||||
- --num-validators=$NUM_VALIDATORS
|
||||
- --output-ssz=/files/genesis.ssz
|
||||
- --chain-config-file=/files/config.yml
|
||||
- --geth-genesis-json-in=/files/genesis.json
|
||||
- --geth-genesis-json-out=/files/genesis.json
|
||||
volumes:
|
||||
- ./files:/files
|
||||
@@ -0,0 +1,9 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
# Sets up the genesis configuration for the go-ethereum client from a JSON file.
|
||||
geth-genesis:
|
||||
image: "ethereum/client-go:latest"
|
||||
command: --datadir=/data init /files/genesis.json
|
||||
volumes:
|
||||
- ./root_signer:/data
|
||||
- ./files:/files
|
||||
@@ -0,0 +1,101 @@
|
||||
version: "2"
|
||||
services:
|
||||
geth1:
|
||||
image: "ethereum/client-go:latest"
|
||||
command:
|
||||
- --http
|
||||
- --http.api=eth,web3,txpool,net
|
||||
- --http.addr=0.0.0.0
|
||||
- --authrpc.vhosts=*
|
||||
- --http.vhosts=*
|
||||
- --http.corsdomain=*
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
- --datadir=/data
|
||||
- --syncmode=full
|
||||
- --networkid=${CHAIN_ID:-32382}
|
||||
- --nat=extip:$EXTERNAL_IP
|
||||
ports:
|
||||
- 2045:8545
|
||||
networks:
|
||||
- sanchain-pos_network
|
||||
volumes:
|
||||
- ./root_signer:/data
|
||||
- ./jwtsecret:/jwtsecret
|
||||
slasher:
|
||||
image: gcr.io/prysmaticlabs/prysm/slasher:stable
|
||||
restart: always
|
||||
networks:
|
||||
- sanchain-pos_network
|
||||
depends_on:
|
||||
- beacon-chain1
|
||||
command: --config-file=/data/slasher.yaml --accept-terms-of-use
|
||||
volumes:
|
||||
- ./root_slasher:/data
|
||||
|
||||
beacon-chain1:
|
||||
# image: "gcr.io/prysmaticlabs/prysm/beacon-chain:stable"
|
||||
image: repo.mind-dev.com/santiops/beacon-chain
|
||||
command:
|
||||
- --datadir=/data
|
||||
# No peers to sync with in this testnet, so setting to 0
|
||||
- --min-sync-peers=0
|
||||
- --minimum-peers-per-subnet=0
|
||||
- --genesis-state=/files/genesis.ssz
|
||||
- --bootstrap-node=enr:-LG4QK26GBVo37KwknBeQ8ubca9W4jHtjqeszlRJflvsJeoAXXuUK21U6Q_QTijYrAFbKExFw46mWG1Q344npc39UF-GAYpLbegxh2F0dG5ldHOIAAAAAAAAAACEZXRoMpD1pf1CAAAAAP__________gmlkgnY0gmlwhKweAAKJc2VjcDI1NmsxoQLyirWTAY--P_8vYX0N0AtINF5p37yEP6N8QI3EoCUBkYN1ZHCCdmY
|
||||
- --chain-config-file=/files/config.yml
|
||||
- --chain-id=${CHAIN_ID:-32382}
|
||||
- --rpc-host=0.0.0.0
|
||||
- --grpc-gateway-host=0.0.0.0
|
||||
- --monitoring-host=0.0.0.0
|
||||
- --grpc-gateway-corsdomain=*
|
||||
- --contract-deployment-block=0
|
||||
- --execution-endpoint=http://geth1:8551
|
||||
- --accept-terms-of-use
|
||||
- --jwt-secret=/jwtsecret
|
||||
- --suggested-fee-recipient=$WALLET
|
||||
- --verbosity=debug
|
||||
- --p2p-host-ip=$EXTERNAL_IP
|
||||
- --p2p-tcp-port=13000
|
||||
- --p2p-udp-port=13000
|
||||
- --p2p-static-id
|
||||
networks:
|
||||
- sanchain-pos_network
|
||||
ports:
|
||||
- 13000:13000/tcp
|
||||
- 13000:13000/udp
|
||||
- 172.17.0.1:3500:3500/tcp
|
||||
- 172.17.0.1:8080:8080/tcp
|
||||
volumes:
|
||||
- ./root_beaconchain:/data
|
||||
- ./files:/files
|
||||
- ./jwtsecret:/jwtsecret
|
||||
depends_on:
|
||||
geth1:
|
||||
condition: service_started
|
||||
|
||||
validator:
|
||||
image: "gcr.io/prysmaticlabs/prysm/validator:stable"
|
||||
command:
|
||||
- --beacon-rpc-provider=beacon-chain1:4000
|
||||
- --datadir=/data
|
||||
- --accept-terms-of-use
|
||||
- --chain-config-file=/files/config.yml
|
||||
- --wallet-dir=/files/wallet
|
||||
- --wallet-password-file=/files/validator.txt
|
||||
- --enable-builder
|
||||
networks:
|
||||
- sanchain-pos_network
|
||||
volumes:
|
||||
- ./root_validator:/data
|
||||
- ./files:/files
|
||||
depends_on:
|
||||
beacon-chain1:
|
||||
condition: service_started
|
||||
|
||||
networks:
|
||||
sanchain-pos_network:
|
||||
driver: bridge
|
||||
external: true
|
||||
driver_opts:
|
||||
com.docker.network.bridge.enable_ip_masquerade: 'false'
|
||||
@@ -0,0 +1,4 @@
|
||||
EXTERNAL_IP=80.93.179.130
|
||||
NUM_VALIDATORS=64
|
||||
WALLET=0x3747504D37F6e7cC7622abcbB943038FFCf1dF6D
|
||||
DEPOSIT_DATA=deposit_data-1694336385.json
|
||||
@@ -0,0 +1,54 @@
|
||||
CONFIG_NAME: sanchain-dev
|
||||
PRESET_BASE: interop
|
||||
|
||||
# Genesis
|
||||
GENESIS_FORK_VERSION: 0x20000089
|
||||
|
||||
# Altair
|
||||
ALTAIR_FORK_EPOCH: 0
|
||||
ALTAIR_FORK_VERSION: 0x20000090
|
||||
|
||||
# Merge
|
||||
BELLATRIX_FORK_EPOCH: 0
|
||||
BELLATRIX_FORK_VERSION: 0x20000091
|
||||
TERMINAL_TOTAL_DIFFICULTY: 0
|
||||
|
||||
CAPELLA_FORK_EPOCH: 2
|
||||
CAPELLA_FORK_VERSION: 0x20000092
|
||||
|
||||
# Time parameters
|
||||
SECONDS_PER_SLOT: 5
|
||||
SLOTS_PER_EPOCH: 16
|
||||
SECONDS_PER_ETH1_BLOCK: 6
|
||||
|
||||
# Deposit contract
|
||||
DEPOSIT_CONTRACT_ADDRESS: 0x4242424242424242424242424242424242424242
|
||||
|
||||
# validator
|
||||
ETH1_FOLLOW_DISTANCE: 1024
|
||||
# 2**4 (= 16)
|
||||
TARGET_AGGREGATORS_PER_COMMITTEE: 16
|
||||
# 2**0 (= 1)
|
||||
RANDOM_SUBNETS_PER_VALIDATOR: 1
|
||||
# 2**8 (= 256)
|
||||
EPOCHS_PER_RANDOM_SUBNET_SUBSCRIPTION: 256
|
||||
# 6 (estimate from xDai mainnet)
|
||||
|
||||
|
||||
|
||||
### time
|
||||
MIN_ATTESTATION_INCLUSION_DELAY: 1
|
||||
# 2**4 (= 16) slots 1.87 minutes
|
||||
MIN_SEED_LOOKAHEAD: 1
|
||||
# 2**2 (= 4) epochs 7.47 minutes
|
||||
MAX_SEED_LOOKAHEAD: 4
|
||||
# 2**6 (= 64) epochs ~2 hours
|
||||
EPOCHS_PER_ETH1_VOTING_PERIOD: 64
|
||||
# 2**13 (= 8,192) slots ~15.9 hours
|
||||
SLOTS_PER_HISTORICAL_ROOT: 8192
|
||||
# 2**8 (= 256) epochs ~8 hours
|
||||
MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256
|
||||
# 2**8 (= 256) epochs ~8 hours
|
||||
SHARD_COMMITTEE_PERIOD: 256
|
||||
# 2**2 (= 4) epochs 7.47 minutes
|
||||
MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4
|
||||
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"config": {
|
||||
"chainId": 32382,
|
||||
"homesteadBlock": 0,
|
||||
"daoForkSupport": true,
|
||||
"eip150Block": 0,
|
||||
"eip155Block": 0,
|
||||
"eip158Block": 0,
|
||||
"byzantiumBlock": 0,
|
||||
"constantinopleBlock": 0,
|
||||
"petersburgBlock": 0,
|
||||
"istanbulBlock": 0,
|
||||
"muirGlacierBlock": 0,
|
||||
"berlinBlock": 0,
|
||||
"londonBlock": 0,
|
||||
"arrowGlacierBlock": 0,
|
||||
"grayGlacierBlock": 0,
|
||||
"shanghaiTime": 1694337287,
|
||||
"terminalTotalDifficulty": 0,
|
||||
"clique": {
|
||||
"period": 5,
|
||||
"epoch": 30000
|
||||
}
|
||||
},
|
||||
"nonce": "0x0",
|
||||
"timestamp": "0x64fd8867",
|
||||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000123463a4b065722e99115d6c222f267d9cabb5240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||
"gasLimit": "0x1c9c380",
|
||||
"difficulty": "0x1",
|
||||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"coinbase": "0x0000000000000000000000000000000000000000",
|
||||
"alloc": {
|
||||
"1cbd3b2770909d4e10f157cabc84c7264073c9ec": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"23618e81e3f5cdf7f54c3d65f7fbc0abf5b21e8f": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"2546bcd3c84621e976d8185a91a922ae77ecec30": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"3747504d37f6e7cc7622abcbb943038ffcf1df6d": {
|
||||
"balance": "0x43c33c1937564800000"
|
||||
},
|
||||
"3c44cdddb6a900fa2b585dd299e03d12fa4293bc": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"405feda43494812ccfe727e79ac59e3fab389509": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"4242424242424242424242424242424242424242": {
|
||||
"code": "0x60806040526004361061003f5760003560e01c806301ffc9a71461004457806322895118146100b6578063621fd130146101e3578063c5f2892f14610273575b600080fd5b34801561005057600080fd5b5061009c6004803603602081101561006757600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061029e565b604051808215151515815260200191505060405180910390f35b6101e1600480360360808110156100cc57600080fd5b81019080803590602001906401000000008111156100e957600080fd5b8201836020820111156100fb57600080fd5b8035906020019184600183028401116401000000008311171561011d57600080fd5b90919293919293908035906020019064010000000081111561013e57600080fd5b82018360208201111561015057600080fd5b8035906020019184600183028401116401000000008311171561017257600080fd5b90919293919293908035906020019064010000000081111561019357600080fd5b8201836020820111156101a557600080fd5b803590602001918460018302840111640100000000831117156101c757600080fd5b909192939192939080359060200190929190505050610370565b005b3480156101ef57600080fd5b506101f8610fd0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561023857808201518184015260208101905061021d565b50505050905090810190601f1680156102655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027f57600080fd5b50610288610fe2565b6040518082815260200191505060405180910390f35b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061036957507f85640907000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b603087879050146103cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116ec6026913960400191505060405180910390fd5b60208585905014610428576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806116836036913960400191505060405180910390fd5b60608383905014610484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061175f6029913960400191505060405180910390fd5b670de0b6b3a76400003410156104e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806117396026913960400191505060405180910390fd5b6000633b9aca0034816104f457fe5b061461054b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806116b96033913960400191505060405180910390fd5b6000633b9aca00348161055a57fe5b04905067ffffffffffffffff80168111156105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806117126027913960400191505060405180910390fd5b60606105cb82611314565b90507f649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c589898989858a8a610600602054611314565b60405180806020018060200180602001806020018060200186810386528e8e82818152602001925080828437600081840152601f19601f82011690508083019250505086810385528c8c82818152602001925080828437600081840152601f19601f82011690508083019250505086810384528a818151815260200191508051906020019080838360005b838110156106a657808201518184015260208101905061068b565b50505050905090810190601f1680156106d35780820380516001836020036101000a031916815260200191505b508681038352898982818152602001925080828437600081840152601f19601f820116905080830192505050868103825287818151815260200191508051906020019080838360005b8381101561073757808201518184015260208101905061071c565b50505050905090810190601f1680156107645780820380516001836020036101000a031916815260200191505b509d505050505050505050505050505060405180910390a1600060028a8a600060801b6040516020018084848082843780830192505050826fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff1916815260100193505050506040516020818303038152906040526040518082805190602001908083835b6020831061080e57805182526020820191506020810190506020830392506107eb565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015610850573d6000803e3d6000fd5b5050506040513d602081101561086557600080fd5b8101908080519060200190929190505050905060006002808888600090604092610891939291906115da565b6040516020018083838082843780830192505050925050506040516020818303038152906040526040518082805190602001908083835b602083106108eb57805182526020820191506020810190506020830392506108c8565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa15801561092d573d6000803e3d6000fd5b5050506040513d602081101561094257600080fd5b8101908080519060200190929190505050600289896040908092610968939291906115da565b6000801b604051602001808484808284378083019250505082815260200193505050506040516020818303038152906040526040518082805190602001908083835b602083106109cd578051825260208201915Line truncated
|
||||
"balance": "0x0"
|
||||
},
|
||||
"5678e9e827b3be0e3d4b910126a64a697a148267": {
|
||||
"balance": "0x43c33c1937564800000"
|
||||
},
|
||||
"70997970c51812dc3a010c7d01b50e0d17dc79c8": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"71be63f3384f5fb98995898a86b02fb2426c5788": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"8626f6940e2eb28930efb4cef49b2d1f2c9c1199": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"90f79bf6eb2c4f870365e785982e1f101e93b906": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"976ea74026e726554db657fa54763abd0c3a0aa9": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"9965507d1a55bcc2695c58ba16fb37d819b0a4dc": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"a0ee7a142d267c1f36714e4a8f75612f20a79720": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"bcd4042de499d14e55001ccbb24a551f3b954096": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"bda5747bfd65f08deb54cb465eb87d40e51b197e": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"cd3b766ccdd6ae721141f452c550ca635964ce71": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"dd2fd4581271e230360230f9337d5c0430bf44c0": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"df3e18d64bc6a983f673ab319ccae4f1a57c7097": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"f39fd6e51aad88f6f4ce6ab8827279cfffb92266": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"fabb0ac9d68b0b445fb7357272ff202c5651694a": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
},
|
||||
"ff47046f8bc8203eba036d37122998071be6ffcf": {
|
||||
"balance": "0x21e19e0c9bab2400000"
|
||||
}
|
||||
},
|
||||
"number": "0x0",
|
||||
"gasUsed": "0x0",
|
||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"baseFeePerGas": null,
|
||||
"excessBlobGas": null,
|
||||
"blobGasUsed": null
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
0xd2853d11bd0383a21ea98d3e53e6625f0871f041374c3ec186ee3aa0f53a5505
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,13 @@
|
||||
############################################################
|
||||
##
|
||||
## Read up on parameters on
|
||||
## https://docs.prylabs.network/docs/prysm-usage/parameters/
|
||||
##
|
||||
############################################################
|
||||
|
||||
datadir: /data/slacher
|
||||
|
||||
##############
|
||||
# Connectivity
|
||||
beacon-rpc-provider: beacon-chain1:4000
|
||||
monitoring-host: 0.0.0.0
|
||||
Whitespace-only changes.
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose stop
|
||||
docker compose rm -f
|
||||
|
||||
rm -rf root_beaconchain/*
|
||||
|
||||
rm -rf root_validator/*
|
||||
|
||||
rm -rf root_signer/geth
|
||||
rm -rf root_slasher/slache
|
||||
|
||||
rm -rf files/genesis.ssz
|
||||
|
||||
docker compose -f docker-compose-create-beaconchain-node.yml up -d
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf files/validator_keys
|
||||
docker run -it --rm -v $(pwd)/files/validator_keys:/app/validator_keys staking-deposit new-mnemonic --num_validators=$NUM_VALIDATORS --folder=/app --devnet_chain_setting='{"network_name":"sanchain-dev","genesis_fork_version":"0x20000089","genesis_validator_root": "0x15b699aab9e7ba7d4afd5ff9dd1083646d2f3f33b15878d11f859e374ae069ee"}' --eth1_withdrawal_address=$WALLET
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf files/wallet
|
||||
|
||||
docker run -it --rm -v $(pwd)/files:/files gcr.io/prysmaticlabs/prysm/validator:stable \
|
||||
wallet create --wallet-dir=/files/wallet --wallet-password-file=/files/validator.txt --keymanager-kind=imported --accept-terms-of-use
|
||||
docker run -it --rm -v $(pwd)/files:/files gcr.io/prysmaticlabs/prysm/validator:stable \
|
||||
accounts import --accept-terms-of-use --keys-dir=/files/validator_keys --wallet-dir=/files/wallet
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose -f docker-compose-create-geth-node.yml up -d
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose stop
|
||||
docker compose rm -f
|
||||
|
||||
rm -rf root_beaconchain/*
|
||||
rm -rf root_validator/*
|
||||
rm -rf root_signer/geth
|
||||
rm -rf root_slasher/slache
|
||||
Reference in new issue
Block a user