Merged
Conversation
ci-run-tests LCOV of commit
|
dutterbutter
requested changes
Feb 9, 2026
Contributor
dutterbutter
left a comment
There was a problem hiding this comment.
Thoughts on re-organizing services/finalization to be more similar to withdrawals approach? That is, introducing createInteropFinalizationServices(client) (same pattern as withdrawals) and delegating status/wait/finalize through that service.
So services/finalization/index.ts with the interface:
// src/adapters/ethers/resources/interop/services/finalization/index.ts
export interface InteropFinalizationServices {
status(input: InteropWaitable): Promise<InteropStatus>;
wait(
input: InteropWaitable,
opts?: { pollMs?: number; timeoutMs?: number },
): Promise<InteropFinalizationInfo>;
finalize(info: InteropFinalizationInfo): Promise<InteropFinalizationResult>;
}
This keeps the resources more consistent, centralizes finalization concerns (topics/decoding/polling/execute).
dutterbutter
reviewed
Feb 9, 2026
dutterbutter
reviewed
Feb 9, 2026
vasyl-ivanchuk
commented
Feb 10, 2026
…s-adapter-interop
dutterbutter
approved these changes
Feb 13, 2026
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.
What 💻
This PR implements interop for ethers adapter.
Why ✋
So the SDK can be used for interop transactions.
Evidence 📷
Interop usage example:
How to test:
There are two working examples that can be used for testing:
ERC20 Transfer
Deploys an ERC20 on the source chain and transfers 100 tokens to the destination chain. NTV registration and token approval are handled automatically.
Remote Call
Deploys a Greeting contract on the destination chain and checks its message. Then, from the source chain, it sends an interop call to change the message. It confirms the message has changed by checking the value once again.
How to run them:
mainbranch../run_local.sh ./local-chains/v31.0/multi_chain.PRIVATE_KEY=<PK> bun run ./examples/ethers/interop/<erc20-transfer.ts|remote-call.ts>.