Skip to content

Commit

Permalink
Merge pull request #111 from G7DAO/add-game7-mainnet
Browse files Browse the repository at this point in the history
Add game7 mainnet
  • Loading branch information
Andrei-Dolgolev authored Nov 12, 2024
2 parents b92d9a2 + 6beeca1 commit 04d390d
Show file tree
Hide file tree
Showing 16 changed files with 2,399 additions and 11 deletions.
1,248 changes: 1,248 additions & 0 deletions blockchain/game7/game7.go

Large diffs are not rendered by default.

954 changes: 954 additions & 0 deletions blockchain/game7/game7_testnet_index_types.pb.go

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions blockchain/game7/game7_testnet_index_types.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
syntax = "proto3";

option go_package = "github.com/G7DAO/seer/blockchain/game7" ;


message Game7TransactionAccessList {
string address = 1;
repeated string storage_keys = 2;
}

// Represents a single transaction within a block
message Game7Transaction {
string hash = 1; // The hash of the transaction
uint64 block_number = 2; // The block number the transaction is in
string from_address = 3; // The address the transaction is sent from
string to_address = 4; // The address the transaction is sent to
string gas = 5; // The gas limit of the transaction
string gas_price = 6; // The gas price of the transaction
string max_fee_per_gas = 7; // Used as a field to match potential EIP-1559 transaction types
string max_priority_fee_per_gas = 8; // Used as a field to match potential EIP-1559 transaction types
string input = 9; // The input data of the transaction
string nonce = 10; // The nonce of the transaction
uint64 transaction_index = 11; // The index of the transaction in the block
uint64 transaction_type = 12; // Field to match potential EIP-1559 transaction types
string value = 13; // The value of the transaction
uint64 indexed_at = 14; // When the transaction was indexed by crawler
uint64 block_timestamp = 15; // The timestamp of this block
string block_hash = 16; // The hash of the block the transaction is in
string chain_id = 17; // Used as a field to match potential EIP-1559 transaction types
string v = 18; // Used as a field to match potential EIP-1559 transaction types
string r = 19; // Used as a field to match potential EIP-1559 transaction types
string s = 20; // Used as a field to match potential EIP-1559 transaction types
repeated Game7TransactionAccessList access_list = 21;
string y_parity = 22; // Used as a field to match potential EIP-1559 transaction types
repeated Game7EventLog logs = 23; // The logs generated by this transaction
}

// Represents a block in the blockchain
message Game7Block {
uint64 block_number = 1; // The block number
uint64 difficulty = 2; // The difficulty of this block
string extra_data = 3; // Extra data included in the block
uint64 gas_limit = 4; // The gas limit for this block
uint64 gas_used = 5; // The total gas used by all transactions in this block
string base_fee_per_gas = 6; // The base fee per gas for this block
string hash = 7; // The hash of this block
string logs_bloom = 8; // The logs bloom filter for this block
string miner = 9; // The address of the miner who mined this block
string nonce = 10; // The nonce of this block
string parent_hash = 11; // The hash of the parent block
string receipts_root = 12; // The root hash of the receipts trie
string sha3_uncles = 13; // The SHA3 hash of the uncles data in this block
uint64 size = 14; // The size of this block
string state_root = 15; // The root hash of the state trie
uint64 timestamp = 16;
string total_difficulty = 17; // The total difficulty of the chain until this block
string transactions_root = 18; // The root hash of the transactions trie
uint64 indexed_at = 19; // When the block was indexed by crawler
repeated Game7Transaction transactions = 20; // The transactions included in this block

string mix_hash = 21; // The timestamp of this block
string send_count = 22; // The number of sends in this block
string send_root = 23; // The root hash of the sends trie
uint64 l1_block_number = 24; // The block number of the corresponding L1 block
}

message Game7EventLog {
string address = 1; // The address of the contract that generated the log
repeated string topics = 2; // Topics are indexed parameters during log generation
string data = 3; // The data field from the log
uint64 block_number = 4; // The block number where this log was in
string transaction_hash = 5; // The hash of the transaction that generated this log
string block_hash = 6; // The hash of the block where this log was in
bool removed = 7; // True if the log was reverted due to a chain reorganization
uint64 log_index = 8; // The index of the log in the block
uint64 transaction_index = 9; // The index of the transaction in the block
}

