Skip to content

YAS 223 Simple Rollup Message Passer#38

Merged
ben-chain merged 2 commits intomasterfrom
feat/YAS223/rollup-message-passer
Mar 16, 2020
Merged

YAS 223 Simple Rollup Message Passer#38
ben-chain merged 2 commits intomasterfrom
feat/YAS223/rollup-message-passer

Conversation

@ben-chain
Copy link
Copy Markdown
Collaborator

Description

Solves YAS-223 and creates a mocked message passer. Ran into some stupid event logging troubles, but even then I think we overdid the estimate on this one 😆

Metadata

Fixes

  • Fixes YAS223

Contributing Agreement

/* Internal Imports */
import {DataTypes as dt} from "./DataTypes.sol";

contract RollupMessagePasser {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be named a bit better. I really like L1ToL2Message because it indicates exactly how it is to be used. The same can be done for this class. If the intention is to ultimately invoke L2 functions, we could probably be more specific than message. Maybe something like OvmTxBridge or L2TransactionExecutor would be clearer? 🤷‍♂

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like L1ToL2MessagePasser. I think it's pretty conceptually easy to think of L1 and L2 as some abstract "parent" and "child" relationship between blockchains so maybe good to make use of that intuition.

Also, it is kind of interesting to replace message with transaction, but then again idk if that gets confusing with the already overloaded term....... But I guess "cross chain transaction" is already a thing. We could totally call this L1ToL2Transaction....

Anyway, I'm open to options!

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple comments but looks good! Impressive you got this BEAST of a PR working!!! 😁

Lol should have added deposits & withdrawals a long time ago lol

solidity,
} from 'ethereum-waffle'

chai.use(solidity)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to remove this? Also the chai = require('chai') bit. I think this should be handled by importing setup

/* Internal Imports */
import {DataTypes as dt} from "./DataTypes.sol";

contract RollupMessagePasser {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like L1ToL2MessagePasser. I think it's pretty conceptually easy to think of L1 and L2 as some abstract "parent" and "child" relationship between blockchains so maybe good to make use of that intuition.

Also, it is kind of interesting to replace message with transaction, but then again idk if that gets confusing with the already overloaded term....... But I guess "cross chain transaction" is already a thing. We could totally call this L1ToL2Transaction....

Anyway, I'm open to options!

@ben-chain ben-chain merged commit 62d4e15 into master Mar 16, 2020
@ben-chain ben-chain deleted the feat/YAS223/rollup-message-passer branch March 16, 2020 17:11
gakonst added a commit that referenced this pull request Apr 12, 2021
* refactor: move utils.ts to specific file

* refactor: introduce watcher utils for x-domain monitoring

* test: add rpc tests

* fix: use injected l2 context and remove the unused ethsign methods
snario pushed a commit that referenced this pull request Apr 14, 2021
InoMurko referenced this pull request in omgnetwork/optimism May 25, 2021
* refactor: move utils.ts to specific file

* refactor: introduce watcher utils for x-domain monitoring

* test: add rpc tests

* fix: use injected l2 context and remove the unused ethsign methods
protolambda pushed a commit to protolambda/optimism that referenced this pull request May 1, 2022
protolambda pushed a commit that referenced this pull request Jun 16, 2023
blockchaindevsh added a commit to blockchaindevsh/optimism that referenced this pull request Sep 25, 2024
blockchaindevsh added a commit to blockchaindevsh/optimism that referenced this pull request Jun 30, 2025
cuiweixie added a commit to cuiweixie/optimism that referenced this pull request Oct 22, 2025
Co-authored-by: weixie.cui <weixie.cui@okg.com>
theochap pushed a commit that referenced this pull request Dec 10, 2025
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants