Skip to content

Commit 99d4d4d

Browse files
authored
Merge pull request #316 from lidofinance/develop
Release 2.2.1
2 parents b03e65b + 2f9f867 commit 99d4d4d

File tree

15 files changed

+175
-1832
lines changed

15 files changed

+175
-1832
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI Dev Holesky
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- holesky
8+
paths-ignore:
9+
- ".github/**"
10+
11+
permissions: {}
12+
13+
jobs:
14+
# test:
15+
# ...
16+
17+
deploy:
18+
runs-on: ubuntu-latest
19+
# needs: test
20+
name: Build and deploy
21+
steps:
22+
- name: Testnet deploy
23+
uses: lidofinance/dispatch-workflow@v1
24+
env:
25+
APP_ID: ${{ secrets.APP_ID }}
26+
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
27+
TARGET_REPO: "lidofinance/infra-mainnet"
28+
TARGET_WORKFLOW: "deploy_holesky_testnet_lido_keys_api.yaml"
29+
TARGET: "holesky"

.github/workflows/ci-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI Dev Holesky
1+
name: CI Dev Hoodi
22

33
on:
44
workflow_dispatch:
@@ -25,5 +25,5 @@ jobs:
2525
APP_ID: ${{ secrets.APP_ID }}
2626
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
2727
TARGET_REPO: "lidofinance/infra-mainnet"
28-
TARGET_WORKFLOW: "deploy_holesky_testnet_lido_keys_api.yaml"
28+
TARGET_WORKFLOW: "deploy_hoodi_testnet_lido_keys_api.yaml"
2929
TARGET: "develop"

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
PROVIDERS_URLS: ${{ secrets.PROVIDERS_URLS }}
4242
CL_API_URLS: "https://e2e-test.lido.fi,"
4343
CHAIN_ID: ${{ secrets.CHAIN_ID }}
44-
CHRONIX_PROVIDER_MAINNET_URL: ${{ secrets.CHRONIX_PROVIDER_MAINNET_URL }}
4544
DB_NAME: node_operator_keys_service_db
4645
DB_PORT: 5432
4746
DB_HOST: localhost

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,6 @@ Check `sample.env` file.
8383

8484
Pay attention that API by default running job for fetching and updating Validators. If you are not planning to use `validators` endpoints, you could disable this job by setting `VALIDATOR_REGISTRY_ENABLE=false`.
8585

86-
## Run KAPI on fork
87-
88-
For running KAPI on fork setup environment variables:
89-
90-
```
91-
CHAIN_ID=1
92-
CHRONIX_PROVIDER_MAINNET_URL=YOUR-MAINNET-PROVIDER
93-
CHRONIX_SESSION_PORT=8002
94-
PROVIDERS_URLS = http://127.0.0.1:8002
95-
```
96-
97-
1. Run chronix `yarn chronix:start`
98-
2. Init chronix: `yarn fork:init`
99-
3. Start kapi: yarn start:dev
100-
101-
Keep in mind `PROVIDERS_URLS` should contain chronix session url.
102-
10386
## Benchmarks
10487

10588
This part of document outlines running benchmarks and collecting Prometheus metrics using K6.

jest-e2e-onchain.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lido-keys-api",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Lido Node Operators keys service",
55
"author": "Lido team",
66
"private": true,
@@ -34,21 +34,17 @@
3434
"test:watch": "jest --watch",
3535
"test:cov": "jest --coverage",
3636
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
37-
"test:e2e": "mikro-orm schema:drop -r && mikro-orm migration:up && jest -i --config jest-e2e.json && chronix compile && chronix test",
38-
"test:e2e:debug": "mikro-orm schema:drop -r && mikro-orm migration:up && node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest -i --config jest-e2e.json && chronix compile && chronix test",
37+
"test:e2e": "mikro-orm schema:drop -r && mikro-orm migration:up && jest -i --config jest-e2e.json",
38+
"test:e2e:debug": "mikro-orm schema:drop -r && mikro-orm migration:up && node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest -i --config jest-e2e.json",
3939
"test:e2e:docker": "docker-compose -f docker-compose.e2e.yml up --build --abort-on-container-exit",
4040
"typechain": "typechain --target=ethers-v5 --out-dir ./src/generated ./src/staking-router-modules/contracts/abi/*.json",
41-
"chronix:compile": "chronix compile",
42-
"chronix:test": "chronix test",
4341
"test:alerts": "promtool test rules alerts/*.test.yml",
44-
"chronix:start": "chronix start",
45-
"fork:init": "node chronix-init",
4642
"prepare:csm": "node scripts/prepare-csm-abi.js"
4743
},
4844
"dependencies": {
4945
"@lido-nestjs/consensus": "^1.5.0",
50-
"@lido-nestjs/constants": "^5.2.1",
51-
"@lido-nestjs/contracts": "^9.5.1",
46+
"@lido-nestjs/constants": "5.3.0",
47+
"@lido-nestjs/contracts": "9.7.0",
5248
"@lido-nestjs/execution": "^1.11.0",
5349
"@lido-nestjs/fetch": "^1.4.0",
5450
"@lido-nestjs/logger": "^1.3.2",
@@ -95,7 +91,6 @@
9591
"@types/supertest": "^2.0.11",
9692
"@typescript-eslint/eslint-plugin": "^5.10.0",
9793
"@typescript-eslint/parser": "^5.10.0",
98-
"chronix": "0.0.9",
9994
"eslint": "^8.7.0",
10095
"eslint-config-prettier": "^8.3.0",
10196
"eslint-plugin-prettier": "^4.0.0",
@@ -108,5 +103,6 @@
108103
"ts-node": "^10.4.0",
109104
"tsconfig-paths": "^3.12.0",
110105
"typescript": "^4.5.5"
111-
}
106+
},
107+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
112108
}

sample.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ LOG_LEVEL=debug
2222
# Log format: simple or json
2323
LOG_FORMAT=json
2424
PROVIDERS_URLS=https://mainnet.infura.io/v3/XXX,https://eth-mainnet.alchemyapi.io/v2/YYY
25-
# provider url for e2e tests
26-
CHRONIX_PROVIDER_MAINNET_URL=https://mainnet.infura.io/v3/XXX,https://eth-mainnet.alchemyapi.io/v2/YYY
2725
# chain id
2826
# for mainnet 1
2927
# for testnet 5

scripts/chronix-init.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)