message Game7BlocksBatch {
repeated Game7Block blocks = 1;

string seer_version = 2;
}
4 changes: 4 additions & 0 deletions blockchain/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/G7DAO/seer/blockchain/b3_sepolia"
seer_common "github.com/G7DAO/seer/blockchain/common"
"github.com/G7DAO/seer/blockchain/ethereum"
"github.com/G7DAO/seer/blockchain/game7"
"github.com/G7DAO/seer/blockchain/game7_orbit_arbitrum_sepolia"
"github.com/G7DAO/seer/blockchain/game7_testnet"
"github.com/G7DAO/seer/blockchain/imx_zkevm"
Expand Down Expand Up @@ -48,6 +49,9 @@ func NewClient(chain, url string, timeout int) (BlockchainClient, error) {
} else if chain == "arbitrum_sepolia" {
client, err := arbitrum_sepolia.NewClient(url, timeout)
return client, err
} else if chain == "game7" {
client, err := game7.NewClient(url, timeout)
return client, err
} else if chain == "game7_orbit_arbitrum_sepolia" {
client, err := game7_orbit_arbitrum_sepolia.NewClient(url, timeout)
return client, err
Expand Down
7 changes: 7 additions & 0 deletions blockchain/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ func CheckVariablesForBlockchains() error {
if MOONSTREAM_NODE_IMX_ZKEVM_SEPOLIA_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_IMX_ZKEVM_SEPOLIA_A_EXTERNAL_URI environment variable is required")
}

MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI := os.Getenv("MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI")
if MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI environment variable is required")
}

MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI := os.Getenv("MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI")
if MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI environment variable is required")
Expand All @@ -80,6 +86,7 @@ func CheckVariablesForBlockchains() error {
"arbitrum_sepolia": MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
"game7_orbit_arbitrum_sepolia": MOONSTREAM_NODE_GAME7_ORBIT_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
"game7_testnet": MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI,
"game7": MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI,
"xai": MOONSTREAM_NODE_XAI_A_EXTERNAL_URI,
"xai_sepolia": MOONSTREAM_NODE_XAI_SEPOLIA_A_EXTERNAL_URI,
"mantle": MOONSTREAM_NODE_MANTLE_A_EXTERNAL_URI,
Expand Down
7 changes: 7 additions & 0 deletions crawler/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ func CheckVariablesForCrawler() error {
if MOONSTREAM_NODE_IMX_ZKEVM_SEPOLIA_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_IMX_ZKEVM_SEPOLIA_A_EXTERNAL_URI environment variable is required")
}

MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI := os.Getenv("MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI")
if MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI environment variable is required")
}

MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI := os.Getenv("MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI")
if MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI == "" {
return fmt.Errorf("MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI environment variable is required")
Expand All @@ -100,6 +106,7 @@ func CheckVariablesForCrawler() error {
"arbitrum_sepolia": MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
"game7_orbit_arbitrum_sepolia": MOONSTREAM_NODE_GAME7_ORBIT_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
"game7_testnet": MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI,
"game7": MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI,
"xai": MOONSTREAM_NODE_XAI_A_EXTERNAL_URI,
"xai_sepolia": MOONSTREAM_NODE_XAI_SEPOLIA_A_EXTERNAL_URI,
"mantle": MOONSTREAM_NODE_MANTLE_A_EXTERNAL_URI,
Expand Down
41 changes: 32 additions & 9 deletions deploy/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ USER_SYSTEMD_DIR="${USER_SYSTEMD_DIR:-/home/ubuntu/.config/systemd/user}"
SEER_CRAWLER_ARBITRUM_ONE_SERVICE_FILE="seer-crawler-arbitrum-one.service"
SEER_CRAWLER_ARBITRUM_SEPOLIA_SERVICE_FILE="seer-crawler-arbitrum-sepolia.service"
SEER_CRAWLER_ETHEREUM_SERVICE_FILE="seer-crawler-ethereum.service"
SEEER_CRAWLER_GAME7_SERVICE_FILE="seer-crawler-game7.service"
SEER_CRAWLER_GAME7_TESTNET_SERVICE_FILE="seer-crawler-game7-testnet.service"
SEER_CRAWLER_MANTLE_SEPOLIA_SERVICE_FILE="seer-crawler-mantle-sepolia.service"
SEER_CRAWLER_MANTLE_SERVICE_FILE="seer-crawler-mantle.service"
Expand All @@ -43,6 +44,7 @@ SEER_SYNCHRONIZER_ETHEREUM_SERVICE_FILE="seer-synchronizer-ethereum.service"
SEER_SYNCHRONIZER_POLYGON_SERVICE_FILE="seer-synchronizer-polygon.service"
SEER_SYNCHRONIZER_ARBITRUM_ONE_SERVICE_FILE="seer-synchronizer-arbitrum-one.service"
SEER_SYNCHRONIZER_ARBITRUM_SEPOLIA_SERVICE_FILE="seer-synchronizer-arbitrum-sepolia.service"
SEER_SYNCHRONIZER_GAME7_SERVICE_FILE="seer-synchronizer-game7.service"
SEER_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE="seer-synchronizer-game7-testnet.service"
SEER_SYNCHRONIZER_MANTLE_SEPOLIA_SERVICE_FILE="seer-synchronizer-mantle-sepolia.service"
SEER_SYNCHRONIZER_MANTLE_SERVICE_FILE="seer-synchronizer-mantle.service"
Expand All @@ -63,6 +65,8 @@ SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_ONE_SERVICE_FILE="seer-historical-synchron
SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_ONE_TIMER_FILE="seer-historical-synchronizer-arbitrum-one.timer"
SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_SEPOLIA_SERVICE_FILE="seer-historical-synchronizer-arbitrum-sepolia.service"
SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_SEPOLIA_TIMER_FILE="seer-historical-synchronizer-arbitrum-sepolia.timer"
SEER_HISTORICAL_SYNCHRONIZER_GAME7_SERVICE_FILE="seer-historical-synchronizer-game7.service"
SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE="seer-historical-synchronizer-game7.timer"
SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE="seer-historical-synchronizer-game7-testnet.service"
SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE="seer-historical-synchronizer-game7-testnet.timer"
SEER_HISTORICAL_SYNCHRONIZER_MANTLE_SEPOLIA_SERVICE_FILE="seer-historical-synchronizer-mantle-sepolia.service"
Expand Down Expand Up @@ -118,6 +122,9 @@ echo "MOONSTREAM_NODE_ARBITRUM_ONE_A_EXTERNAL_URI=${MOONSTREAM_NODE_ARBITRUM_ONE
MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI=$(gcloud secrets versions access latest --secret=MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI)
echo "MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI=${MOONSTREAM_NODE_ARBITRUM_SEPOLIA_A_EXTERNAL_URI}" >> "${PARAMETERS_ENV_PATH}"

MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI=$(gcloud secrets versions access latest --secret=MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI)
echo "MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI=${MOONSTREAM_NODE_GAME7_A_EXTERNAL_URI}" >> "${PARAMETERS_ENV_PATH}"

MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI=$(gcloud secrets versions access latest --secret=MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI)
echo "MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI=${MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI}" >> "${PARAMETERS_ENV_PATH}"

Expand Down Expand Up @@ -265,6 +272,14 @@ cp "${SCRIPT_DIR}/${SEER_CRAWLER_IMX_ZKEVM_SEPOLIA_SERVICE_FILE}" "${USER_SYSTEM
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_CRAWLER_IMX_ZKEVM_SEPOLIA_SERVICE_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer crawler for Game7 blockchain service definition with ${SEEER_CRAWLER_GAME7_SERVICE_FILE}"
chmod 644 "${SCRIPT_DIR}/${SEEER_CRAWLER_GAME7_SERVICE_FILE}"
cp "${SCRIPT_DIR}/${SEEER_CRAWLER_GAME7_SERVICE_FILE}" "${USER_SYSTEMD_DIR}/${SEEER_CRAWLER_GAME7_SERVICE_FILE}"
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEEER_CRAWLER_GAME7_SERVICE_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer crawler for Game7 Testnet blockchain service definition with ${SEER_CRAWLER_GAME7_TESTNET_SERVICE_FILE}"
Expand Down Expand Up @@ -381,6 +396,14 @@ cp "${SCRIPT_DIR}/${SEER_SYNCHRONIZER_IMX_ZKEVM_SEPOLIA_SERVICE_FILE}" "${USER_S
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_SYNCHRONIZER_IMX_ZKEVM_SEPOLIA_SERVICE_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer synchronizer for Game7 blockchain service definition with ${SEER_SYNCHRONIZER_GAME7_SERVICE_FILE}"
chmod 644 "${SCRIPT_DIR}/${SEER_SYNCHRONIZER_GAME7_SERVICE_FILE}"
cp "${SCRIPT_DIR}/${SEER_SYNCHRONIZER_GAME7_SERVICE_FILE}" "${USER_SYSTEMD_DIR}/${SEER_SYNCHRONIZER_GAME7_SERVICE_FILE}"
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_SYNCHRONIZER_GAME7_SERVICE_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer synchronizer for Game7 Testnet blockchain service definition with ${SEER_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}"
Expand Down Expand Up @@ -444,6 +467,15 @@ cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_SEPOLIA_TIMER_FILE}" "
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_HISTORICAL_SYNCHRONIZER_ARBITRUM_SEPOLIA_TIMER_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer historical synchronizer for Game7 blockchain service and timer with: ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_SERVICE_FILE}, ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE}"
chmod 644 "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_SERVICE_FILE}" "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE}"
cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_SERVICE_FILE}" "${USER_SYSTEMD_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_SERVICE_FILE}"
cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE}" "${USER_SYSTEMD_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE}"
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TIMER_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer historical synchronizer for Game7 Testnet blockchain service and timer with: ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}, ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}"
Expand Down Expand Up @@ -516,15 +548,6 @@ cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_IMX_ZKEVM_SEPOLIA_TIMER_FILE}"
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_HISTORICAL_SYNCHRONIZER_IMX_ZKEVM_SEPOLIA_TIMER_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer historical synchronizer for Game7 Testnet blockchain service and timer with: ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}, ${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}"
chmod 644 "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}" "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}"
cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}" "${USER_SYSTEMD_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_SERVICE_FILE}"
cp "${SCRIPT_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}" "${USER_SYSTEMD_DIR}/${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}"
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart "${SEER_HISTORICAL_SYNCHRONIZER_GAME7_TESTNET_TIMER_FILE}"

