Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod Sync #4339

Merged
merged 168 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
179ce82
feat: do not cache the sdks to make it possible to have different cli…
0xksure May 4, 2023
9e9942b
feat: update swapandxcall addresses
liu-zhipeng May 9, 2023
38ba6ab
put back yarn release and yarnrc
0xksure May 9, 2023
fefb8dd
Add router
rhlsthrm May 10, 2023
af29140
Prep release
rhlsthrm May 10, 2023
b1a4d65
tf configs for prover read replica
carlomazzaferro May 10, 2023
4198fd1
fix typo
carlomazzaferro May 10, 2023
d1abbae
Merge pull request #4186 from connext/feat/use-read-replica-for-prover
carlomazzaferro May 10, 2023
1e08af4
Merge branch 'testnet-prod'
rhlsthrm May 10, 2023
38095f8
feat: create utility to find asset record in chain data
LayneHaber May 10, 2023
dd4e138
refactor: use created utility in all cases to ensure string mismatch …
LayneHaber May 10, 2023
e769259
fix: handle checksum failures
LayneHaber May 10, 2023
feded62
chore: add unit tests for helper
LayneHaber May 10, 2023
0dfcdbf
fix: build
LayneHaber May 10, 2023
a17f241
Install pg_cron
just-a-node May 10, 2023
3be4c2f
Create cron jobs
just-a-node May 10, 2023
4d04fd8
Fix name and tweak apply method
just-a-node May 10, 2023
d5aa3d9
fix: remaining .only
LayneHaber May 10, 2023
466f96b
Merge pull request #4194 from connext/hotfix-decimals
LayneHaber May 10, 2023
424c072
ops: match mainnet prod prover memory
LayneHaber May 10, 2023
10c8b1b
Merge pull request #4197 from connext/main
LayneHaber May 11, 2023
30a0c88
Docker container for postgres with pg_cron
just-a-node May 11, 2023
5ff9ee4
Schema update
just-a-node May 11, 2023
6e7f046
Local DB image with pg_cron
just-a-node May 11, 2023
1059472
Use custom pg image with pg_cron
just-a-node May 11, 2023
616354e
Readme update
just-a-node May 11, 2023
c8a969f
Merge branch 'prod' into testnet-prod
rhlsthrm May 11, 2023
d2736da
Fix query
rhlsthrm May 11, 2023
aff4ff6
Fix query
rhlsthrm May 11, 2023
74dbd1c
Build db
rhlsthrm May 11, 2023
88d29cc
Change postgres image
rhlsthrm May 11, 2023
005ee33
Database image
rhlsthrm May 11, 2023
307d12f
Fix conf
rhlsthrm May 11, 2023
92afc8c
Fix package.json
rhlsthrm May 11, 2023
62648fa
Merge branch 'main' into 4148-deploy-midas-to-other-chains
liu-zhipeng May 11, 2023
31e166b
Merge pull request #4205 from connext/4148-deploy-midas-to-other-chains
liu-zhipeng May 11, 2023
03a61ac
bump chain-abstraction sdk version
liu-zhipeng May 11, 2023
8f31dfc
bump chain-abstraction sdk - 18
liu-zhipeng May 11, 2023
47f99aa
Mirror to mainnet
just-a-node May 11, 2023
fda8371
Use module output for parameter group name
just-a-node May 11, 2023
1fa6b1d
Revert carto image env vars
just-a-node May 11, 2023
dbf4def
Merge pull request #4203 from connext/4147-investigate-cartographer-data
LayneHaber May 11, 2023
16dacf8
Merge branch 'main' of https://github.com/connext/monorepo into 4145-…
just-a-node May 11, 2023
73cff1b
Merge pull request #4199 from connext/4145-pg-cron
just-a-node May 11, 2023
205d319
Merge pull request #4209 from connext/main
just-a-node May 11, 2023
dbeaebd
Use explicit parameter group dependency
just-a-node May 12, 2023
ee34d41
Merge pull request #4211 from connext/rds-param-group
just-a-node May 12, 2023
70da857
Ops readme update
just-a-node May 12, 2023
48c2354
Mirror the param group change to mainnet
just-a-node May 12, 2023
32de5e8
Merge pull request #4213 from connext/main
sanchaymittal May 12, 2023
645eec1
v2.0.3: stable version release
sanchaymittal May 12, 2023
cb2e3db
Merge pull request #4102 from 0xksure/feature/nocache-sdks
sanchaymittal May 12, 2023
adb1879
v2.0.3-alpha.1 alpha release
sanchaymittal May 12, 2023
25a2a5a
v2.0.4-alpha.1 alpha release
sanchaymittal May 12, 2023
4787284
Change to pending-reboot
rhlsthrm May 12, 2023
734678a
Merge branch 'testnet-prod'
rhlsthrm May 12, 2023
6880fba
v2.0.4-alpha.2 alpha release
sanchaymittal May 12, 2023
1394cbf
Add ERD for reference
just-a-node May 12, 2023
a6eae05
Increase mem
rhlsthrm May 15, 2023
5c7b9ea
WIP: sdk-server
carlomazzaferro May 15, 2023
ec01edd
fix: handle empty chainData cases.
sanchaymittal May 16, 2023
688c868
Update fastpath.ts
wanglonghong May 16, 2023
c6a729b
rmv: mnemonic (#4230)
sanchaymittal May 16, 2023
fa1b541
Merge branch 'main' of https://github.com/connext/nxtp into feat/sdk-…
carlomazzaferro May 16, 2023
e348afe
remove mnemonic
carlomazzaferro May 16, 2023
57ce8c6
Merge pull request #4229 from connext/feat/sdk-server-deployment
carlomazzaferro May 16, 2023
a317b51
Merge pull request #4235 from connext/handle-empty-chaindata
sanchaymittal May 16, 2023
4b1cc4f
increase timeouts (#4226)
carlomazzaferro May 17, 2023
f8f8b00
Merge branch 'testnet-prod'
rhlsthrm May 17, 2023
5188bbd
testnet prod sync (#4257)
May 17, 2023
6caafdc
Merge branch 'prod' into testnet-prod
rhlsthrm May 17, 2023
ff25f2b
Merge branch 'testnet-prod' of github.com:connext/monorepo into testn…
rhlsthrm May 17, 2023
33d8b50
Sequencer cache persists (#4245)
wanglonghong May 17, 2023
2f5b603
Testnet sync (#4259)
May 17, 2023
50d8c24
Fix lambda
rhlsthrm May 17, 2023
cae1aac
Bump DB
rhlsthrm May 17, 2023
2c3b195
Add logging
rhlsthrm May 17, 2023
16dd646
Batch pulling from the rabbitmq using amqplib (#4216)
wanglonghong May 17, 2023
4341123
Merge branch 'testnet-prod'
rhlsthrm May 17, 2023
31b58b9
ci(test): no need to include it
wanglonghong May 17, 2023
978f06d
Testnet-prod (#4261)
May 17, 2023
d0b9a7c
feat: implement cache
wanglonghong May 17, 2023
95aef7c
refactor: spokeSMT and hubSMT creation
wanglonghong May 17, 2023
997f2a4
fix: queue limit setup
wanglonghong May 17, 2023
ffc4e4f
Merge branch 'testnet-prod' into main
wanglonghong May 17, 2023
a5a3484
Testnet (#4264)
May 17, 2023
b3570c6
Fix pending transfers query
preethamr May 18, 2023
c740264
Merge pull request #4265 from connext/fix_carto_query
preethamr May 18, 2023
8fca20a
Merge pull request #4266 from connext/main
preethamr May 18, 2023
fdc7ead
chore: add try/catch for database calls.
sanchaymittal May 18, 2023
65e161f
chore: add try/catch for database for error status
sanchaymittal May 18, 2023
c29c7dd
chore: add try/catch for database for saveTransfers
sanchaymittal May 18, 2023
272506b
chore: add try/catch for database for simulation
sanchaymittal May 18, 2023
038f910
feat: batchProverSize per domain
wanglonghong May 18, 2023
43b701a
chore: remove console logs
wanglonghong May 18, 2023
c179c40
feat: pick up the available aggregate roots
wanglonghong May 18, 2023
1ae4ae7
fix: compare
wanglonghong May 18, 2023
755f4c2
ci: batchsize
wanglonghong May 18, 2023
56f2dc9
ci(test): coverage
wanglonghong May 18, 2023
1c67299
ci: remove older dupe publish action
just-a-node May 18, 2023
2207318
ci: subpackages can differ in version tags
just-a-node May 19, 2023
d3b2292
ci(test): fix
wanglonghong May 19, 2023
fd957a8
ci: typo
just-a-node May 19, 2023
7a0c420
ci(test): coverage
wanglonghong May 19, 2023
00b0b16
Merge pull request #4269 from connext/fix-build-workflow
just-a-node May 19, 2023
7a17c0a
fix: create external swap template
liu-zhipeng May 19, 2023
2ad3a30
fix: lpTokenAmount of removeOneToken
liu-zhipeng May 19, 2023
0ed025e
fix: remove local setup
wanglonghong May 19, 2023
c5ecec8
Merge pull request #4263 from connext/improve-message-verification
wanglonghong May 19, 2023
9859297
Testnet prod sync (#4273)
wanglonghong May 19, 2023
8a15cda
feat: staging subgraph for lp token
liu-zhipeng May 19, 2023
448e433
fix: LpToken subgraph
liu-zhipeng May 19, 2023
54aadf7
feat: add snapshot to lp transfer events
liu-zhipeng May 19, 2023
d8231df
feat: v0 stableswap subgraph
liu-zhipeng May 19, 2023
da0c931
feat: graph-client build
liu-zhipeng May 19, 2023
7cabe76
Revert "feat: graph-client build"
liu-zhipeng May 19, 2023
e98ee5e
feat: rebuild graph-client
liu-zhipeng May 19, 2023
97894c3
feat: migration for lp transfers
liu-zhipeng May 19, 2023
7296f96
Merge branch 'main' into 4270-track-stable-swap-lp-token-balance-on-s…
liu-zhipeng May 19, 2023
f5e9086
feat: database for lp transfers
liu-zhipeng May 19, 2023
d8a0c49
feat: subgraph for lp transfers
liu-zhipeng May 19, 2023
1658437
feat: poller for lp transfer
liu-zhipeng May 19, 2023
2ec6b5f
Merge pull request #4267 from connext/4244-handle-database
sanchaymittal May 19, 2023
c16ff29
Cache completed subtrees
preethamr May 19, 2023
fef9a92
Merge pull request #4276 from connext/subtree_cache
LayneHaber May 19, 2023
6afbed9
Merge pull request #4277 from connext/main
LayneHaber May 19, 2023
0eee794
fix: add more unit tests to database
liu-zhipeng May 20, 2023
cd3b617
Hot Fix: Bump up testnet LH prover mem
preethamr May 20, 2023
f2e2d8f
Hot Fix: Bump up testnet LH prover mem (#4279)
preethamr May 20, 2023
5481fc9
Hot Fix: Remove read replica for testnet LH Prover
preethamr May 20, 2023
626718f
Merge pull request #4280 from connext/main
preethamr May 20, 2023
95c453f
Add concurrency to LH Prover
preethamr May 20, 2023
31eb1f0
Remove logs.
preethamr May 21, 2023
5aee3c0
fix: add unit tests for poller
liu-zhipeng May 21, 2023
3236da4
chore: lint
liu-zhipeng May 21, 2023
63ff76c
Use concurrency also within a transfer path.
preethamr May 21, 2023
75f5d2b
Fix var name
preethamr May 21, 2023
5c3e1e2
Convert env var to number
preethamr May 21, 2023
7d28ef4
Bump batch concurrency to 100
preethamr May 21, 2023
80c5f3f
Revert "Bump batch concurrency to 100"
preethamr May 21, 2023
27546ed
Merge pull request #4274 from connext/4270-track-stable-swap-lp-token…
liu-zhipeng May 22, 2023
f83d2af
chore: logging
wanglonghong May 22, 2023
ad6c9dd
Testnet Prod (#4300)
liu-zhipeng May 22, 2023
81836e4
Merge pull request #4281 from connext/scale_prover
wanglonghong May 22, 2023
bccb5f9
Merge pull request #4305 from connext/better-logging-prover
wanglonghong May 22, 2023
4df9477
Merge pull request #4311 from connext/main
preethamr May 22, 2023
d508355
fix: bump memory
rhlsthrm May 24, 2023
e1307cb
Testnet Prod (#4329)
liu-zhipeng May 24, 2023
d783e39
fix: mem
rhlsthrm May 24, 2023
765e5fc
fix: bump mem
rhlsthrm May 24, 2023
8b9a152
Testnet Prod (#4333)
liu-zhipeng May 24, 2023
41158e2
ci: don't commitlint testnet-prod and prod
rhlsthrm May 24, 2023
7265676
ci: fix job
rhlsthrm May 25, 2023
481c6c0
Testnet Prod Sync (#4334)
preethamr May 25, 2023
b5ebaa4
fix: commitlint
rhlsthrm May 25, 2023
e9fc6b0
Testnet sync (#4338)
May 25, 2023
cad4563
fix: commitlint
rhlsthrm May 25, 2023
9af277a
Merge branch 'prod' into testnet-prod
rhlsthrm May 25, 2023
18e72e2
fix: merge
rhlsthrm May 25, 2023
d6edf4a
fix: build
rhlsthrm May 25, 2023
b624481
fix: lint
rhlsthrm May 25, 2023
d9cbc2b
fix: unit tests of poller (#4341)
liu-zhipeng May 25, 2023
636581a
fix: commitlint
rhlsthrm May 26, 2023
466639c
ci: fix ci
rhlsthrm May 26, 2023
f23e95c
ci: testnet prod sync (#4343)
May 26, 2023
ff2cf8e
ci: fix tf var name
rhlsthrm May 26, 2023
b774549
ci: add linea rpc
rhlsthrm May 26, 2023
f7c2e9a
Bump sequencer CPU
rhlsthrm May 26, 2023
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
11 changes: 11 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# global owner
@rhlsthrm
/ops/ @carlomazzaferro @preethamr @rhlsthrm
/docker/ @carlomazzaferro @preethamr @rhlsthrm
/packages/adapters/ @preethamr @liu-zhipeng @wanglonghong @sanchaymittal @rhlsthrm
/packages/agents/ @preethamr @liu-zhipeng @wanglonghong @sanchaymittal @rhlsthrm
/packages/agents/sdk/ @just-a-node @sanchaymittal @rhlsthrm
/packages/deployments/ @LayneHaber @rhlsthrm @liu-zhipeng
/packages/examples/ @just-a-node @rhlsthrm @sanchaymittal
/packages/integration/ @LayneHaber @preethamr @rhlsthrm
/packages/utils/ @preethamr @liu-zhipeng @wanglonghong @rhlsthrm
90 changes: 27 additions & 63 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
Expand All @@ -59,6 +61,10 @@ jobs:
node-version: "18"
cache: "yarn"

- name: Validate using commitlint
if: github.ref != 'refs/heads/testnet-prod' || github.ref != 'refs/heads/prod'
uses: wagoid/commitlint-github-action@v5

- name: Yarn install
run: yarn install

Expand Down Expand Up @@ -90,14 +96,6 @@ jobs:
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION=$(cat packages/agents/sdk/package.json | jq -r '.version')

if [[ "$VERSION" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$VERSION" == *"-beta"* ]]; then
tag="beta"
fi

workspaces=(
"packages/utils:@connext/nxtp-utils"
"packages/deployments/contracts:@connext/smart-contracts"
Expand All @@ -113,6 +111,13 @@ jobs:
workspace="${split_entry[1]}"
subpackage_version=$(cat $directory/package.json | jq -r '.version')

tag=""
if [[ "$subpackage_version" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$subpackage_version" == *"-beta"* ]]; then
tag="beta"
fi

echo "Checking $workspace for existing version..."
npm_package_info=$(npm view $workspace versions --json)

Expand Down Expand Up @@ -143,14 +148,6 @@ jobs:
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION=$(cat packages/deployments/contracts/package.json | jq -r '.version')

if [[ "$VERSION" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$VERSION" == *"-beta"* ]]; then
tag="beta"
fi

workspaces=(
"packages/utils:@connext/nxtp-utils"
"packages/deployments/contracts:@connext/smart-contracts"
Expand All @@ -162,6 +159,13 @@ jobs:
workspace="${split_entry[1]}"
subpackage_version=$(cat $directory/package.json | jq -r '.version')

tag=""
if [[ "$subpackage_version" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$subpackage_version" == *"-beta"* ]]; then
tag="beta"
fi

echo "Checking $workspace for existing version..."
npm_package_info=$(npm view $workspace versions --json)

Expand Down Expand Up @@ -192,14 +196,6 @@ jobs:
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION=$(cat packages/agents/chain-abstraction/package.json | jq -r '.version')

if [[ "$VERSION" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$VERSION" == *"-beta"* ]]; then
tag="beta"
fi

workspaces=(
"packages/utils:@connext/nxtp-utils"
"packages/agents/chain-abstraction:@connext/chain-abstraction"
Expand All @@ -211,6 +207,13 @@ jobs:
workspace="${split_entry[1]}"
subpackage_version=$(cat $directory/package.json | jq -r '.version')

tag=""
if [[ "$subpackage_version" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$subpackage_version" == *"-beta"* ]]; then
tag="beta"
fi

echo "Checking $workspace for existing version..."
npm_package_info=$(npm view $workspace versions --json)

Expand All @@ -236,45 +239,6 @@ jobs:
fi
done

- name: Extract version, determine tag, and publish chain-abstraction
if: ${{ startsWith(github.ref, 'refs/tags/chain-abstraction-v') }}
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION=$(cat packages/agents/chain-abstraction/package.json | jq -r '.version')

if [[ "$VERSION" == *"-alpha"* ]]; then
tag="alpha"
elif [[ "$VERSION" == *"-beta"* ]]; then
tag="beta"
fi

workspaces=(
"packages/utils:@connext/nxtp-utils"
"packages/agents/chain-abstraction:@connext/chain-abstraction"
)

for entry in "${workspaces[@]}"; do
IFS=":"; read -ra split_entry <<< "$entry"
directory="${split_entry[0]}"
workspace="${split_entry[1]}"
subpackage_version=$(cat $directory/package.json | jq -r '.version')

echo "Checking $workspace for existing version..."
published_version=$(npm view $workspace version)

if [[ "$published_version" != "$subpackage_version" ]]; then
echo "Publishing $workspace with version $subpackage_version"
if [[ "$tag" ]]; then
yarn workspace $workspace npm publish --access public --tag $tag
else
yarn workspace $workspace npm publish --access public
fi
else
echo "Skipping $workspace as version $subpackage_version already exists"
fi
done

build-and-push-router-publisher-image:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/testnet-prod' || github.ref == 'refs/heads/prod'
env:
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}~
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

## Connext Architecture

The Connext architecture can be seen as a layered system, as follows:
The Connext architecture can be seen as a layered system, as follows.

| Layer | Protocol/Stakeholders |
| -------------------------------- | -------------------------------------- |
Expand Down Expand Up @@ -112,7 +112,7 @@ And Make sure you are on the latest yarn version:

- `yarn set version berry`

To set up the containers, use Docker. *If Docker is not already installed on your system, you can easily install it by clicking [here](https://www.docker.com).*
To set up the containers, use Docker. _If Docker is not already installed on your system, you can easily install it by clicking [here](https://www.docker.com)._

Try running `yarn` to update everything. If you have issues, try deleting `node_modules` and `yarn.lock`. After deleting `yarn.lock` run `touch yarn.lock` since it does not like if there is no lock file.

Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
7 changes: 4 additions & 3 deletions ops/env/mainnet/core/secrets.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"arbitrum_alchemy_key_1": "ENC[AES256_GCM,data:L9MXmlyhMVx6aGacUF2VXZPU8GV/FTCRCf+nzuuZC9M=,iv:39S2/ePihP4zHtYVlXeuT4Hb6YcoLeKcsNy1t7cSI2o=,tag:evo3r9WajH6usDA/gbnE4A==,type:str]",
"blast_key": "ENC[AES256_GCM,data:NAUiBU8NVg5HOOUY3Cen6thsPBDN4TwrQWBnmFAsJmdfs6aY,iv:f3BnOUvaCXrIdjQAdzXhnHnTQIB2mTk3pUFpL2FufKE=,tag:7Qz0TRCXMbEZ52COnCzMkg==,type:str]",
"pokt_key": "ENC[AES256_GCM,data:4R/maUxD5ig+m5CkRLNKgXC7jQ1xAbbE,iv:NPf1GvSAU0v6TzFmyYViBWSO4Gk6PHtUTUnaYrDbDFc=,tag:ZMI77RvjzQPYXSPoRJwFGQ==,type:str]",
"admin_token_router": "ENC[AES256_GCM,data:xYsc+Nk8P9l/u4BD8GY7WDj7,iv:o7BHH1hMk6Kq7xl72f1NKDaMM44XGWqqXDM+G0Az8A4=,tag:fe4ZVKl36Ta7J5+5swwVRQ==,type:str]",
"admin_token_router": "ENC[AES256_GCM,data:7NUR6omfrPs2HN2zf5gDIyhOy9M=,iv:LAZ8W2um5tf8T3baD79NArSWA8T0aafHmdq1Wq+dfpk=,tag:M48iDXPPQP0sZVPPKbFqnA==,type:str]",
"admin_token_sequencer": "ENC[AES256_GCM,data:Y23MHgMeIr+jty7jWYy8RQNCnGs=,iv:fcLDkFEAbcuT6LYgUGxr2mtlnJz6I1Zi/BGX2thgDWU=,tag:jRZuCTDeYOxwGCZgHNljtg==,type:str]",
"admin_token_relayer": "ENC[AES256_GCM,data:S2DD6TdMPyirekmr,iv:zU/CCBWxbMnXNKKMqIwAM5QpNPNQi61+CAqXSsingEU=,tag:62p/pmOc1QbZQo+acyeH3g==,type:str]",
"router_web3_signer_private_key": "ENC[AES256_GCM,data:qNjSBBRlQS57JeVNqb/oIn/yhtHdA30I/0aMsjF34Wb+HNBSdVUvkQjybcAxIL5XXG/o74/4KmpJzyxwN0lxPoIi,iv:LcqECESi7HtEwDuQ6iJwGxa4q6rN3uy7MteIqRq/CtM=,tag:aKhIDEkA7+dvT3vx8zjqaQ==,type:str]",
"sequencer_web3_signer_private_key": "ENC[AES256_GCM,data:mxkVjwHNGtJ8TkiRyapfbNsEFT0zEheB++yZZy7SHqd3gFIz22DUTQ9nNOxoKhf+rsfwWt0MHsNTWyPhPmFnfPE9,iv:XDd5iMvcHmBRCXNH6vN8p/qF7MxjaWHbLzg+OaZQuQM=,tag:kemDbdZQopa06KHRTRruyw==,type:str]",
Expand Down Expand Up @@ -41,8 +42,8 @@
"azure_kv": null,
"hc_vault": null,
"age": null,
"lastmodified": "2023-04-21T14:45:52Z",
"mac": "ENC[AES256_GCM,data:C5WqmOJsD/SPfi2MLJUDSpL+L9jy8zkPpq2xDBRh1Vp4YW01hAgZRZ9QVtl7pzL1Jpa8Q0y2CHbc4dKG8nVTl7alvC6BHXa1v7fqzHfo9PVn1ICtVnTD864nJlBoQ58oYoZz93Vx54SnSLBDDQUNVfOwjPPMhAbygbG8ofZ0/mo=,iv:l/MLFecfPt3UeKe8cHnEAd4pftXdkoAFmCPnh4OwR4k=,tag:wo776bOIJS84X2r1ro0ZEA==,type:str]",
"lastmodified": "2023-05-23T05:55:32Z",
"mac": "ENC[AES256_GCM,data:K6Czhh9QffEIdLzcDyAfz6Rs3iruhWV9EuBrhCsQFmI/ao00h6slDwQeJ7Gx2lqBBO5oLf69+snl+3aF8mLZTsEXWIBzjvTDuKwGvz7I+IG0bl6A5hD0ImbOIZU5awVYzADxsGjvhVOsTIqIhAHQpcSjTBpfyrkjwgOWwBhpQ8o=,iv:niemKPXuTQWn0+CY0F0hMecpxVDECw/RMSu6gPZ3KAo=,tag:TLF/HOIlfKM/mGzvqT9nAg==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.7.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/mainnet/prod/core/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ locals {
}

server = {
adminToken = var.admin_token_router
adminToken = var.admin_token_sequencer
}

logLevel = "debug"
Expand Down
5 changes: 5 additions & 0 deletions ops/mainnet/prod/core/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ variable "admin_token_router" {
description = "admin token"
}

variable "admin_token_sequencer" {
type = string
description = "admin token"
}

variable "rmq_mgt_password" {
type = string
description = "RabbitMQ management password"
Expand Down
2 changes: 1 addition & 1 deletion ops/modules/db-replica/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "db_instance_endpoint" {

output "db_instance_name" {
description = "The database name"
value = aws_db_instance.db_read_replica.name
value = aws_db_instance.db_read_replica.db_name
}

output "db_instance_username" {
Expand Down
2 changes: 1 addition & 1 deletion ops/modules/db/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "db_instance_endpoint" {

output "db_instance_name" {
description = "The database name"
value = aws_db_instance.db.name
value = aws_db_instance.db.db_name
}

output "db_instance_username" {
Expand Down
12 changes: 7 additions & 5 deletions ops/testnet/prod/core/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ locals {
providers = ["https://arb-goerli.g.alchemy.com/v2/${var.arbgoerli_alchemy_key_0}", "https://goerli-rollup.arbitrum.io/rpc"]
}
"1668247156" = {
providers = ["https://consensys-zkevm-goerli-prealpha.infura.io/v3/${var.infura_key}", "${var.linea_node}"]
providers = ["https://linea-goerli.infura.io/v3/${var.infura_key}", "${var.linea_node}"]
}
"2053862260" = {
providers = ["https://testnet.era.zksync.dev"]
Expand Down Expand Up @@ -232,7 +232,7 @@ locals {
providers = ["https://arb-goerli.g.alchemy.com/v2/${var.arbgoerli_alchemy_key_0}", "https://goerli-rollup.arbitrum.io/rpc"]
}
"1668247156" = {
providers = ["https://consensys-zkevm-goerli-prealpha.infura.io/v3/${var.infura_key}", "${var.linea_node}"]
providers = ["https://linea-goerli.infura.io/v3/${var.infura_key}", "${var.linea_node}"]
}
"2053862260" = {
providers = ["https://testnet.era.zksync.dev"]
Expand Down Expand Up @@ -262,7 +262,7 @@ locals {
providers = ["https://arb-goerli.g.alchemy.com/v2/${var.arbgoerli_alchemy_key_0}", "https://goerli-rollup.arbitrum.io/rpc"]
}
"1668247156" = {
providers = ["https://consensys-zkevm-goerli-prealpha.infura.io/v3/${var.infura_key}", "https://rpc.goerli.linea.build", "${var.linea_node}"]
providers = ["https://linea-goerli.infura.io/v3/${var.infura_key}", "https://rpc.goerli.linea.build", "${var.linea_node}"]
}
"2053862260" = {
providers = ["https://testnet.era.zksync.dev"]
Expand Down Expand Up @@ -291,8 +291,10 @@ locals {
propagate = "https://betteruptime.com/api/v1/heartbeat/${var.lighthouse_propagate_heartbeat}"
sendOutboundRoot = "https://betteruptime.com/api/v1/heartbeat/${var.lighthouse_send_outbound_root_heartbeat}"
}
hubDomain = "1735353714"
proverBatchSize = 1
hubDomain = "1735353714"
proverBatchSize = {
"1668247156" = 10
}
})

local_relayer_config = jsonencode({
Expand Down
14 changes: 7 additions & 7 deletions ops/testnet/prod/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ module "router_executor" {
health_check_path = "/ping"
container_port = 8080
loadbalancer_port = 80
cpu = 1024
memory = 2048
cpu = 2048
memory = 4096
instance_count = 1
timeout = 180
ingress_cdir_blocks = ["0.0.0.0/0"]
Expand Down Expand Up @@ -176,8 +176,8 @@ module "sequencer_publisher" {
health_check_path = "/ping"
container_port = 8081
loadbalancer_port = 80
cpu = 1024
memory = 2048
cpu = 2048
memory = 4096
instance_count = 1
timeout = 180
ingress_cdir_blocks = ["0.0.0.0/0"]
Expand Down Expand Up @@ -206,8 +206,8 @@ module "sequencer_subscriber" {
health_check_path = "/ping"
container_port = 8082
loadbalancer_port = 80
cpu = 4096
memory = 8192
cpu = 8192
memory = 16384
instance_count = 10
timeout = 180
ingress_cdir_blocks = ["0.0.0.0/0"]
Expand Down Expand Up @@ -270,7 +270,7 @@ module "lighthouse_prover_cron" {
})
schedule_expression = "rate(5 minutes)"
timeout = 900
memory_size = 2048
memory_size = 10240
}

module "lighthouse_process_from_root_cron" {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@jtbennett/ts-project-scripts": "1.0.0-rc.4",
"@typescript-eslint/eslint-plugin": "5.52.0",
"@typescript-eslint/parser": "5.52.0",
"eslint": "8.34.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-node": "11.1.0",
"husky": "^8.0.3",
"rimraf": "3.0.2"
},
"workspaces": [
Expand Down
Loading