Repository navigation
Fork sync - #36
Open
mateumiralles wants to merge 1356 commits into
Open
Fork sync#36mateumiralles wants to merge 1356 commits into
mateumiralles wants to merge 1356 commits into
Conversation
|
⏳ Building package for commit A build has been triggered. The install link will appear here when ready. (by tropibot/build) |
The graph read depositData via getValues, a one-shot read with no subscription, so the submitting-keys legend only appeared once an unrelated re-render happened (hovering a legend). Bind useWatch to a detached control when no form is above, keeping the hook unconditional.
useSmSDK(m) returns undefined unless m is active, so the CSM default curve id went missing on /create while a CSM_02 operator was selected. Same reason the DKG section must classify curveId against targetModule: per-module curve maps do not overlap, so the active module would hide the field the flow expects.
Shown on non-production stands, gated by IS_TEST_ENV. Ports lidofinance/ethereum-staking-widget#1182. Restrict the webpack svg rule with `issuer` so svgr does not intercept the banner's CSS url() background, and offset LayoutStyle's min-height by the banner height to avoid a permanent 60px scroll on every page. Also fixes two pre-existing header issues the banner exposed: the banner was caught in the mobile nav overlay's backdrop-filter, and the header's opaque background sat on the inset HeaderStyle rather than the bleeding HeaderWrapper, leaking page content through ~20px side gutters on narrow viewports.
The create page treated the `?type=` query param as authorization rather than a preselection, so /create?type=0x02 bypassed the hasOperatorIn check and allowed duplicate operators. useRequestedOperatorType now validates against a new creatableTypes set and ignores anything not currently creatable, falling back to plain /create behaviour.
useInvites resolved its SDK through useSmSDK(), which follows the active module. A wallet with no operator falls back to the primary module, so invites belonging to a secondary one were never fetched — on the semi-unified CSM build a CSM_02 invite left the inbox empty, the nav counter at zero and HAS_INVITES false. It now fans out over deployedModules the way operator discovery already does. Invites are module-qualified as a consequence: getInviteId carries the module (the radio value must be unique, or onChange resolves the wrong invite), the row gained a CurveBadge so the modules are told apart, and accepting resolves confirmAddress against the invite own module instead of the active one. The e2e inbox locators match the value by suffix. useAppendOperator now takes the module on the payload — it varies per event, not per render.
Type-scoped curve ids only exist in the module that owns the type, but useCurveParameters/useCurveMetadata defaulted to the active operator's SDK — so ICS/IDVTC parameters never resolved for a CSM_02 operator, and cross-module curve id comparison could report a type as already claimed.
- share one fetchAcrossModules helper between operator and invite discovery - collapse the no-op target/active SDK ternary into useTargetSmSDK - parameterize useDefaultCurveId and drop the CSM_02 clone - use the SDK's module capability sets instead of hand-rolled family checks - memoize useCanCreateNodeOperator, precompute the parameters table
feat: add test env banner
develop to main
…gets feat: one CSM widget serving two modules — CSM and CSM 0x02
Creatability was implied by a single `creatableModules` list that mixed
module-level and type-level conditions. It is now a pure predicate per
type, named and unit-testable, surfaced as per-type show rules that the
create routes gate on. Answers the standing question: a wallet holding
only an IDVTC operator cannot create DEF - the ICS<->IDVTC pair is the
only sanctioned second CSM operator.
/create/{def,ics,idvtc,0x02} each pass an OPERATOR_TYPE literal into a
CreateTypeProvider, and the page title, submit-keys form, share-limit
banner, deposit queue and curve-derived FAQ figures read the type from
there instead of re-deriving it. /create lists the types the wallet can
create and sends a wallet with a single option straight to it, both when
resolving links and on page load. The ?type= query and the hook that
validated it are gone, so the flow no longer has two ways to learn the
operator type.
Curve ids are per-module and collide, so a curve id and its module now
travel together - a create page could otherwise read one module's curve
id against another module's registry and show a different type's
parameters.
- rename operator-type-modal/ to operator-type-cards/, dropping the modal,
its should-show hook and the header type badge that opened it
- move the create-type context to providers/ so shared/hooks no longer
imports a feature
- fold createOptions into useCanCreateNodeOperator, which already reads
every proof/paused query it needed - useShowFlags subscribed the tree
twice, per LocalLink and per Gate
- share the parameters-modal trigger between TypeButton and TypeBadgeButton,
and drop the badge's eager curve-parameters prefetch
- type cards go two-column (details | parameters); the submit-keys form
gets a header with back link, step track, title and selected type badge,
both rendered only when the wallet actually has a choice
- Default reads as "CSM 0x01" in copy
A curve id or operator id is only meaningful next to its module, so producers and consumers pass CurveRef and OperatorRef instead of a bare id plus an implied module. Covers the curve producers/consumers and the switch-operator flow.
One useCanCreateNodeOperator mega-hook became a shared/hooks/can-create folder: useCanCreate0x01/0x02/ICS/IDVTC/CM compose from useModuleOpen, useHasOperatorIn and useCanCreatePairedType, and the aggregate is their disjunction. useShowRule reads each type flag directly, so CAN_CREATE_* no longer round-trips through a creatableTypes array. isOpen drops its deployedModules guard because a non-deployed module has no SDK and its query never enables; isPending keeps the guard, since a disabled react-query stays pending forever. Guards move from CreateOperatorRoute into the four pages/create/* files, matching how every other page declares its own gate ladder.
- address the card CTA through its link: the type badge is a button now, so
`card.getByRole('button')` hit two elements
- `MainPage.openCreateForm()` walks the type-selection page when a wallet has
several creatable types (Hoodi deploys CSM_02 next to CSM)
- assert the created type on `createTypeBadge`, not the page title
- re-adopt the parameters-modal coverage lost with headerBadge.spec, now
driven from the create-page badge
The create type reaches the submit-keys form as a prop rather than through context, so CreateTypeProvider shrinks to the route-level literal. The DKG files section gates on that type instead of the curve, the back button folds into StepTrack, and the selected type renders in a Latice card.
useSmSDK(module) is a plain lookup - that module's SDK whether or not it is active, undefined when the module is not deployed - and useActiveSmSDK(module) returns it only while it is the active operator's module, which is what operator-scoped queries want as their `enabled` gate. useSmSDKByModule goes; useSmSDK(undefined) keeps returning undefined. The hand-maintained MODULE_AVAILABILITY table is replaced by the SDK's own MODULE_CONFIG, and deployedModules.includes() checks become the honest !!sdk predicate they stood in for. Fixes carried along: - useCuratedGatesEligibility gated on a predicate weaker than the query it guards - pages/create/index.tsx routed by isModuleCSM, so a CSM_02-primary deployment reached the CM-only CreateNodeOperatorPage instead of SelectTypePage - fetch-across-modules restores the falsy-sdk filter the Object.entries refactor dropped, avoiding a synchronous throw inside entries.map
…tions/setup-node-7 chore(deps): bump actions/setup-node from 6 to 7
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.28.4 to 4.28.9. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.28.4...4.28.9) --- updated-dependencies: - dependency-name: browserslist dependency-version: 4.28.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
fast-uri resolution 3.1.5 -> 3.1.6 (CVE-2026-75899/75931/75975/76172). ua-parser-js scoped under lido-shared-ui, which pins 2.0.3 exactly, so the resolution is the only route to 2.0.10 (CVE-2026-48125 ReDoS).
…ATOR to manager or rewards
…nd tabs to operators
Drops sharp/@img, @chainsafe/hashtree and native build tooling from prod node_modules; images.unoptimized means sharp is never loaded.
Share cache-control constants, drop jest-era SurveysApiError guard, use vitest tsconfigPaths, move getApiUrl to utils, dedupe test fetch mocks and env constants, share a single parseUrlList, drop dead config fields and redundant header-wallet fragment, refresh stale comments.
Drop /api/validation-file. /api/validation checks the external service first (authoritative) and falls back to VALIDATION_FILE_PATH on any non-429 failure; service down with no file responds 503. Responses are never cached. The browser fails closed: any failure to get a verdict counts as invalid.
chore: migrate to next 15
* fix: validate inputs interpolated into upstream API URLs * fix: lay out wallet modal actions in a wrapping row
* chore(deps): bump vitest to 4.1.12 Fixes GHSA-82fw-gwwq-j7x9 and GHSA-qxg6-89mg-rqv8 (@vitest/mocker). * ci: migrate harbor image workflows to new reusable workflow contract Pin lidofinance/actions harbor workflow to 8d22c57: target inputs, secrets: inherit, Trivy report, anti-rollback. Prod runs via workflow_run after Run_on_release.
Sync survey API spec from testnet and map AUTH_SIWE_NONCE_EXPIRED, returned when signing outlasts the nonce TTL (e.g. multisig).
chore: merge main into develop
…-cl-for-testing-keys-statuse feat: add CL mock and qa panel for manual tests
chore: point mainnet surveys API to csm-survey-api.lido.fi
eth_call and eth_estimateGas without `to` are allowed only for viem's ERC-6492 deployless signature check. The CL proxy requires 1-5000 validator ids, forwards only id/status (GET) or ids/statuses (POST), and caps the response at 5 MB.
Drop the referer label, keep the raw selector only on an ABI match, skip oversized batches, and run the metric after the method guard and rate limit.
* feat: add web security checks and enhance API proxy tests * feat: add webSecurity option to test workflows and configure api_only flag * feat: integrate Qase IDs into test cases for enhanced tracking and reporting * feat: add security epic to test suites and update related stories * feat: add web security tests and refine existing test tags * feat: add web security tests and refine existing test tags * feat: enhance job naming and add web security checks for CSM and CM * feat: enhance web security tests with Qase IDs and refine test descriptions
…tract-address-checks feat: add tests for contract address checks
* ci: dispatch prod harbor build from main on release * docs: describe k8s release flow in README
…th guard (#752) * fix(rpc-gateway): forward the validated canonical body instead of raw req.body Each JSON-RPC item is rebuilt from an allowlist of envelope and params keys before validation, and the rebuilt items are what gets forwarded. getLogs fromBlock accepts only hex or 'latest'; head lookups are deduplicated per chain. State overrides need an explicit override allowlist (not wired yet) and may not touch proxy-control slots. Findings: RES-01, CSMW-RPC-AUTH-01, CSMW-RPC-AUTH-02, CSMW-RPC-LOGS-02, CSMW-RPC-LOGS-04 * fix(rpc-gateway): bound provider responses and stop leaking provider errors Head lookups read at most 16 KB and require a hex result. Failed-over provider responses are cancelled once failover finishes; the returned one is kept. Unexpected errors answer with the generic message and are logged with URLs redacted. Findings: CSMW-RPC-LOGS-03, CSMW-RPC-STREAM-02, CSMW-RPC-STREAM-03 * fix(api): bound address length before viem isAddress caches it Public inputs longer or shorter than 42 chars are rejected before they reach viem's process-global isAddress cache, both in the RPC metric collector and /api/validation. Findings: CSMW-METRIC-CARD-03 * fix(rpc-gateway): allow token overrides, reject unknown call fields, 500 on head failure * refactor(rpc-gateway): read capped response body with while loop
* feat: add styles for QA panel and enhance ENS mock helpers * feat: refactor rpcProxy tests to utilize shared constants and improve request handling * refactor: remove unused reporter configurations and sensitive environment keys
feat(siwe): bind SIWE nonce to client secret
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork sync