echo
echo
echo -e "${PREFIX_INFO} Replacing existing seer historical synchronizer for B3 blockchain service and timer with: ${SEER_HISTORICAL_SYNCHRONIZER_B3_SERVICE_FILE}, ${SEER_HISTORICAL_SYNCHRONIZER_B3_TIMER_FILE}"
Expand Down
2 changes: 1 addition & 1 deletion deploy/monitoring-seer-crawlers.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Restart=on-failure
RestartSec=15s
WorkingDirectory=/home/ubuntu/
EnvironmentFile=/home/ubuntu/seer-secrets/monitoring.env
ExecStart=/home/ubuntu/monitoring -plugin systemd -host "127.0.0.1" -port 7171 -healthcheck -server -threshold 3 -config /home/ubuntu/.monitoring/monitoring-seer-crawlers-config.json -service seer-crawler-arbitrum-one.service -service seer-crawler-arbitrum-sepolia.service -service seer-crawler-ethereum.service -service seer-crawler-imx-zkevm-sepolia.service -service seer-crawler-imx-zkevm.service -service seer-crawler-mantle-sepolia.service -service seer-crawler-mantle.service -service seer-crawler-polygon.service -service seer-crawler-sepolia.service -service seer-crawler-xai-sepolia.service -service seer-crawler-xai.service -service seer-synchronizer-arbitrum-one.service -service seer-synchronizer-arbitrum-sepolia.service -service seer-synchronizer-ethereum.service -service seer-synchronizer-imx-zkevm-sepolia.service -service seer-synchronizer-imx-zkevm.service -service seer-synchronizer-mantle-sepolia.service -service seer-synchronizer-mantle.service -service seer-synchronizer-polygon.service -service seer-synchronizer-sepolia.service -service seer-synchronizer-xai-sepolia.service -service seer-synchronizer-xai.service -service seer-crawler-game7-testnet.service -service seer-synchronizer-game7-testnet.service -service seer-crawler-b3.service -service seer-synchronizer-b3.service -service seer-crawler-b3-sepolia.service -service seer-synchronizer-b3-sepolia.service
ExecStart=/home/ubuntu/monitoring -plugin systemd -host "127.0.0.1" -port 7171 -healthcheck -server -threshold 3 -config /home/ubuntu/.monitoring/monitoring-seer-crawlers-config.json -service seer-crawler-arbitrum-one.service -service seer-crawler-arbitrum-sepolia.service -service seer-crawler-ethereum.service -service seer-crawler-imx-zkevm-sepolia.service -service seer-crawler-imx-zkevm.service -service seer-crawler-mantle-sepolia.service -service seer-crawler-mantle.service -service seer-crawler-polygon.service -service seer-crawler-sepolia.service -service seer-crawler-xai-sepolia.service -service seer-crawler-xai.service -service seer-synchronizer-arbitrum-one.service -service seer-synchronizer-arbitrum-sepolia.service -service seer-synchronizer-ethereum.service -service seer-synchronizer-imx-zkevm-sepolia.service -service seer-synchronizer-imx-zkevm.service -service seer-synchronizer-mantle-sepolia.service -service seer-synchronizer-mantle.service -service seer-synchronizer-polygon.service -service seer-synchronizer-sepolia.service -service seer-synchronizer-xai-sepolia.service -service seer-synchronizer-xai.service -service seer-crawler-game7-testnet.service -service seer-synchronizer-game7-testnet.service -service seer-crawler-b3.service -service seer-synchronizer-b3.service -service seer-crawler-b3-sepolia.service -service seer-synchronizer-b3-sepolia.service -service seer-crawler-game7.service -service seer-synchronizer-game7.service
CPUWeight=90
SyslogIdentifier=monitoring-seer-crawlers

