-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requirements update and deployment zksync mainnet scripts
- Loading branch information
Showing
10 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
crawlers/deploy/zksync-era-historical-crawl-events.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=ZkSync Era historical crawler events | ||
After=network.target | ||
StartLimitIntervalSec=300 | ||
StartLimitBurst=3 | ||
|
||
[Service] | ||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl | ||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env | ||
Restart=on-failure | ||
RestartSec=15s | ||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli --access-id "${NB_CONTROLLER_ACCESS_ID}" historical-crawl --blockchain-type zksync_era --find-deployed-blocks --end 0 --tasks-journal --only-events | ||
CPUWeight=70 | ||
SyslogIdentifier=zksync-era-historical-crawl-events | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Runs events historical crawler on ZkSync Era | ||
|
||
[Timer] | ||
OnBootSec=60s | ||
OnUnitActiveSec=10m | ||
|
||
[Install] | ||
WantedBy=timers.target |
17 changes: 17 additions & 0 deletions
17
crawlers/deploy/zksync-era-historical-crawl-transactions.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=ZkSync Era historical crawler transactions | ||
After=network.target | ||
StartLimitIntervalSec=300 | ||
StartLimitBurst=3 | ||
|
||
[Service] | ||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl | ||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env | ||
Restart=on-failure | ||
RestartSec=15s | ||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli --access-id "${NB_CONTROLLER_ACCESS_ID}" historical-crawl --blockchain-type zksync_era --find-deployed-blocks --end 0 --tasks-journal --only-functions | ||
CPUWeight=70 | ||
SyslogIdentifier=zksync-era-historical-crawl-transactions | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
9 changes: 9 additions & 0 deletions
9
crawlers/deploy/zksync-era-historical-crawl-transactions.timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Runs transactions historical crawler on ZkSync Era | ||
|
||
[Timer] | ||
OnBootSec=60s | ||
OnUnitActiveSec=10m | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Fill missing blocks at ZkSync Era database | ||
After=network.target | ||
|
||
[Service] | ||
Type=oneshot | ||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl | ||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env | ||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler --access-id "${NB_CONTROLLER_ACCESS_ID}" blocks missing --blockchain zksync_era -n | ||
CPUWeight=50 | ||
SyslogIdentifier=zksync-era-missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Fill missing blocks at ZkSync Era database | ||
|
||
[Timer] | ||
OnBootSec=120s | ||
OnUnitActiveSec=15m | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=ZkSync Era moonworm crawler | ||
After=network.target | ||
StartLimitIntervalSec=300 | ||
StartLimitBurst=3 | ||
|
||
[Service] | ||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl | ||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env | ||
Restart=on-failure | ||
RestartSec=15s | ||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli --access-id "${NB_CONTROLLER_ACCESS_ID}" crawl -b zksync_era --confirmations 20 --min-blocks-batch 20 | ||
CPUWeight=70 | ||
SyslogIdentifier=zksync-era-moonworm-crawler | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=ZkSync Era block with transactions synchronizer | ||
StartLimitIntervalSec=300 | ||
StartLimitBurst=3 | ||
After=network.target | ||
|
||
[Service] | ||
Restart=on-failure | ||
RestartSec=15s | ||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl | ||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env | ||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler --access-id "${NB_CONTROLLER_ACCESS_ID}" blocks synchronize --blockchain zksync_era -c 20 -j 2 | ||
CPUWeight=90 | ||
SyslogIdentifier=zksync-era-synchronize | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters