Conversation
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
SVM events emit addresses with base58-encoding. At least two addresses emitted within an FundsDeposited or FilledRelay event will need to be converted to a base16 EVM address. Make it easy by permitting the caller of EvmAddress.from() to specify the encoding, defaulting to base16.
No functional change; only relocate so that all svm functionality is localised to src/arch/svm.
…slots (#973) Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
Signed-off-by: bennett <bennett@umaproject.org>
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new SVM client along with several supporting refactors and improvements to address parsing and event handling across the codebase. Key changes include:
- Enhancements to AddressUtils to support both base16 and base58 encoded addresses for EVM and SVM.
- Addition of the SVM Spoke Pool client and associated event processing logic.
- Removal of deprecated SVM helper files and reorganization of the SVM-related modules.
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/AddressUtils.ts | Reorganized imports and added thorough tests for both base58 and base16 encoded addresses. |
| src/utils/AddressUtils.ts | Updated the Address classes to support an explicit encoding parameter for address decoding. |
| src/svm/* | Removed redundant exports and helpers; refactored SVM module structure. |
| src/clients/SpokePoolClient/SVMSpokePoolClient.ts | Introduced a new SVM-specific SpokePool client with methods for event querying and state updates. |
| src/arch/svm/* | Added and modified SVM utility, types, and events client to support the new client and event processing. |
| src/arch/svm/SpokeUtils.ts | Added basic implementations for SVM Spoke utilities with placeholders for unimplemented functions. |
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
Signed-off-by: bennett <bennett@umaproject.org> Co-authored-by: Paul <108695806+pxrl@users.noreply.github.com>
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu> Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org> Signed-off-by: bennett <bennett@umaproject.org> Signed-off-by: Bennett <bennett@umaproject.org> Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com> Co-authored-by: James Morris, MS <96435344+james-a-morris@users.noreply.github.com> Co-authored-by: Paul <108695806+pxrl@users.noreply.github.com> Co-authored-by: Gerhard Steenkamp <51655063+gsteenkamp89@users.noreply.github.com> Co-authored-by: Ihor Farion <65650773+grasphoper@users.noreply.github.com> Co-authored-by: nicholaspai <npai.nyc@gmail.com> Co-authored-by: Dong-Ha Kim <dongha.kim210@gmail.com>
This reverts commit 68280e9.
Signed-off-by: bennett <bennett@umaproject.org>
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
…gnature (#1033) Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
Signed-off-by: bennett <bennett@umaproject.org>
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
There was a problem hiding this comment.
Pull Request Overview
This PR introduces support for an SVM-based SpokePoolClient as part of the epic “feat(epic): add SVM client” while standardizing terminology by renaming block‐related configuration fields (e.g. fromBlock, latestBlockSearched) to height‐based equivalents (e.g. from, latestHeightSearched). Key changes include new file additions for the SVM client, updates to client base classes and helper functions to consistently use the new naming, and necessary adaptations in the EVM-specific client implementations and related utilities.
Reviewed Changes
Copilot reviewed 70 out of 70 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/clients/SpokePoolClient/index.ts | Added import & export for SvmSpokePoolClient and minor naming adjustments. |
| src/clients/SpokePoolClient/SpokePoolClient.ts | Renamed configuration properties and updated event handling logic. |
| src/clients/SpokePoolClient/EVMSpokePoolClient.ts | Updated parameter names (e.g. blockTag to atHeight) and adjusted block query parameters. |
| src/clients/BundleDataClient/BundleDataClient.ts | Extended support to SVM clients by branching based on client type and calling the corresponding fill event lookup utility. |
| src/clients/BaseAbstractClient.ts & Others | Widely replaced “Block” terminology with “Height” to reflect updated event search config. |
| Various SVM and EVM utility files | Updated to follow new naming patterns and support the multi-chain approach with SVM support. |
| package.json & GitHub workflows | Version bump and additional dependency/workflow updates for integration. |
Comments suppressed due to low confidence (2)
src/clients/SpokePoolClient/index.ts:2
- [nitpick] Ensure that the naming 'SvmSpokePoolClient' is consistently used across the codebase, paying special attention to case sensitivity given the difference between 'Svm' and 'SVM' in related identifiers.
import { SvmSpokePoolClient } from "./SVMSpokePoolClient";
src/clients/BaseAbstractClient.ts:22
- [nitpick] Ensure that renaming properties from 'firstBlockToSearch' to 'firstHeightToSearch' (and similarly 'latestBlockSearched' to 'latestHeightSearched') is consistently updated across all documentation, tests, and references to avoid potential confusion.
public firstHeightToSearch = 0;
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
…nt (#1042) Co-authored-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
melisaguevara
left a comment
There was a problem hiding this comment.
I think this looks good!
No description provided.