Expand Down
16 changes: 16 additions & 0 deletions deploy/seer-crawler-game7.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Seer crawler service for Game7 blockchain
After=network.target
StartLimitIntervalSec=300
StartLimitBurst=3

[Service]
WorkingDirectory=/home/ubuntu/seer
EnvironmentFile=/home/ubuntu/seer-secrets/app.env
Restart=on-failure
RestartSec=15s
ExecStart=/home/ubuntu/seer/seer crawler --chain game7 --confirmations 0 --threads 2 --proto-time-limit 1 --retry-wait 1000 --retry-multiplier 1 --batch-size 0
SyslogIdentifier=seer-crawler-game7

[Install]
WantedBy=multi-user.target
16 changes: 16 additions & 0 deletions deploy/seer-historical-synchronizer-game7.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Seer historical synchronizer service for game7 blockchain
After=network.target
StartLimitIntervalSec=300
StartLimitBurst=3

[Service]
WorkingDirectory=/home/ubuntu/seer
EnvironmentFile=/home/ubuntu/seer-secrets/app.env
Restart=on-failure
RestartSec=15s
ExecStart=/home/ubuntu/seer/seer historical-sync --auto --chain game7
SyslogIdentifier=seer-historical-synchronizer-game7

[Install]
WantedBy=multi-user.target
9 changes: 9 additions & 0 deletions deploy/seer-historical-synchronizer-game7.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Runs seer historical synchronizer on game7

[Timer]
OnBootSec=60s
OnUnitActiveSec=10m

[Install]
WantedBy=timers.target
Loading

0 comments on commit 04d390d

Please sign in to comment.