Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
843 commits
Select commit Hold shift + click to select a range
ed22046
Feature/landing link (#411)
exromany Jan 13, 2026
2569db5
Merge pull request #415 from lidofinance/develop
Vorobeyko Jan 14, 2026
a54e869
Merge pull request #416 from lidofinance/fix/duplicates-by-cl
exromany Jan 20, 2026
87766f2
fix: in stealing table hide operators with amount less 10wei (#419)
exromany Jan 20, 2026
c0e84db
chore: bump ICS round
exromany Jan 21, 2026
c923a3a
Merge pull request #340 from lidofinance/dependabot/github_actions/ac…
exromany Jan 21, 2026
6bc5c3f
Merge pull request #374 from lidofinance/dependabot/github_actions/ac…
exromany Jan 21, 2026
9747874
Merge pull request #399 from lidofinance/dependabot/github_actions/ac…
exromany Jan 21, 2026
86f3237
Merge pull request #403 from lidofinance/dependabot/github_actions/ac…
exromany Jan 21, 2026
574d2fe
Merge pull request #422 from lidofinance/chore/bump-ics-round
Mimidze Jan 21, 2026
f18dffc
Fix/validate deposit data pubkeys (#423)
exromany Jan 22, 2026
87e5465
Feature/wrapped 2025 (#420)
exromany Jan 22, 2026
b1b6e10
Merge pull request #425 from lidofinance/develop
Vorobeyko Jan 22, 2026
b2fe29b
Merge pull request #426 from lidofinance/revert-420-feature/wrapped-2025
exromany Jan 23, 2026
29932da
Merge pull request #427 from lidofinance/develop
Vorobeyko Jan 23, 2026
4e1d8d1
test: enhance validation for duplicate pubkeys and improve test condi…
Vorobeyko Jan 23, 2026
3b9b916
chore(deps): bump actions/setup-node from 4 to 6
dependabot[bot] Jan 23, 2026
0b429bd
Feature/wrapped 2025 (#428)
exromany Jan 26, 2026
5ee8c5d
Merge pull request #430 from lidofinance/develop
Vorobeyko Jan 26, 2026
952475a
feat: add tests for ICS (#398)
Vorobeyko Jan 26, 2026
9cf4b93
chore(deps): bump h3 from 1.15.1 to 1.15.5
dependabot[bot] Jan 26, 2026
b97fd5d
fix: wrapped share
exromany Jan 26, 2026
cc1b97f
Merge pull request #432 from lidofinance/hotfix/wrapped-share
Vorobeyko Jan 26, 2026
6e20224
feat: remove transfer keys feature
exromany Dec 26, 2025
c9d9f23
Merge pull request #431 from lidofinance/fix/remove-discord-integration
Vorobeyko Jan 27, 2026
75d9e3d
chore: update constants
exromany Jan 27, 2026
bfeedab
chore: module env + gate
exromany Jan 28, 2026
ee3a826
feat: add Matomo event tracking to welcome page tests (#433)
Vorobeyko Jan 28, 2026
80b4ff1
fix: update test cases for duplicated keys validation (#437)
Vorobeyko Jan 29, 2026
3e3a7bc
feat!: welcome for CM
exromany Jan 31, 2026
5deae7d
feat: usd sdk for csm or cm
exromany Feb 1, 2026
c87621f
feat: create cm operator
exromany Feb 3, 2026
b6049a7
feat: devnet override addresses
exromany Feb 4, 2026
887492f
fix: styles for create-curated-operator
exromany Feb 9, 2026
dac6239
fix: update sdk to fix key status
exromany Feb 10, 2026
9e35476
feat: roles change claimer address
exromany Feb 10, 2026
fe20f86
Merge pull request #438 from lidofinance/fix/wrong-key-status
Mimidze Feb 10, 2026
65df77d
chore(deps): bump lodash from 4.17.21 to 4.17.23
dependabot[bot] Feb 10, 2026
0524aa0
feat: splits
exromany Feb 10, 2026
2cc4b27
Merge pull request #439 from lidofinance/develop
Mimidze Feb 10, 2026
7b0465d
Add CI Dev CM wf
rnmsslido Feb 11, 2026
2f34801
Fix wf name
rnmsslido Feb 11, 2026
b33c992
Add separate preview stand wfs for CM
rnmsslido Feb 11, 2026
5c6368e
Revert unfeasible changes and fix dev branch for CM
rnmsslido Feb 11, 2026
f4810c5
fix: clean monitoring page for cm
exromany Feb 11, 2026
00fd2ca
fix: capital Address
exromany Feb 12, 2026
36583b9
fix: current -> connected address
exromany Feb 12, 2026
d3817a0
fix: missed contract rename
exromany Feb 12, 2026
d3a415a
Merge pull request #440 from lidofinance/feature/sre-3521-prepare-wor…
exromany Feb 12, 2026
5bda2cc
Refactor Preview Stand CIs for CMv2
rnmsslido Feb 13, 2026
e593a3e
Merge pull request #442 from lidofinance/feature/sre-3521-refactor-pr…
exromany Feb 13, 2026
12db946
Merge pull request #444 from lidofinance/develop
exromany Feb 13, 2026
5007258
fix: actual last report dates
exromany Feb 16, 2026
1989d0c
Merge pull request #445 from lidofinance/fix/last-report-dates
Mimidze Feb 16, 2026
8d5a588
Merge pull request #446 from lidofinance/develop
Mimidze Feb 16, 2026
3e8725f
Merge remote-tracking branch 'origin/develop' into feature/csm-plus-cm
exromany Feb 17, 2026
5aacac1
feat: operator type for csm and cm
exromany Feb 19, 2026
dba16e6
feat: update dashboard and keys view
exromany Feb 19, 2026
bcf19d4
fix: push legacy disclaimer to down
exromany Feb 19, 2026
a70f080
fix: inline links
exromany Feb 19, 2026
955c7e3
fix: operator type
exromany Feb 21, 2026
d581e4b
fix: use sdk module_name & operator_type
exromany Feb 21, 2026
bc78dab
fix: update ejectKeys
exromany Feb 22, 2026
6a19d00
feat: rename operator-info to metadata and move roles to settings
exromany Feb 24, 2026
0a745ac
feat: switch operator - button - add new operator
exromany Feb 24, 2026
8212533
feat: remove wrapped WIP
exromany Feb 25, 2026
8ffd1df
feat: penalty history
exromany Feb 25, 2026
de42750
feat: edit icon in dashboard title
exromany Feb 25, 2026
6fad482
fix: html meta tags for CM
exromany Feb 25, 2026
4d531d0
fix: show gap between queue end and stake limit in default view
exromany Feb 26, 2026
363e0c1
fix: add year to rewards-history table
exromany Feb 26, 2026
5c0ccf8
feat: strip wrapped feature to static only
exromany Feb 26, 2026
368c360
Merge pull request #450 from lidofinance/fix/rewards-history-table-di…
Mimidze Feb 26, 2026
3ea9866
Merge pull request #449 from lidofinance/feature/remove-wrapped
Mimidze Feb 26, 2026
04308f8
Merge pull request #448 from lidofinance/fix/deposit-queue-gap
Mimidze Feb 26, 2026
ae8652d
Merge pull request #424 from lidofinance/dependabot/npm_and_yarn/loda…
exromany Feb 27, 2026
0ebcbe8
Merge pull request #418 from lidofinance/dependabot/npm_and_yarn/h3-1…
exromany Feb 27, 2026
5f7f0fb
Merge pull request #451 from lidofinance/develop
Mimidze Feb 27, 2026
e6965da
chore(deps): bump actions/upload-artifact from 6 to 7
dependabot[bot] Feb 27, 2026
891829c
Merge pull request #429 from lidofinance/dependabot/github_actions/ac…
exromany Feb 28, 2026
9546a0a
Feature/upgrade deps (#452)
exromany Mar 2, 2026
3ca4204
test: add matomo events and tests for monitoring and dashboard links
Mimidze Mar 2, 2026
07f7393
Merge remote-tracking branch 'origin/develop' into feature/csm-plus-cm
exromany Mar 3, 2026
eea61fd
feat: unlock expired locked bond
exromany Mar 3, 2026
d88f376
fix: any role member can unlock expired locked bond, but only manager…
exromany Mar 4, 2026
aa48af6
fix: chip after tooltip icon
exromany Mar 4, 2026
1e00952
fix: imports
exromany Mar 4, 2026
28d37b5
fix: submit button text
exromany Mar 4, 2026
d5ce373
chore(deps): bump svgo from 3.3.2 to 3.3.3
dependabot[bot] Mar 5, 2026
d11954b
fix: unlock expired lock bond - text & styles
exromany Mar 5, 2026
449499e
feat: keys breakdown
exromany Mar 5, 2026
c80ce70
feat: feedback form for CM hoodi
exromany Mar 6, 2026
60bfaf8
fix: roles list style
exromany Mar 6, 2026
6dbdddd
feat: wrapped image
exromany Mar 6, 2026
8c2fba9
fix: show wrong-fee-recipient alert only for already active keys
exromany Mar 7, 2026
9dc4741
Merge pull request #458 from lidofinance/feature/wrapped-image
Mimidze Mar 9, 2026
c532df9
feat: stake-and-keys
exromany Mar 9, 2026
350a861
chore: drop csm0x02 until its ready
exromany Mar 9, 2026
dc10778
fix: skip wrong-fee-recipient for withdrawal pending keys
exromany Mar 10, 2026
dc8a25c
fix: add blob into img CSP config
exromany Mar 10, 2026
36fd8b8
Merge pull request #459 from lidofinance/fix/wrong-fee-recipient-not-…
Mimidze Mar 10, 2026
defcd23
Merge pull request #460 from lidofinance/fix/csp-img-blob
Mimidze Mar 10, 2026
fdd0e19
Merge pull request #461 from lidofinance/develop
Mimidze Mar 10, 2026
2cfa9d8
fix: refactor use-awaiter and styles improvement
exromany Mar 11, 2026
0b31f56
fix: update sdk
exromany Mar 12, 2026
df2d926
fix: stake and keys
exromany Mar 12, 2026
2fcdde7
test: fixes after the review
Mimidze Mar 12, 2026
f371068
fix: update lido-ui
exromany Mar 13, 2026
f2bdfc2
fix: splits
exromany Mar 16, 2026
c2730dd
fix: typo
exromany Mar 16, 2026
48129c0
test: fixes after the review
Mimidze Mar 16, 2026
65e9ff1
test: fix locators to camelCase
Mimidze Mar 16, 2026
fb87c7b
Merge pull request #454 from lidofinance/test/dashboard-tracking-clean
Mimidze Mar 17, 2026
be81ba1
fix: ability to change roles, set splits, claimer
exromany Mar 17, 2026
fc7e5f7
chore(deps): bump socket.io-parser from 4.2.5 to 4.2.6
dependabot[bot] Mar 19, 2026
b547931
feat: group page
exromany Mar 20, 2026
db6cd77
chore(deps): bump flatted from 3.3.1 to 3.4.2
dependabot[bot] Mar 20, 2026
3ebda89
feat: improve address-input and ens resolving
exromany Mar 20, 2026
74a76af
fix: invalidate cache on change operator or wallet address
exromany Mar 23, 2026
366e3fd
feat: invalidate cache on change operator or wallet
exromany Mar 23, 2026
47ec61a
fix: groups
exromany Mar 23, 2026
7ed955c
fix: hide last-rewards section if there are no reports yet
exromany Mar 23, 2026
004e18b
fix: update sdk
exromany Mar 24, 2026
abf996a
feat: setup wc wallet for speed up tests (#455)
Vorobeyko Mar 25, 2026
b0e4d04
feat: operator switcher for curated module
exromany Mar 26, 2026
35dffc4
fix: create curated operator owner chip
exromany Mar 26, 2026
82ce94d
fix: add-keys confirm text
exromany Mar 26, 2026
e31cc0a
fix: disable submit button if form is clean
exromany Mar 26, 2026
bd52e6a
fix: hide CSM related add-keys info for CM
exromany Mar 26, 2026
ea9a571
fix: add-keys page subtitle
exromany Mar 26, 2026
e26bfb8
fix: change address capitalize
exromany Mar 26, 2026
effbab0
fix: change address validation
exromany Mar 26, 2026
0e5be10
fix: disable back button while submitting new operator
exromany Mar 26, 2026
82a077f
feat: change operator after creating
exromany Mar 26, 2026
afe3253
chore: update Playwright and related dependencies to latest versions …
Vorobeyko Mar 26, 2026
079f3a7
Merge remote-tracking branch 'origin/develop' into feature/csm-plus-cm
exromany Mar 26, 2026
3a58e61
fix: operator-switcher no metadata for CSM
exromany Mar 26, 2026
d3ab686
chore(deps): bump picomatch from 2.3.1 to 2.3.2
dependabot[bot] Mar 26, 2026
8a2f723
fix: remove extra dot
exromany Mar 27, 2026
29431f3
fix: word break in tx modal
exromany Mar 27, 2026
3b0448d
fix: stake & keys
exromany Mar 27, 2026
fe1d21b
fix: keys breakdown style and badges
exromany Mar 27, 2026
ef97801
fix: go to [Roles -> Settings] tab
exromany Mar 27, 2026
a85d613
fix: addres hide error if untouched
exromany Mar 28, 2026
2f8c552
fix: tooltip for next rewards distribution
exromany Mar 28, 2026
9920fd2
fix: open modal on group page
exromany Mar 28, 2026
952cca0
feat: unify back button
exromany Mar 29, 2026
a822327
feat: improve deposit-data input
exromany Mar 29, 2026
61d96dc
feat: claim bond - sources info
exromany Mar 29, 2026
48ee6a6
Merge remote-tracking branch 'origin/develop' into feature/invalidate…
exromany Mar 30, 2026
18711bd
fix: update sdk
exromany Mar 30, 2026
0c55268
fix: remove link from placeholder
exromany Mar 31, 2026
6ba0847
Merge pull request #470 from lidofinance/feature/invalidate-cache
Mimidze Mar 31, 2026
7685dad
fix: update matomo pkg
exromany Mar 31, 2026
cabcb8e
Merge pull request #475 from lidofinance/fix/update-matomo
Mimidze Apr 1, 2026
02aa9be
fix: update sdk
exromany Apr 1, 2026
cde6582
Merge pull request #476 from lidofinance/develop
Mimidze Apr 1, 2026
d3762cd
fix: stake and keys - badge & amount
exromany Apr 3, 2026
dd83ca5
fix: desposit-data input placeholder
exromany Apr 3, 2026
d50f835
fix: target limit
exromany Apr 3, 2026
146bff1
fix: update sdk
exromany Apr 3, 2026
56f73df
fix: show metadata tab only inside operator
exromany Apr 3, 2026
a3900d0
fix: show badge more-keys
exromany Apr 3, 2026
b1a1494
fix: more-keys error state on dashboard
exromany Apr 3, 2026
57b2781
chore(deps): bump defu from 6.1.4 to 6.1.6
dependabot[bot] Apr 4, 2026
5427a48
feat: unlock bond uses bond balance
exromany Apr 4, 2026
f3ee545
fix: update sdk
exromany Apr 4, 2026
b52aea9
feat: refactor form flow for unlock-bond
exromany Apr 5, 2026
b1f903c
feat: reafctor forms flow 1
exromany Apr 6, 2026
2fa32b7
fix: update ics round
exromany Apr 7, 2026
4868696
fix: round 5 assessed date
exromany Apr 7, 2026
050e09a
Merge pull request #478 from lidofinance/fix/ics-round-update
Mimidze Apr 7, 2026
439c7a0
feat: refactor forms flow 2
exromany Apr 7, 2026
1588ae0
fix: testable error wrapper
exromany Apr 7, 2026
77e85db
Merge pull request #479 from lidofinance/develop
Mimidze Apr 7, 2026
c129c14
chore(deps): bump lodash from 4.17.23 to 4.18.1
dependabot[bot] Apr 7, 2026
45c7289
fix: refactor forms flow 3
exromany Apr 8, 2026
696f3a7
feat: refactor forms flow 4
exromany Apr 8, 2026
2650240
fix: improve csp
exromany Apr 9, 2026
33244c2
feat: refactor forms flow 5
exromany Apr 9, 2026
1c76169
feat: update claim-bond WIP
exromany Apr 9, 2026
01f34d6
fix: types in test
exromany Apr 10, 2026
e94cb96
Merge pull request #480 from lidofinance/dependabot/npm_and_yarn/loda…
exromany Apr 10, 2026
f052cd9
Merge pull request #477 from lidofinance/dependabot/npm_and_yarn/defu…
exromany Apr 10, 2026
8602c8a
Merge pull request #473 from lidofinance/dependabot/npm_and_yarn/pico…
exromany Apr 10, 2026
fc31fd6
Merge pull request #466 from lidofinance/dependabot/npm_and_yarn/sock…
exromany Apr 10, 2026
bcbd779
Merge pull request #467 from lidofinance/dependabot/npm_and_yarn/flat…
exromany Apr 10, 2026
30a4d23
Merge pull request #457 from lidofinance/dependabot/npm_and_yarn/svgo…
exromany Apr 10, 2026
203b86f
fix: remove tests from eslintignore
exromany Apr 10, 2026
85597b5
fix: refactor tx-modal retry
exromany Apr 11, 2026
821d492
fix: claim bond empty state
exromany Apr 13, 2026
c41531b
feat: key status triggered-ejection
exromany Apr 13, 2026
64dd9af
Merge pull request #482 from lidofinance/fix/improve-csp
Mimidze Apr 13, 2026
58b3aec
Merge pull request #485 from lidofinance/develop
Mimidze Apr 13, 2026
4fd42e3
fix: last rewards tx hash - hide if no hash
exromany Apr 13, 2026
6d8c228
Merge branch 'feat/cm-forms-flow' into feature/csm-plus-cm
exromany Apr 13, 2026
22e5e5c
chore: add devnet settings
exromany Apr 13, 2026
b03810e
chore(deps): bump follow-redirects from 1.15.9 to 1.16.0
dependabot[bot] Apr 14, 2026
ca542f9
fix: update sdk
exromany Apr 14, 2026
5ef8928
fix: fixes
exromany Apr 14, 2026
cbe463e
fix: role actions, loader errors, modal form
exromany Apr 15, 2026
59679ab
chore: update devnet
exromany Apr 15, 2026
a10d6e9
chore: update devnet
exromany Apr 15, 2026
7e8cc67
chore: more devnet
exromany Apr 15, 2026
3f35c9c
chore(deps): bump hono from 4.12.3 to 4.12.14
dependabot[bot] Apr 16, 2026
d0b0734
fix: update group text
exromany Apr 16, 2026
0e8e3d0
chore: cleanup devnet
exromany Apr 16, 2026
a221bf3
Merge remote-tracking branch 'origin/develop' into feature/csm-plus-cm
exromany Apr 16, 2026
12c36c2
fix: update sdk with changed invite type
exromany Apr 16, 2026
39bb33c
fix: packages audit fix
exromany Apr 16, 2026
9b002ed
Merge branch 'fix/test-types' into feature/csm-plus-cm
exromany Apr 16, 2026
9a0ba41
fix: capitalize
exromany Apr 17, 2026
6b506fc
fix: validation address-input
exromany Apr 17, 2026
95be213
fix: stake and keys component
exromany Apr 17, 2026
4597c9b
fix: group page
exromany Apr 18, 2026
61efab9
fix: create-curated-operator styles
exromany Apr 21, 2026
047e17b
fix: radio button
exromany Apr 21, 2026
9dccb5f
fix: claim bond flow
exromany Apr 22, 2026
6140391
fix: max amount
exromany Apr 22, 2026
9963753
fix: add bond wsteth rate
exromany Apr 22, 2026
3df7291
feat: accept invite on change-role form
exromany Apr 22, 2026
406a8a7
fix: submit no changes in splitters
exromany Apr 22, 2026
45db43f
fix: updated sdk
exromany Apr 22, 2026
22ff1a7
Merge remote-tracking branch 'origin/main' into feature/csm-plus-cm
exromany Apr 23, 2026
ab712d9
Merge branch 'feature/csm-plus-cm' into develop-cm
exromany Apr 23, 2026
da8f2e2
chore: update env exmape
exromany Apr 23, 2026
4493a2b
fix: table styles
exromany Apr 23, 2026
ec9a695
fix: after walkthrough call
exromany Apr 23, 2026
9ee5e61
Merge pull request #487 from lidofinance/dependabot/npm_and_yarn/hono…
exromany Apr 24, 2026
37a2dd2
Merge pull request #486 from lidofinance/dependabot/npm_and_yarn/foll…
exromany Apr 24, 2026
6608035
chore: build-push-harbor
exromany Apr 24, 2026
5212c42
fix: add api/ready
exromany Apr 24, 2026
9354e08
chore: log module
exromany Apr 24, 2026
42538a5
fix: normalize rpc url ended with slash
exromany Apr 24, 2026
1ddbc33
fix: update sdk for unknown module
exromany Apr 24, 2026
d717c8b
fix: build with version
exromany Apr 26, 2026
e36cccc
fix: splitter share placeholder
exromany Apr 26, 2026
a758aab
fix: navigation, gates, nav items
exromany Apr 27, 2026
66299c7
fix: show commit in version
exromany Apr 27, 2026
b34b8fb
feat: claim bond + splitters
exromany Apr 27, 2026
17983f3
fix: claim bond
exromany Apr 29, 2026
f8e7a64
fix: after call 2
exromany Apr 29, 2026
2793fdb
fix: claim bond options with splitters
exromany Apr 29, 2026
be8bcf5
fix: texts
exromany Apr 30, 2026
21cee42
Merge branch 'develop' into feature/csm-plus-cm
exromany Apr 30, 2026
8fc303a
chore: remove ci changes
exromany Apr 30, 2026
326ba37
Merge pull request #490 from lidofinance/feature/csm-plus-cm
exromany Apr 30, 2026
df1501e
chore(deps): bump brace-expansion from 1.1.11 to 1.1.14
dependabot[bot] Apr 30, 2026
5725ef6
Merge pull request #491 from lidofinance/dependabot/npm_and_yarn/brac…
exromany May 4, 2026
65f345c
Merge pull request #453 from lidofinance/dependabot/github_actions/ac…
exromany May 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"exclude": ["transform-exponentiation-operator"]
}
}
]
],
"plugins": [
"babel-plugin-styled-components"
]
}
50 changes: 43 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# RPC API urls by network
# EL_RPC_URLS_{CHAIN_ID} list or URLs delimeted by commas, first entry is primary, else are fallbacks
EL_RPC_URLS_1=
EL_RPC_URLS_17000=
EL_RPC_URLS_560048=

# IPFS prefill RPC URLs - list of URLs delimited by commas
PREFILL_UNSAFE_EL_RPC_URLS_1=
PREFILL_UNSAFE_EL_RPC_URLS_17000=
PREFILL_UNSAFE_EL_RPC_URLS_560048=

# CL API urls by network
# CL_API_URLS_{CHAIN_ID} list or URLs delimeted by commas, first entry is primary, else are fallbacks
CL_API_URLS_1=
CL_API_URLS_17000=
CL_API_URLS_560048=

# MAINTENANCE mode
MAINTENANCE=

# supported networks for connecting wallet
SUPPORTED_CHAINS=1
# Module type: CSM or Curated Moudle (csm|cm)
MODULE=csm
# DEVNET_ADDRESSES_FILE_PATH=../community-staking-module/artifacts/local/curated/deploy-hoodi.json

# this chain uses when a wallet is not connected
DEFAULT_CHAIN=1
Expand Down Expand Up @@ -44,5 +45,40 @@ WALLETCONNECT_PROJECT_ID=
# ETH Stake Widget API for IPFS mode
WIDGET_API_BASE_PATH_FOR_IPFS=

# Survey api
SURVEY_API=https://survey.testnet.fi
# EthSeer API
ETHSEER_API_URL=https://www.migalabs.io/api/eth/v1/beacon/consensus/lido/csm/unified_performance
ETHSEER_API_TOKEN=

# CSM SDK API URLs
KEYS_API_URL=
FEES_MONITORING_API_URL=

# -------- Environment variables for tests --------

# testnet, prod, staging, preview, local
STAND_TYPE=

# Default wallet with node operator
WALLET_SECRET_PHRASE=
# Full empty wallet
EMPTY_SECRET_PHRASE=
# Wallet with empty node operator
EMPTY_NODE_SECRET_PHRASE=

WALLET_PASSWORD=

# RPC url directly
RPC_URL=

# All credentianals for run tests on preview stand
PREVIEW_STAND_URL=
PREVIEW_STAND_LOGIN=
PREVIEW_STAND_PASSWORD=

# Refuse CF blocks for tests
REFUSE_CF_BLOCK_NAME=
REFUSE_CF_BLOCK_VALUE=

# Forked tests settings
USE_FORK= # true | false
JUST_DIR= # Example: /Users/<user>/community-staking-module
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# dependencies
/node_modules
/.pnp
/lido-csm-sdk

# testing
/coverage
Expand All @@ -15,3 +16,5 @@

# generated
/generated

**/.browser_context**
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
{
"checksVoidReturn": false
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["tests/**"]
}
]
},
"settings": {
Expand Down
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
* @lidofinance/community-staking
.github @lidofinance/review-gh-workflows
tests/ @lidofinance/lido-qa
playwright.config.* @lidofinance/lido-qa
29 changes: 29 additions & 0 deletions .github/workflows/ci-dev-cm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI Dev CM Hoodi

on:
workflow_dispatch:
push:
branches:
- develop-cm
paths-ignore:
- ".github/**"

permissions: {}

jobs:
# test:
# ...

deploy:
runs-on: ubuntu-latest
# needs: test
name: Build and deploy
steps:
- name: Testnet deploy
uses: lidofinance/dispatch-workflow@v1
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET_WORKFLOW: "deploy_hoodi_testnet_cm_widget.yaml"
TARGET: "develop-cm"
4 changes: 2 additions & 2 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Dev
name: CI Dev Hoodi

on:
workflow_dispatch:
Expand All @@ -25,5 +25,5 @@ jobs:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET_WORKFLOW: "deploy_testnet_csm_widget.yaml"
TARGET_WORKFLOW: "deploy_hoodi_testnet_csm_widget.yaml"
TARGET: "develop"
27 changes: 27 additions & 0 deletions .github/workflows/ci-preview-demolish-cm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI Preview stand demolish (CM)

on:
workflow_dispatch:
pull_request:
types:
[converted_to_draft, closed]
branches:
- develop-cm

permissions: {}

jobs:
deploy:
runs-on: ubuntu-latest
name: Build and deploy
steps:
- name: Preview stand demolish (CM)
uses: lidofinance/dispatch-workflow@v1
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET: ${{ github.head_ref }}
TARGET_WORKFLOW: "preview_stand_demolish.yaml"
INPUTS_REPO_NAME: "lidofinance/cm-widget"
INPUTS_PR_ID: ${{ github.event.pull_request.number }}
1 change: 1 addition & 0 deletions .github/workflows/ci-preview-demolish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
[converted_to_draft, closed]
branches-ignore:
- main
- develop-cm

permissions: {}

Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/ci-preview-deploy-cm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: CI Preview stand deploy (CM)

on:
workflow_dispatch:
inputs:
inventory:
description: inventory to be used for preview stand deploying
default: testnet
required: false
type: choice
options:
- staging
- testnet

pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop-cm

permissions:
contents: read
pull-requests: read

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.draft == false }}
name: Build and deploy
outputs:
stand_url: ${{ steps.stand.outputs.url }}
steps:
- uses: lidofinance/gh-find-current-pr@v1
id: pr

- name: Set ref
id: ref
run: echo "short_ref=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: Preview stand deploying (CM)
uses: lidofinance/dispatch-workflow@v1
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET: ${{ github.head_ref || steps.ref.outputs.short_ref }}
TARGET_WORKFLOW: "preview_stand_deploy.yaml"
INPUTS_REPO_NAME: "lidofinance/cm-widget"
INPUTS_PR_ID: ${{ github.event.pull_request.number || steps.pr.outputs.number }}
INPUTS_INVENTORY: "${{ inputs.inventory || 'testnet' }}"

- name: Define repo short name (CM)
run: echo "short_name=$(echo ${{ github.repository }} | cut -d "/" -f 2)" >> $GITHUB_OUTPUT
id: repo

- name: Define branch hash
run: echo "hash=$(echo "$HEAD_REF" | shasum -a 256 | cut -c -10)" >> $GITHUB_OUTPUT
id: branch
env:
HEAD_REF: ${{ github.head_ref || steps.ref.outputs.short_ref }}

- name: Extract stand url
if: always()
run: echo "url=https://$SHORT_NAME-$BRANCH_HASH.branch-preview.org" >> $GITHUB_OUTPUT
id: stand
env:
SHORT_NAME: ${{ steps.repo.outputs.short_name }}
BRANCH_HASH: ${{ steps.branch.outputs.hash }}

tests:
needs: deploy
if: ${{ github.event.pull_request.draft == false && inputs.inventory == 'testnet'}}
uses: ./.github/workflows/tests.yml
secrets: inherit
with:
preview_stand_url: ${{ needs.deploy.outputs.stand_url }}
stand_type: "preview"
tags: "smoke"
qase_plan_id: 5 # Smoke Preview Plan
15 changes: 13 additions & 2 deletions .github/workflows/ci-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ on:
- testnet

pull_request:
types:
[opened, synchronize, reopened, ready_for_review]
types: [opened, synchronize, reopened, ready_for_review]
branches-ignore:
- main
- develop-cm

permissions:
contents: read
Expand Down Expand Up @@ -66,3 +66,14 @@ jobs:
env:
SHORT_NAME: ${{ steps.repo.outputs.short_name }}
BRANCH_HASH: ${{ steps.branch.outputs.hash }}

tests:
needs: deploy
if: ${{ github.event.pull_request.draft == false && (!inputs.inventory || inputs.inventory == 'testnet') }}
uses: ./.github/workflows/tests.yml
secrets: inherit
with:
preview_stand_url: ${{ needs.deploy.outputs.stand_url }}
stand_type: "preview"
tags: "smoke"
qase_plan_id: 5 # Smoke Preview Plan
Loading